[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Feature request
From: |
Hans Aberg |
Subject: |
Re: Feature request |
Date: |
Wed, 20 Jun 2007 21:42:45 +0200 |
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
- Feature request, Fernando Ferreira, 2007/06/20
- Re: Feature request, Hans Aberg, 2007/06/20
- Re: Feature request, Fernando Ferreira, 2007/06/20
- Re: Feature request,
Hans Aberg <=
- Re: Feature request, Fernando Ferreira, 2007/06/21
- Re: Feature request, Hans Aberg, 2007/06/21
- Re: Feature request, Hans Aberg, 2007/06/21
- Re: Feature request, Fernando Ferreira, 2007/06/21
- Re: Feature request, Hans Aberg, 2007/06/21
Re: Feature request, Evan Lavelle, 2007/06/20