Hans Aberg wrote:
On 20 Jun 2007, at 20:12, Fernando Ferreira wrote:
I have you tried to put it into yacc.c, somewhere between
"yyreduce:" and "switch (yyn)"?
Yes, and that would work, but them every time I recompile the .yy
file with bison I would have to manually change the .cc to include
the modification. That's why I think it would be helpful to have a
macro similar to flex' YY_USER_ACTION, so I could embed it in the .yy
prologue.
You modify the skeleton file, and put the modified version in the
directory where the parser file is output and add %skeleton to the .y
or .yy file. For C++, it is lalr1.cc. They are in bison/data. It will
take longer to get the feature, so don't hold your breath. :-)
Hans Aberg
_______________________________________________
[email protected] http://lists.gnu.org/mailman/listinfo/help-bison
And that solves my problems, present, future and imaginary :D How could
I miss such obvious solution is beyond my comprehension, thank you very
much, changing the skeleton is exactly what I should be doing from the
very beginning. Having it changed for the future versions would be am
interesting addition, but as far as my needs goes, changing the skeleton
is the way to go. Thanks a lot.
_______________________________________________
[email protected] http://lists.gnu.org/mailman/listinfo/help-bison