Re: ocamllex syntax error

"Sébastien Dailly [email protected] [ocaml_beginners]" <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.