4 ms·
I've tried Antlr and it was a horrible experience compared to Menhir: Being stuck with LL(n) causes a lot of unnecessary refactoring, the syntax for anything o
by 91891879181 10y ago
I've tried Antlr and it was a horrible experience compared to Menhir: Being stuck with LL(n) causes a lot of unnecessary refactoring, the syntax for anything out of the ordinary is arcane and IMO not well documented.
Give me the 70's tools any day.
- groovy2shoes 10y agoMenhir is hardly a 70s tool...
- 99189198191 10y agoThis is true of course. But it is ocamlyacc compatible and uses a separate lexer. I'd at least say that it is using the lex/yacc approach, which I actually like.
- sklogic 10y agoLL(n) can be limiting indeed. But you can easily mix, say, PEG and Pratt. Because where else do you need LR-like parsing but in the binary expressions, the C-style dot syntax and so on.
- pjmlp 10y agoYou should of course use a tool that supports the grammar productions of the language being designed. I just listed a few examples.