Replies: 1 comment 1 reply
-
Hey @trusktr, yeah, that's pretty difficult. ANTLR4 is AFAIK the only LL-like parser with this functionality, and even they can only do it for direct left recursion. In theory that's a topic for this repo, which implements our lookahead algorithm. Anyway, Langium isn't currently able to deal with this, which is the main reason for grammar constructs like assigned actions. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Would it be possible for Langium to take something like
and compile it to the left-factored form for Chevrotain, so that users don't have to do it? Just curios. No idea how difficult that is.
Beta Was this translation helpful? Give feedback.
All reactions