Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to parse chained comparisons #56

Open
bendrissou opened this issue Feb 8, 2024 · 0 comments
Open

Failure to parse chained comparisons #56

bendrissou opened this issue Feb 8, 2024 · 0 comments

Comments

@bendrissou
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant