[erlang-questions] a question on leex and yacc usage

Vlad Dumitrescu vladdu55@REDACTED
Mon Jan 19 08:53:01 CET 2009


On Mon, Jan 19, 2009 at 05:29, simon00 <gotothere00@REDACTED> wrote:
> The leex file is as follows:
> ({Dig}{Dig}*)   : {token, {integer, YYline, list_to_integer(YYtext)}}.
> The yecc file is as follows:
> Nonterminals iplist ipentry ip.
> Terminals '/' '-' '.' 'atom' ';'.

Could it be because the lexer returns an 'integer' token and the
parser expects an 'atom' one?

best regards,

More information about the erlang-questions mailing list