I am currently writing a parser for some language. I was given
for this language, but this grammar has some left recursion and non-LL (*) constructs, so ANTLR does not work very well, even with return.
Since deleting these left recursions and constructs without LL (*) is more complicated than at first glance, now I want to try the LR (k) or LALR (k) parser generator. The higher k, the better.
Can someone recommend me a parser generator that meets these requirements?
- The generated analyzer is preferably an LR (k) analyzer with some high (or even arbitrary) k, or at least a LALR (k) parser with some high k.
- The generated parser is written in C or C ++, and if it is written in C, it is associated with C ++ code.
- It would be convenient to use a feature set similar to ANTLR (especially for rewriting AST).
- Performance is not the most pressing problem; the generated parser is designed to be used on desktop computers with a large amount of memory and processor power.
Thanks and hi
Jost
PS: I do not ask because I cannot google myself, but because there is no time left to check some generators. Therefore, please answer only if you have experience with the recommended parser generators.
source share