In gnu bison:
I have a couple of productions of this type:
ID '.' complex
: {...}
;
complex
: FOOBAR {...}
;
How can I pass the value of ID, a terminal, down to the production
'complex', a non terminal. I would like to determine what's the value of ID
and take actions based on that, i.e.:
complex
: FOOBAR
{
if( strcmp(ID.value,"this") == 0)
doThis();
else
doThat();
}
thanks
vlad
PS: This is my first time posting. I don't know where to read the response.
I hope that i get a copy of the response to this email address.
_______________________________________________
[email protected] http://lists.gnu.org/mailman/listinfo/help-bison