I have a yacc grammar that I want to convert to ANTLR. Is there any Bison to
ANTLR converter available? Can someone help?
Thanks, Prasanth
I have a yacc grammar that I want to convert to ANTLR. Is there any Bison to
ANTLR converter available? Can someone help?
Thanks, Prasanth
Let's compare these parser generators:
LL and LALR are incompatible:
The LALR(k) parsers are incomparable with LL(k) parsers: for any j and k both greater than 0, there are LALR(j) grammars that are not LL(k) grammars and conversely. In fact, it is undecidable whether a given LL(1) grammar is LALR(k) for any k > 0.
GLR is a variant of LR. An LR parser is a bottop-up parser, while an LL parser is a top-down parser. Those are fundamentally different parsing strategies.
Conclusion: you won't find any reliable automatic converter any time soon.