mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 19:40:18 +00:00
Update compiler.cpp
This commit is contained in:
parent
5a8d9bb5f7
commit
88d1d4e0a2
@ -1285,12 +1285,13 @@ __EAT_DOTS_END:
|
|||||||
SyntaxError("precompiled mode mismatch");
|
SyntaxError("precompiled mode mismatch");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int count = deserializer.read_count();
|
||||||
std::vector<Str>& precompiled_tokens = lexer.src->_precompiled_tokens;
|
std::vector<Str>& precompiled_tokens = lexer.src->_precompiled_tokens;
|
||||||
for(int i=0; i<deserializer.read_count(); i++){
|
for(int i=0; i<count; i++){
|
||||||
precompiled_tokens.push_back(deserializer.read_string('\n'));
|
precompiled_tokens.push_back(deserializer.read_string('\n'));
|
||||||
}
|
}
|
||||||
|
|
||||||
int count = deserializer.read_count();
|
count = deserializer.read_count();
|
||||||
for(int i=0; i<count; i++){
|
for(int i=0; i<count; i++){
|
||||||
Token t;
|
Token t;
|
||||||
t.type = (unsigned char)deserializer.read_uint(',');
|
t.type = (unsigned char)deserializer.read_uint(',');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user