Re: parser.yy / grammar

2018-04-25 Thread David Kastrup
Knut Petersen writes: > Am 24.04.2018 um 21:16 schrieb David Kastrup: >> >>> >>> \version "2.21.0" >>> >>> \score{ { c'2 } \addlyrics { Hi there } \layout >>> {}} >>> \score{ { c'2 } \addlyrics \displayLilyMusic { Hi there } \layout >>> {}} >>> \score{ { c'2

Re: parser.yy / grammar

2018-04-24 Thread Knut Petersen
Am 24.04.2018 um 21:16 schrieb David Kastrup: \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 } } \lay

Re: parser.yy / grammar

2018-04-24 Thread David Kastrup
Knut Petersen 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 brea

Re: parser.yy / grammar

2018-04-24 Thread Knut Petersen
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 th

Re: parser.yy / grammar

2018-04-24 Thread David Kastrup
Knut Petersen writes: > Am 24.04.2018 um 13:46 schrieb David Kastrup: >> >> parser.yy is actually quite explicit here: >> >> // We must not have lookahead tokens parsed in lyric mode. In order >> // to save confusion, we take almost the same set as permitted with >> // \lyricmode and/or \lyrics.

Re: parser.yy / grammar

2018-04-24 Thread Knut Petersen
Am 24.04.2018 um 13:46 schrieb David Kastrup: parser.yy is actually quite explicit here: // We must not have lookahead tokens parsed in lyric mode. In order // to save confusion, we take almost the same set as permitted with // \lyricmode and/or \lyrics. However, music identifiers are also //

Re: parser.yy / grammar

2018-04-24 Thread David Kastrup
Knut Petersen writes: > Hi everybody! > > Is there a reason not to allow MUSIC_FUNCTIONs whenever > MUSIC_IDENTIFIERs are allowed? Yes. > One example is \addlyrics. It only accepts grouped_music_lists and > MUSIC_IDENTIFIERs ... Intentionally so. \addlyrics is a mode-changing command and it h

Re: parser.yy / grammar

2018-04-24 Thread Knut Petersen
Is there a reason not to allow MUSIC_FUNCTIONs whenever MUSIC_IDENTIFIERs are allowed? One example is \addlyrics. It only accepts grouped_music_lists and MUSIC_IDENTIFIERs ... I think this patch would be enough ... Knut >From bd9ac344b02eb908d9536e3679050e0b7eca3ab9 Mon Sep 17 00:00:00 2001

parser.yy / grammar

2018-04-24 Thread Knut Petersen
Hi everybody! Is there a reason not to allow MUSIC_FUNCTIONs whenever MUSIC_IDENTIFIERs are allowed? One example is \addlyrics. It only accepts grouped_music_lists and MUSIC_IDENTIFIERs ... Knut ___ lilypond-devel mailing list lilypond-devel@gnu.org