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

Vlad Dumitrescu <>
Mon Jan 19 08:53:01 CET 2009


Hi,

On Mon, Jan 19, 2009 at 05:29, simon00 <> 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,
Vlad



More information about the erlang-questions mailing list