Skip to content
Discussion options

You must be logged in to vote

Hey @sho94os,

unfortunately, influencing the error recovery by itself is not possible. There are however a few grammar changes you can perform in order to prevent issues like these. For example, I would always recommend to parse identifiers and function calls in one rule. See langium-lox for example.

I've adjusted your grammar slightly in a few places. It now works as expected. See this playground link.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@sho94os
Comment options

@msujew
Comment options

@sho94os
Comment options

@sho94os
Comment options

@msujew
Comment options

Answer selected by msujew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants