"Joel E. Denny" <[EMAIL PROTECTED]> writes:

> shouldn't Bison warn when there's %union or <...> usage in the
> grammar but a $$ without a type appears in a %destructor/%printer?

You mean, something like this?

     %union { char *p; }
     %token STRING
     %destructor { free ($$); } STRING

It would make sense to warn about this, yes, though as the C compiler
will generate a type error for this sort of thing it doesn't sound
that urgent.  (I can't think of an example where the C compiler
wouldn't warn, but perhaps I'm not thinking outside the box
enough....)


Reply via email to