I have a grammar:
B :B1 OR B2
|E R E
;
E : id
;
Here B1 and B2 are same as B. Now i want to use the attributes of B1 while applying semantic actions for B2 i.e I want to pass the attributes of B1 to B2 in BISON/YACC.
For eg. to parse the given string:
a<b || c<d
I want the desired output to be:
L1:
if a<b goto L2
goto L3
L3 : if c<d goto L2
goto L4
L2: //True Section//
L4:
I will be really thankful if someone helps me to solve this.