mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
...
This commit is contained in:
parent
5a47ae6f42
commit
068ec948ec
@ -1401,7 +1401,7 @@ static Error* parse_expression(Compiler* self, int precedence, bool allow_slice)
|
|||||||
advance();
|
advance();
|
||||||
PrattCallback infix = rules[op].infix;
|
PrattCallback infix = rules[op].infix;
|
||||||
if(infix == NULL){
|
if(infix == NULL){
|
||||||
return SyntaxError(self, "expected an expression, got %s", TokenSymbols[op]);
|
return SyntaxError(self, "expected an infix operator, got %s", TokenSymbols[op]);
|
||||||
}
|
}
|
||||||
check(infix(self));
|
check(infix(self));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user