3 ms·
I've asked this before, and I'll ask it again: How is ANTLR an improvement over menhir/ocamllex? LR has fewer constraints than LL(n), menhir's documentation is
by 01928301 10y ago
I've asked this before, and I'll ask it again: How is ANTLR an improvement over menhir/ocamllex?
LR has fewer constraints than LL(n), menhir's documentation is better and splitting lexing/parsing IMO adds clarity.
- rbehrends 10y agoANTLR isn't LL(k), it's predicated LL(*). Also, there can be advantages to having a top-down parser for semantic actions.
- pjmlp 10y agoAnd I will answer again, it provides GUI tooling for several phases of compiler development, including debugging. The technical aspect of how the grammar is parsed, is a matter of taking the effort to design it in a LL (*) compatible way.