help-bison
[Top][All Lists]
Advanced

[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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]