With Bison, you can do something like this (not quite bison syntax):
myrule: TYPE IDENT {DoSomethingRightAfterIdent($1,$2); } LP more_rules
RP; {DoSomethingAfterEverything($1,$2,$5); }
I.e. you have a chunk of C code that's called in the middle of the
processing of the production. (In the above
Ludvig Strigeus wrote:
With Bison, you can do something like this (not quite bison syntax):
myrule: TYPE IDENT {DoSomethingRightAfterIdent($1,$2); } LP more_rules
RP; {DoSomethingAfterEverything($1,$2,$5); }
I.e. you have a chunk of C code that's called in the middle of the
processing of the