On 2 Dec 2006, at 06:23, Paul Eggert wrote:
2. The prologue alternatives: %code, %requires, %provides, and %
code-top.
Yes. Though to be honest I can't even remember what all of them are
for....
In addition to those code-placement, there are a couple more
potential for C++, which I cannot tell right off if they will be
useful without experimentation. An in addition to those locations,
for various purposes, not specifically C++, people wanted to be able
to insert code in various places in the parser.
So it seemed me important to supply a mechanism by which those things
could be done by merely changing the skeleton file, without having to
tweak the Bison sources directly or hoping that the developers would
eventually add this or that feature. That last might then be done,
when a particular use has benn found to be sufficiently standard.
Or so, was my idea with %code. I am not sure what the idea is to now
add a much more lmited variation of that command - evidently it is
not in 2.3.a.
Hans Aberg