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:
It is necessary that the actions are performed in order, that means, that token_count should be increased before reducing something.Code:rule: token { token_count++; } something { token_count += $3->token_count; } end { $$ = whatever(); }
Is there any possibility to use this feature in lemon?