mirror of
https://github.com/irmen/prog8.git
synced 2025-01-11 13:29:45 +00:00
fixed precedence of comparison and bitwise operators
This commit is contained in:
parent
ec9e722927
commit
1e988116ce
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user