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

Error recovery in parser #41

Open
achudnov opened this issue Sep 6, 2013 · 0 comments
Open

Error recovery in parser #41

achudnov opened this issue Sep 6, 2013 · 0 comments

Comments

@achudnov
Copy link
Member

achudnov commented Sep 6, 2013

Some parse errors can be recovered from and parsing can continue. For example. expressions on the left-hand-side of an assignment can only be LeftHandSideExpressions (per the spec, see also issue #40), but it might possible to parse any expression ---even an incorrect one in the context--- and keep parsing. This could potentially allow reporting more than one syntactic error at a time, which might be useful for user-facing utilities like compilers and static analyzers.

Note that this would require substantial changes to the parser and is probably related to issue #42 .

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