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

Partially parse grammar #487

Open
cristiano-belloni opened this issue Aug 2, 2024 · 0 comments
Open

Partially parse grammar #487

cristiano-belloni opened this issue Aug 2, 2024 · 0 comments

Comments

@cristiano-belloni
Copy link

Hi, I have a grammar that works well but I noticed that, if a match doesn't succeed, there is no way to get the AST. I see that in the editor it is possible to see the "partial" AST even if the parsing failed; for example, with the default grammar, if I type 1 * 2 *, which fails, I still get the viz to show 1 * 2. Do you do that just parsing whatever is before the error or is there a way to get a "partial AST of a grammar until it's not possible to parse anymore?

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

1 participant