LL(1) parser generator in OCaml
问题 I'm looking for a LL(1) parser generator in OCaml... Can anybody help me with this? 回答1: Well, LALR parsers can parse a strict superset of the languages which can be parsed by LL parsers. So I would advise simply using ocamlyacc which ships with Ocaml and is an LALR(1) parser generator. This may require some minor rewriting of the grammar, but it shouldn't be too hard. 回答2: Planck LL(n) parser combinator library: https://bitbucket.org/camlspotter/planck/overview It has started as my toy