[Top][All Lists]

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

Re: parser.yy / grammar

From: Knut Petersen
Subject: Re: parser.yy / grammar
Date: Tue, 24 Apr 2018 15:14:29 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0

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
// allowed, and they obviously do not require switching into lyrics
// mode for parsing.

                parser->lexer_->push_lyric_state ();
        } grouped_music_list
                parser->lexer_->pop_state ();
                $$ = $2;

It's not like LilyPond is overdocumented.  When there is an explicit
comment, chances are that it's sort-of relevant.

I read that comment. But nevertheless I do not see how a music
function could disturb anything at that point.

Usage example attached ...


Description: Text Data

reply via email to

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