[Top][All Lists]

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

%destructor declared by semantic type

From: Joel E. Denny
Subject: %destructor declared by semantic type
Date: Tue, 20 Jun 2006 23:02:56 -0400 (EDT)

I'd like to start working on making this possible:

  %destructor { free ($$); } symbol1 <type1> <type2>

This would declare the same destructor for the symbol `symbol1' and for 
all symbols declared with semantic type `type1' or `type2'.

One benefit that may not be immediately obvious is that Bison would then 
be able to compute which destructor to use for a midrule semantic value.  
However, this raises questions about how $<type>$ should be handled in 

I think I've come up with a reasonable plan to handle all this.  My full 
proposal is here:

What do you think?


reply via email to

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