py-lua-parser icon indicating copy to clipboard operation
py-lua-parser copied to clipboard

Failure to parse chained comparisons

Open bendrissou opened this issue 1 year ago • 0 comments

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.

bendrissou avatar Feb 08 '24 13:02 bendrissou