On Mon, 20 Aug 2007, cultural_sublimation wrote:
> Hi,
>
> What are the recommended tools these days to handle lexing/yaccing?
> Ocamllex/Ocamlyacc come with default, but I see some chatter about
> Menhir for yaccing, and I do need to lex unicode documents.
If you're looking to do unicode lexing, then you'd want to look at Alain
Frisch's ulex <http://www.cduce.org/download.html#side>. As for parsing,
iI suppose it really depends on what you want your parser to do...
Ocamlyacc is the old standard, and pretty decent, but as you mentioned,
menhir is the new hotness (I haven't played with it yet, so I can't tell
you anything about it). There's also dypgen, a GLR parser for generating
self-extensible grammars, there's camlp4 for stream parsing, and a few
parser combinator libraries available, e.g. the Cf_parser part of OCamlNAE
<http://sourceforge.net/projects/ocnae/>.
William D. Neumann
---
"There's just so many extra children, we could just feed the
children to these tigers. We don't need them, we're not doing
anything with them.
Tigers are noble and sleek; children are loud and messy."
-- Neko Case
Life is unfair. Kill yourself or get over it.
-- Black Box Recorder
.