lilypond-devel
[Top][All Lists]
Advanced

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

Re: brace mismatch in init.ly


From: Han-Wen Nienhuys
Subject: Re: brace mismatch in init.ly
Date: Fri, 26 Nov 2004 11:54:32 +0100

address@hidden writes:
> [moving to lilypond-devel]
> On Friday 26 November 2004 01.58, Han-Wen Nienhuys wrote:
> > address@hidden writes:
> > > and then add
> > > \maininput
> > > \EOF
> > > to init.ly? When the input file is incomplete, this would _always_ give
> > > an error like "unexpected EOF", I think. Which might be more intuitive.
> > > (may I try to write a patch?)
> >
> > I think we should just remove the "unmatched braces" warning, since
> > errors will always be caught somewhere else as well. I'm reluctant
> > about the EOF idea. I think that we should avoid that context errors
> > point at lily's init files.
> 
> Your last comment is very true.. perhaps each true end-of-file could produce 
> an EOF token? Then the error would be caught at the end of the input file 
> instead. Also, some errors related to manual \include commands would be 
> caught.

No, we cannot do this. We'd have to add EOF to every rule; consider

  \layout {
    \include "engravers.ly"
  }

engravers.ly will produce EOF before the } of \layout.


--
 Han-Wen Nienhuys   |   address@hidden   |   http://www.xs4all.nl/~hanwen 





reply via email to

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