> On 18 Aug 2016, at 16:03, Min Wang <[email protected]> wrote:

> So I should use 
> 
> %type <PROG> PROG                                                             
>  
> 
> instead of  
> 
> %type <PROG*> PROG  

> Thus I do not need %destructor at all?

If you write a proper C++ type T with T::~T destructor, then %destructor should 
not be used, nor explicit deallocation in the actions.


_______________________________________________
[email protected] https://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to