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
_______________________________________________
address@hidden http://lists.gnu.org/mailman/listinfo/help-bison