bison-patches
[Top][All Lists]
Advanced

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

Re: %type {...} a b c


From: Akim Demaille
Subject: Re: %type {...} a b c
Date: Thu, 13 Jul 2006 10:10:15 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

>>> "Joel" == Joel E Denny <address@hidden> writes:

 > I was thinking about the syntax of your new %type.  You've been
 > proposing something like:

 >   %type {int} INT

 > Right?

Yep.

 > I don't quite like using {...} to delimit a semantic type.  For
 > example, how would a per-type %destructor/%printer look?

 >   %destructor { free ($$); } {char *} {int *}

 > Seems ugly to me.

Shared opinion :)

 > Why not do something like <{...}>?  So:

 >   %type <{int}> INT
 >   %destructor { free ($$}; } <{char *}> <{int *}>

 > I think it's a little better at least.

I agree.





reply via email to

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