Joel asked me the parser so I gave it to him, but maybe it can be of use for others, so here it is. Apart from the code specific to the application, it gives a good example of a complete Camlp4 lexer/parser for a language. Note that for the lexer I started from a custom lexer made by Pietro Abate ( https://www.cduce.org/~abate/how-add-a-custom-lexer-camlp4 ) from the cduce lexer. Cheers, Matthieu ----- Message d'origine ---- > Swings and roundabouts, IMHO. Camlp4 is higher level, more capable and the > syntax is clearer but the documentation is so poor that I have given up every > time I have tried to use it either because the default lexer was insufficient > or because I could not figure out how to extract the necessary data from the > OCaml grammar. > > Matthieu's example looks fantastic though... > > -- > Dr Jon Harrop, Flying Frog Consultancy Ltd. > http://www.ffconsultancy.com/?e > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs