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
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
!=