I would prefer to use the #2 approach but I'm using a custom lexer built by ocamllex.

Where would I plug in String.lowercase con = ... in Matthieu's lexer, for example?

        Thanks, Joel

On Mar 8, 2009, at 9:37 AM, Daniel de Rauglaudre wrote:

2/ Use the field "tok_match" of the interface with the lexer. Redefining it allows you to match some token pattern with the corresponding token.
    See doc (camlp5) in:
http://pauillac.inria.fr/~ddr/camlp5/doc/htmlc/ grammars.html#b:The-lexer-record In the example "default_match", change the test "if con = p_con" into
  "if String.lowercase con = p_con".

---
http://tinyco.de
Mac, C++, OCaml



_______________________________________________
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

Reply via email to