help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: &union and overlapping declarations


From: Rajasankar K
Subject: Re: &union and overlapping declarations
Date: Tue, 21 Jan 2003 10:02:56 +0530

Try,
strcpy (yylval.str, yytext) for your alpha case and

yylval.integer = atoi (yytext) for the number.

Regards,
Raja.

----- Original Message ----- 
From: Davide Rizzo 
To: address@hidden 
Sent: Monday, January 20, 2003 8:25 PM
Subject: &union and overlapping declarations


[[:alpha:]]+        {
                      yylval = yytext;
                      return(IDENTIFIER);
                    }  
[0-9]+              {
                      yylval = atoi(yytext);
                      return(DIGIT);
                    }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]