Closed toxamin closed 5 months ago
The rewritten parser incorrectly treats unary precedence, thus parsing the following: local c = -a + b
local c = -a + b
incorrectly gives: UnaryOperator(BinaryOperator(a, b)) instead of the expected BinaryOperator(UnaryOperator(a), b)
UnaryOperator(BinaryOperator(a, b))
BinaryOperator(UnaryOperator(a), b)
The rewritten parser incorrectly treats unary precedence, thus parsing the following:
local c = -a + b
incorrectly gives:
UnaryOperator(BinaryOperator(a, b))
instead of the expectedBinaryOperator(UnaryOperator(a), b)