On Sat, 17 Jun 2006, Akim Demaille wrote:

> The more I think about it, the more I like a simple solution which does
> rely on %union to distinguish cases.

Having tried that solution (the first patch), I found it to be more 
complex in implementation, interface, and documentation.  I prefer the 
explicit declarations with no subtle behavior.

> Even when we have %import we will
> still be able to distinguish them.

I can't comment there because I don't know how %import will behave.

However, the old solution is restrictive in another way.  It requires you 
to have a %union in order to separate pre's from post's even when you 
don't want a %union.  The union is just one of several Bison-generated 
definitions that might need to divide user code in the header file.

Joel


Reply via email to