Friday, July 15, 2005

yylval

This global yacc variable has the value of the token.

yylval = value; /* Put value onto Bison stack. */
return INT; /* Return the type of the token. */

%union {
int intval;
double val;
symrec *tptr;
}

yylval.intval = value; /* Put value onto Bison stack. */
return INT; /* Return the type of the token. */

0 Comments:

Post a Comment

<< Home