Skip to content
Discussion options

You must be logged in to vote

Hey @Greglar4,

the issue is likely a limitation in the lookahead. You have a few options in the grammar which are somewhat ambiguous, which result in the lookahead engine trying to scan ahead, but due to missing STRING tokens in your input, it essentially says that vegan food [] is not valid in terms of the parser lookahead. I might have accidentally fixed that by fixing a different bug in the lookahead engine. You might want to try to force-update the transitive chevrotain-allstar dependency to 0.4.2. Alternatively, you can probably change the maxLookahead value in your language config to something like 3. That should work quite well.

Please note that I wouldn't recommend designing your …

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Greglar4
Comment options

@msujew
Comment options

@Greglar4
Comment options

@msujew
Comment options

Answer selected by Greglar4
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