Hi there, I'm currently looking for a lexer/parser that generate Scala code from a BNF grammar (a ocamlyacc file with precedence and associativity) and I'm quite confused to find.. almost nothing:
For parsing, I found scala-bison (that I have a lot of trouble to deal with). All the other tools are just Java parser imported into Scala (like ANTLR e.g.).
For lexing, I found nothing.
In fact, for both I also found the famous Parser Combinators of Scala, but (correct me if I'm wrong), even if they are quite sexy, they are great time and memory consumers, mainly due to backtracking.
So I have two main questions:
- Why do people only seems to concentrate on Parser Combinators ?
- What is your best lexer/parser generator suggestion to use with Scala ?