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

Warn on reserved words #147

Open
Akron opened this issue Jul 24, 2023 · 0 comments
Open

Warn on reserved words #147

Akron opened this issue Jul 24, 2023 · 0 comments

Comments

@Akron
Copy link
Member

Akron commented Jul 24, 2023

When Antlr stumbles upon reserved words in wrong contexts, it will stop parsing, pointing to the first failing symbol. It would be nice to throw an error message giving a hint, that the user tried to use a reserved term. A first start may be, taking the token inventory (or hardcoded) in a regex following a word boundary (at least in PQ+), and in case that matches, responding with "Maybe use of a reserved token".

Reported example in PQ+: split.

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

No branches or pull requests

1 participant