[Top][All Lists]

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

Re: [updated PATCH] %language declaration

From: Joel E. Denny
Subject: Re: [updated PATCH] %language declaration
Date: Thu, 14 Dec 2006 14:10:06 -0500 (EST)

On Thu, 14 Dec 2006, Paul Eggert wrote:

> Thanks for proposing that patch.  Some comments:
> Paolo Bonzini <address@hidden> writes:
> > +* A new experimental directive %language allows to specify the language
> > +  of the generated parser.  Supported languages are C (the default) and
> > +  C++.  Besides the skeleton that is used, the directive affects
> > +  the names of the generated files if the grammar has extension ".y".
> What's "experimental" about it?  Can we just remove the word
> "experimental" here?

Sorry, Paul.  This was my suggestion.  I feel like %language is rather 
new, and there are a few details we're not sure about.

For example, I think %language would be a nice opportunity to stop using 
.tab in output file names.  (Automake already seems to agree with this.)  
The documentation would say something like: %language implies that file 
name conventions appropriate for the specified language should be used 
instead of Bison's traditional ones.  (Of course, the user can override 
all this with %output, %defines, etc.)

reply via email to

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