mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 19:40:18 +00:00
fix True not False
bug
This commit is contained in:
parent
dbaf7a61ce
commit
5a47ae6f42
@ -1400,7 +1400,9 @@ static Error* parse_expression(Compiler* self, int precedence, bool allow_slice)
|
||||
TokenIndex op = curr()->type;
|
||||
advance();
|
||||
PrattCallback infix = rules[op].infix;
|
||||
assert(infix != NULL);
|
||||
if(infix == NULL){
|
||||
return SyntaxError(self, "expected an expression, got %s", TokenSymbols[op]);
|
||||
}
|
||||
check(infix(self));
|
||||
}
|
||||
return NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user