On Wed, 1 Mar 2006, Paul Eggert wrote:

> How about if we support something like this:
> 
>   bison_spec: definition_section rules_section user_subroutines {$%};
> 
> where "$%" expands to all the "$$ = new...;" stuff.  That's more
> concise yet.

Tree building was just an example semantic action... and not the best 
example for showing off the usefulness of named semantic values.  It seems 
like a separate feature to me.

> Obviously this is just a sketch and more detail would
> need to be added, but I hope you get the idea.

I wonder if some sort of semantic action template language would be more 
generally useful than support specifically for tree building.

Joel


Reply via email to