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
_______________________________________________
[email protected] http://lists.gnu.org/mailman/listinfo/help-bison
