[Top][All Lists]

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

Re: symbol declarations after rules

From: Joel E. Denny
Subject: Re: symbol declarations after rules
Date: Tue, 27 Jun 2006 16:44:43 -0400 (EDT)

On Tue, 27 Jun 2006, Akim Demaille wrote:

> I agree.  That's also what I'm aiming for.  Before implementing
> %import, I would like to be able to transform the grammar step by
> step, as if we were striping syntactic sugar.  Actions come at the
> very end.

While we're on this topic, I noticed this comment in parse-gram.y:

  | /*FIXME: Err?  What is this horror doing here? */ ";"

A `;' is required after each % declaration in the rules section.  It's 
nice to be able to move declarations to the declarations sections without 
changing them.  Is this the reason for the above production?  Without it, 
Bison fails on even parse-gram.y.


reply via email to

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