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

remove 78-level constants from the lexer #134

Open
lefessan opened this issue Jan 31, 2024 · 1 comment
Open

remove 78-level constants from the lexer #134

lefessan opened this issue Jan 31, 2024 · 1 comment

Comments

@lefessan
Copy link
Member

To get better error messages.

If I understand well, the idea is to remove 78-level constants from the lexer, and replace all the places where they can replace a LITERAL by a rule that also accepts a WORD and checks if it is a 78-level ?

Originally posted by @lefessan in #133 (comment)

@GitMensch
Copy link
Collaborator

Not completely, the lexer would return a new token (which gets a new tree if CB_CONST is not good enough), so the parser knows that this is a constant.

Note: This should be handled identical for both the extension level 78 constant and the standard 01 CONSTANT AS.

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

2 participants