Re: Initialise tokens in bison/flex

Clint Olsen <clint@0lsen.net>
17 Mar 2002 22:38:11 -0500

          From comp.compilers

Related articles
Initialise tokens in bison/flex rupp@fzi.de (Torsten Rupp) (2002-03-09)
Re: Initialise tokens in bison/flex haberg@matematik.su.se (2002-03-11)
Re: Initialise tokens in bison/flex {spamtrap}@qeng-ho.org (Maneki Neko) (2002-03-17)
Re: Initialise tokens in bison/flex clint@0lsen.net (Clint Olsen) (2002-03-17)
Re: Initialise tokens in bison/flex chrisd@reservoir.com (2002-03-17)
| List of all articles for this month |
From: Clint Olsen <clint@0lsen.net>
Newsgroups: comp.compilers
Date: 17 Mar 2002 22:38:11 -0500
Organization: NULlsen Network
References: 02-03-046
Keywords: yacc, lex
Posted-Date: 17 Mar 2002 22:38:11 EST

If I understand what you're requesting, I think Lemon will do what you
want:


http://www.hwaci.com/sw/lemon


Lemon has the concept of a non-terminal destructor and you can select
what to run when the object gets popped from the stack.


-Clint


Torsten Rupp wrote:
> Does anybody know how I can handle resource allocation/free resources in
> tokens for bison/flex? E. g. allocate a dynamic array when scanning a
> token and free this memory after the last usage. Is there some interface
> for this in bison or flex? How to handle possibly unlimited data size in



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.