[Please keep the cc to the Bison list so other know and may help.]
Since I use C++, I do not know the details - perhaps somebody else can
make it precise.
But I figure that one might use actions like
sequence:
{ $$ = ...; }
| sequence token { $$ = ...; free($1); }
Sorry, it should have been:
sequence:
{ $$ = ...; }
| sequence token { $$ = ...; free($2); }
That is, as $2 was allocated, it needs to be freed.
Hans
___
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison
Hans Aberg said the following:
On 4 Feb 2009, at 03:40, José Alburquerque wrote:
Hi. I'm not subscribed to this list, but I'm hoping someone here can
still help me. I'm attempting to develop a small front-end to
dvdauthor in C++ to logically create DVD's to be played in standard
DVD player
On 4 Feb 2009, at 17:06, José Alburquerque wrote:
I'm guessing that bisonc++ also generates a .output file. Would you
or anyone else know?
It is an unrelated program. Bison now has lalr1 skeletons for C++ and
Java.
One problem is that the LALR(1) parsing algorithm that Bison uses
makes
Hans Aberg said the following:
On 4 Feb 2009, at 17:06, José Alburquerque wrote:
Are there other tools that work with LR(1)? Maybe I can look into
those if they exist. Thanks for your answers. Really appreciate it.
The problems is that also those may do some compaction - they just
guarante
On 4 Feb 2009, at 20:47, José Alburquerque wrote:
Thanks a lot for your answers. Again, much appreciated.
If you figure out how to do it, you might integrate into the Bison
distribution (on the Bug-Bison list). This question has come up in the
past, but it has not been implemented in Biso