tags:

views:

113

answers:

2

Is there a way to execute code after each Terminal?

So that something like this is possible:

a : B { code } C { some code }

Any help would really be appreciated!

+1  A: 

The example you gave should work as is.

Can Berk Güder
no, I get: $2 is undefined...
Chris
Yes: $2 is the code block - as you later found out.
Jonathan Leffler
A: 

You are right. I some how didn't get that C is $3 after inserting the code and not $2... really odd.

Chris
That's the important catch; $2 is effectively the code block.
Jonathan Leffler
:) yacc can be tricky.
Can Berk Güder
I think you should edit your question to include this as explanation, and then delete this response.
Jonathan Leffler