Excerpts from Richard Jones's message of Fri May 09 11:40:36 +0200 2008: > > The Camlp4 wiki contains an intriguing line "Connecting your own > Lexer.", but no link or information. I want to modify the OCaml lexer > to add a syntax for integer literals of my own type. Can this be > done? How?
Since Camlp4, is now a lot more modular. This can be done by providing *another* Lexer module with a compatible signature. Then one create a new Camlp4.PreCast module by copy/pasting and using the new Lexer module. However the default lexer of Camlp4 is not extensible. Best regards, -- Nicolas Pouillard aka Ertai
signature.asc
Description: PGP signature
_______________________________________________ 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