biscuit icon indicating copy to clipboard operation
biscuit copied to clipboard

specify operator precedence

Open divarvel opened this issue 3 years ago • 0 comments

The grammar does not cover operator precedence. It would be good to match common rules, in order to be consistent with other languages and avoid surprises.

I think being consistent with rust operator precedences would be great:

  • parens
  • methods (those taking one argument, and those taking 0)
  • unary !
  • * / (left associative)
  • + - (left associative)
  • & (left associative)
  • | (left associative)
  • ^ (left associative)
  • <= >= < > == (not associative)
  • && (left associative)
  • || (left associative)

divarvel avatar Nov 18 '22 14:11 divarvel