Lemon parser generator & embedded actions
Hi everyone,
I'm currently translating a program from yacc to lemon for thread-safety, but I have a single problem with that. I'm using some more complicated rules where there are actions between the terminals, for example:
Code:
rule: token { token_count++; } something { token_count += $3->token_count; } end { $$ = whatever(); }
It is necessary that the actions are performed in order, that means, that token_count should be increased before reducing something.
Is there any possibility to use this feature in lemon?