diff --git a/parser/antlr/prog8.g4 b/parser/antlr/prog8.g4 index 709617504..db30fd115 100644 --- a/parser/antlr/prog8.g4 +++ b/parser/antlr/prog8.g4 @@ -172,10 +172,10 @@ expression : | left = expression EOL? bop = ('+' | '-' ) EOL? right = expression | left = expression EOL? bop = ('<<' | '>>' ) EOL? right = expression | left = expression EOL? bop = ('<' | '>' | '<=' | '>=') EOL? right = expression - | left = expression EOL? bop = ('==' | '!=') EOL? right = expression | left = expression EOL? bop = '&' EOL? right = expression | left = expression EOL? bop = '^' EOL? right = expression | left = expression EOL? bop = '|' EOL? right = expression + | left = expression EOL? bop = ('==' | '!=') EOL? right = expression | rangefrom = expression rto = ('to'|'downto') rangeto = expression ('step' rangestep = expression)? // can't create separate rule due to mutual left-recursion | left = expression EOL? bop = 'and' EOL? right = expression | left = expression EOL? bop = 'or' EOL? right = expression