lilypond-user
[Top][All Lists]
Advanced

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

Re: Don't understand this error


From: David Kastrup
Subject: Re: Don't understand this error
Date: Sun, 13 Nov 2011 17:54:09 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux)

Patrick Karl <address@hidden> writes:

> The following snippet:
>
> \version "2.14.2"
> notes = \relative b' {a b c d}
>
> \score {\new Staff { \notes }
>       \layout { }
> }
>
> \break
>
> \score {\new Staff { \transpose c c' \notes }
>       \layout { }
> }
>
> generates the following error:
>
>       test.ly:10:0: error: syntax error, unexpected \score,
> expecting \addlyrics
>
> and, at the end of the console log:
>
> error: failed files: "test.ly"
>
> Can anyone explain this error?  Or, how to find the problem in the docs?

It is a stupidity in the grammar of 14.2 that should be fixed in current
development.  \break is simple music, and simple music is not acceptable
at the top level.

\break \addlyrics {whatever}

however would count as complex music, and that's permissable at the
score level.

So the parser happily takes \break in the expectation that it will be
followed by \addlyrics.  And since that does not happen, it complains.

-- 
David Kastrup




reply via email to

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