py-lua-parser
py-lua-parser copied to clipboard
Failure to parse chained comparisons
Hi,
Here is a Lua example:
if false == false == false then
x = 2
end
When parsing this program, the parser returns the following:
error: Error: Expecting one of 'and', 'function', 'nil', 'not', 'or', 'then', 'true', '+', '-', '*', '/', '//', '%', '^', '#', '&', '|', '~', '>>', '<<', '(', '{', '...', '..', NAME, NUMBER, STRING at line 1, column 21
Note that the Lua compiler executes the program successfully.