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

parser: first implementation of error recovery #17

Merged
merged 4 commits into from
Sep 1, 2024

Conversation

FedericoBruzzone
Copy link
Contributor

Add first implementation for error recovery for parser.
Basically, when the parser encounter the first UnexpectedToken it will consume until the next statement (at the moment until the first \n) putting an Error in the AST instead of the "Expected" node.

Copy link
Contributor Author

@FedericoBruzzone FedericoBruzzone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🤣

Signed-off-by: FedericoBruzzone <[email protected]>
@FedericoBruzzone FedericoBruzzone merged commit ed8828a into funs-lang:main Sep 1, 2024
9 checks passed
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

Successfully merging this pull request may close these issues.

1 participant