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

When errors are encountered, do not add the element to the AST #65

Open
raustin9 opened this issue Aug 10, 2023 · 0 comments
Open

When errors are encountered, do not add the element to the AST #65

raustin9 opened this issue Aug 10, 2023 · 0 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@raustin9
Copy link
Owner

In some cases, I handle errors by pretending to know what the user intended, and I craft the AST element as normal to continue parsing the tokens correctly and not spin out of control.

The tokens should still be accounted for, but the element returned should not be included in the AST

@raustin9 raustin9 added bug Something isn't working enhancement New feature or request labels Aug 10, 2023
@raustin9 raustin9 self-assigned this Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant