Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1149)

Issue 12945043: Issue 3498: fatal error with toplevel-markup-identifier (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 8 months ago by dak
Modified:
10 years, 6 months ago
Reviewers:
janek, thomasmorley651
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Issue 3498: fatal error with toplevel-markup-identifier The reported problem mrkp = \markup { "x" } \mrkp triggers an error because of markup requiring additional lookahead in assignments. This is fixed by sacrificing string addition, an arcane and undocumented feature that has probably not been used in the last decade or so.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -11 lines) Patch
M lily/parser.yy View 1 chunk +0 lines, -11 lines 0 comments Download

Messages

Total messages: 5
janek
LGTM (but i'm not a parser expert) Sorry for a possibly ignorant question: will this ...
10 years, 8 months ago (2013-08-18 10:20:07 UTC) #1
thomasmorley651
On 2013/08/18 10:20:07, janek wrote: > LGTM (but i'm not a parser expert) I've no ...
10 years, 8 months ago (2013-08-18 10:41:18 UTC) #2
janek
2013/8/18 <thomasmorley65@gmail.com>: > On 2013/08/18 10:20:07, janek wrote: >> Sorry for a possibly ignorant question: ...
10 years, 8 months ago (2013-08-18 11:05:39 UTC) #3
dak
Janek Warchoł <janek.lilypond@gmail.com> writes: > 2013/8/18 <thomasmorley65@gmail.com>: >> On 2013/08/18 10:20:07, janek wrote: >>> Sorry ...
10 years, 8 months ago (2013-08-18 17:21:00 UTC) #4
janek
10 years, 8 months ago (2013-08-18 18:41:20 UTC) #5
2013/8/18 David Kastrup <dak@gnu.org>:
> It's not entirely clear since you can't write
>
> mus = \addlyrics ...
>
> anyway.  The main problem is that \mus differs from #mus in that it
> needs to be evaluated _before_ a token can be handed to the parser.
> This will only change once every \xxx has the same token category.  The
> project of reducing the number of xxx_IDENTIFIER tokens is ongoing (and
> has created quite a few more possibilities) but by far not finished.
>
> If \mus returned _two_ tokens, the first without actually evaluating
> mus, it is conceivable that the first token already provides enough
> information to the parser to know that \addlyrics (and a few similar
> commands) are definitely _not_ coming, so that it can evaluate the
> assignment before evaluating \mus itself.
>
> But that would be a rather complex change for comparatively little
> benefit.  So I prefer focusing on reducing the xxx_IDENTIFIER cases
> instead.

ok.  thanks for explanation!
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b