erlc (R9C) hangs when last line is is a comment missing EOL
James Hague
jamesh@REDACTED
Thu Sep 18 20:36:52 CEST 2003
>I think I located the problem: erl_scan:scan_comment/6
>doesn't have a clause for when the first argument is
>just 'eof'. I added one that calls done(Eof, [], Toks,
>Pos, eos), but it only has limited success
>(erl_scan:string/1 no longer crashes, but the other
>still do.)
I would think this is a good argument for using a lexer-generator, like
leex, instead of writing the Erlang lexer by hand. Of course, leex has
never been an officially supported tool--why not?
More information about the erlang-questions
mailing list