On Jul 1, 2009, at 04.13 h, Mike Lin wrote:

Comments and string literals are no problem, since the lex wrapper will
never see anything inside them as separate tokens anyway.

OCaml comments can be nested, and must be nested parenthetically. :)

I know. (Haskell has nested comments, too, btw.) That does not make a difference, though - it is all handled by lex already. In fact, my code handled nested comments just fine.

- Andreas