e5714eba256ebd2a349a295dd60d792228b3c143
Fixed by backtracking in the parser, and keeping a copy of the original expression if it's a simple_expr, which is used for output in place of the folded one. There's still the potential issue that if a global is optimized away, then it will "come back" during output and cause an error because the definition is missing.
Description
Optimizes a LSL2 script, folding constants, removing unused code and more. Adds new syntax features too.
Languages
Python
73.5%
LSL
26.5%