lilypond-devel
[Top][All Lists]
Advanced

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

Re: parser.yy / grammar


From: David Kastrup
Subject: Re: parser.yy / grammar
Date: Tue, 24 Apr 2018 21:16:18 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Knut Petersen <address@hidden> writes:

> Hi David!
>> \addlyrics \displayLilyMusic { Hi there! }
>>
>> would not work with your proposed patch while
>>
>> \addlyrics { Hi there! }
>>
>> does.  There is no conceivable reason for the user why this should be
>> so.
>
> Really? \displayLilyMusic after \addlyrics breaks the syntax rules.
> So let's have a look at the attached lilypond source file.
>
> An original unpatched lilypond 2.21 manages to produce a pdf.
> There are error messages for scores 2, 5, 8 and 9.
> The output for score 1 is correct.
> The output for all other scores is incorrect (on ore two notes are missing)
>
> The same lilypond + patch also manages to produce a pdf.
> There are error messages for scores 2, 5 and 8.
> The output for all scores is correct.
>
> Knut
>
> \version "2.21.0"
>
> \score{ { c'2     } \addlyrics                      { Hi there }   \layout {}}
> \score{ { c'2     } \addlyrics   \displayLilyMusic  { Hi there }   \layout {}}
> \score{ { c'2     } \addlyrics { \displayLilyMusic  { Hi there } } \layout {}}
> \score{ { c'2 2   } \addlyrics                      { Hi there }   \layout {}}
> \score{ { c'2 2   } \addlyrics   \displayLilyMusic  { Hi there }   \layout {}}
> \score{ { c'2 2   } \addlyrics { \displayLilyMusic  { Hi there } } \layout {}}
> \score{ { c'2 2 2 } \addlyrics                      { Hi there }   \layout {}}
> \score{ { c'2 2 2 } \addlyrics   \displayLilyMusic  { Hi there }   \layout {}}
> \score{ { c'2 2 2 } \addlyrics { \displayLilyMusic  { Hi there } } \layout {}}

Uh what?  How is the output correct?

-- 
David Kastrup



reply via email to

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