boolangery / py-lua-parser

A Lua parser and AST builder written in Python.
MIT License
124 stars 39 forks source link

Bitwise operators mis-parsed #59

Open Discookie opened 4 weeks ago

Discookie commented 4 weeks ago

Bit-ops do not have the same precedence in lua, so for example x = h1 >> 6 | h2 << 20 gets misparsed into x = ((h1 >> 6) | h2) << 20, when it should be x = ((h1 >> 6) | (h2 << 20)).