Re: ocamllex syntax error
| Newsgroups | gmane.comp.lang.ocaml.beginners |
|---|---|
| Message-ID | <[email protected]> |
Le 04/04/2015 17:22, [email protected] [ocaml_beginners] a écrit : > I get the following laconic error message : > > $ ocamllex huong.ml > File "huong.mll", line 2, character 2: syntax error. > Would you say « ocamllex huong.mll » ? (you omit the final « l » ) I tried your file which looks clear. Just a note, your white space rule should be written like this : > | [' ' '\t' '\n'] (* eat up whitespace *) > { rule toy_lang lexbuf } > | _ as c regards, Sébastien