help-bison
[Top][All Lists]
Advanced

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

Re: Bison version 1.875e available for testing


From: Hans Aberg
Subject: Re: Bison version 1.875e available for testing
Date: Sun, 12 Dec 2004 18:50:51 +0100
User-agent: Microsoft-Outlook-Express-Macintosh-Edition/5.0.6

At 14:23 +0100 2004/12/12, Laurence Finston wrote:

>> > Does this make it possible to declare local automatic
>> > variables in `yyparse()'?
>> 
>> Sorry, no.
>> 
>
>Do the Bison maintainers and developers think this would be a useful feature
>to implement in a future version?

This be easy to support, once Bison gets a %code <...> {...} feature. Akim
Demaille mentioned the he already has made some such experimental feature.
This feature will be needed, for example, under C++, where code can be
placed in more places than under C.

There are several places where one might want to put user code in the parser
function: Parser data, token action, parser pre-actions, error message
handling, etc. With the feature above, (nearly) all one needs to do, is to
invent names for these places.

  Hans Aberg






reply via email to

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