help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Feature request


From: Fernando Ferreira
Subject: Feature request
Date: Wed, 20 Jun 2007 11:28:23 +0100
User-agent: Thunderbird 2.0.0.0 (X11/20070525)

Good morning!

I'm a huge fan of this project and I'm using it for several of my small personal project (hopefully one day I will get to finish and publish one of them). I use both flex and bison C++ Language Interface (not that it has anything to do with the feature I'm about to request) and one feature that is available on Flex that is not on Bison is a macro that executes just before the rule action is executed. On flex, it is YY_USER_ACTION (http://www.gnu.org/software/flex/manual/html_mono/flex.html#SEC14), but there is no (documented) equivalent for it on Bison. I know there is the YY_REDUCE_PRINT macro, but it is only for debug purposes, and not meant (not to say not possible) to be overridden.

The reason for my request is that, as bison generates LR parsers, there is no way to, for instance, execute an action before a rule is reduced, only after.

Thanks in advance for the patience to understand my garbled english (as it is patent, english is not my 1st language). And keep up the good work!

Fernando Ferreira




reply via email to

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