Bison advises that a variable 'expr' I use isn't declared.

2009-03-10 Thread Joe Garvey
The union in which the type for the expr variable is declared is... %union {/* this becomes yylval ! */ int val; /* GMP type required here. */ struct symtab *symp; } The declaration of the variable is... %type expr/* determines that expr is an int, though

Re: Bison advises that a variable 'expr' I use isn't declared.

2009-03-10 Thread Akim Demaille
Le 10 mars 09 à 01:40, Joe Garvey a écrit : Bison advises that the var expr is undeclared. I'm also generally not certain about the declaration of it as expr, a non-terminal, may be a complex statement such as... ne(abs(X0),abs(X1)) // where X0 and X1 may be integral constants, ne is !=