I don't think this would be useful, and it would only complicate parsing due to its right associativity, so it has to go
16 lines
299 B
Text
16 lines
299 B
Text
L2R: ,
|
|
R2L: = += -= *= **= /= %= &= |= ^= <<= >>=
|
|
L2R: ||
|
|
L2R: &&
|
|
L2R: == != < <= > >=
|
|
L2R: |
|
|
L2R: ^
|
|
L2R: &
|
|
L2R: << >>
|
|
L2R: + - (binary minus)
|
|
L2R: * / %
|
|
R2L: ! - (unary minus)
|
|
L2R: () [] .
|
|
|
|
line numbers are precedence values
|
|
higher values mean higher precedence
|