How is the expression x---y parsed? Is it a legal expression?
This is related to operator precedence. Have a look at this table.
The decrement/increment operator has precedence over the arithmetic operations. It will be parsed as x-- - y.
To correct my answer: The parser matches the longest token first, so -- is chosen over the arithmetic -. Resulting in the expression being parsed as x-- - y