[prev in list] [next in list] [prev in thread] [next in thread]
List: lilypond-devel
Subject: Re: parser.yy / grammar
From: David Kastrup <dak () gnu ! org>
Date: 2018-04-25 7:42:05
Message-ID: 87in8fpwaa.fsf () fencepost ! gnu ! org
[Download RAW message or body]
Knut Petersen <Knut_Petersen@t-online.de> writes:
> Am 24.04.2018 um 21:16 schrieb David Kastrup:
>>
>>>
>>> \version "2.21.0"
>>>
>>> \score{ { c'2 } \addlyrics { Hi there } \lay=
out {}}
>>> \score{ { c'2 } \addlyrics \displayLilyMusic { Hi there } \lay=
out {}}
>>> \score{ { c'2 } \addlyrics { \displayLilyMusic { Hi there } } \lay=
out {}}
>>> \score{ { c'2 2 } \addlyrics { Hi there } \lay=
out {}}
>>> \score{ { c'2 2 } \addlyrics \displayLilyMusic { Hi there } \lay=
out {}}
>>> \score{ { c'2 2 } \addlyrics { \displayLilyMusic { Hi there } } \lay=
out {}}
>>> \score{ { c'2 2 2 } \addlyrics { Hi there } \lay=
out {}}
>>> \score{ { c'2 2 2 } \addlyrics \displayLilyMusic { Hi there } \lay=
out {}}
>>> \score{ { c'2 2 2 } \addlyrics { \displayLilyMusic { Hi there } } \lay=
out {}}
>> Uh what? How is the output correct?
>>
>
> One, two, or three notes, lyrics as expected. See attached pdfs.
>
> To make things clear:
>
> * \displayLilyMusic is=A0 a music function, it never is acceptable to \a=
ddlyrics in the current version of lilypond
> * { \displayLilyMusic ... }=A0 is always acceptable because it is a
> grouped_music_list (but the current parser does not automatically
> force lyric state)
Nope? After \addlyrics there is forced lyric state. That's why a
grouped_music_list is required. It would be pointless to switch to
lyrics state for a MUSIC_IDENTIFIER since it does not parse differently.
At any rate, we don't implement "features" which we know to fail in a
number of cases because they cannot be done correctly. It takes an
inordinary amount of work fixing up after people who think "reliable" is
the enemy of "good enough".
-- =
David Kastrup
_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic