Yacc: code after each nonterminal

Is there a way to execute the code after each terminal?

So something like this is possible:

a : B { code } C { some code }

      

Any help would be really appreciated!

0


source to share


2 answers


The example you gave should work as it is.



+1


source


You're right. I somehow didn't understand that C $ 3 after inserting the code, not $ 2 ... is really strange.



0


source







All Articles