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

Errors when compiling unary plus/minus #175

Open
cardillan opened this issue Nov 9, 2024 · 0 comments
Open

Errors when compiling unary plus/minus #175

cardillan opened this issue Nov 9, 2024 · 0 comments
Labels
bug Something isn't working parser Related to the ANTL4R grammar

Comments

@cardillan
Copy link
Owner

The unary plus operator isn't supported at all. This is not a very serious problem, but we'd want to have them.

Unary minus doesn't work with binary and hexadecimal literals: print(-0xFF); gives an error. Again, not so much of a problem.

Both issues will be fixed in the rewritten grammar/parser which is being currently worked on.

@cardillan cardillan added bug Something isn't working parser Related to the ANTL4R grammar labels Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working parser Related to the ANTL4R grammar
Projects
None yet
Development

No branches or pull requests

1 participant