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

Issue 6542057: parser.yy: remove STRING_IDENTIFIER token (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 7 months ago by dak
Modified:
11 years, 7 months ago
Reviewers:
janek, joeneeman, lemzwerg
CC:
lilypond-devel_gnu.org
Base URL:
http://git.savannah.gnu.org/gitweb/?p=lilypond.git/trunk/
Visibility:
Public.

Description

parser.yy: remove STRING_IDENTIFIER token A STRING_IDENTIFIER always was a special case of a MARKUP_IDENTIFIER without being treated equally at top level. That led to craziness like xxx=\markup "test" \xxx being invalid, while xxx=\markup \italic "test" \xxx was valid code. This change just removes the STRING_IDENTIFIER category altogether. Where it was used previously, MARKUP_IDENTIFIER is accepted now syntactically, and where the semantics indeed require a plain string, an error is generated explicitly in the action instead of leaving it to the parser to complain about bad grammar.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -16 lines) Patch
M lily/parser.yy View 8 chunks +34 lines, -16 lines 0 comments Download

Messages

Total messages: 5
lemzwerg
LGTM
11 years, 7 months ago (2012-09-22 15:20:21 UTC) #1
joeneeman
lgtm
11 years, 7 months ago (2012-09-26 00:03:19 UTC) #2
janek
David wrote: > ...and where the semantics indeed require a plain string, > an error ...
11 years, 7 months ago (2012-09-26 05:35:16 UTC) #3
dak
On 2012/09/26 05:35:16, janek wrote: > David wrote: > > ...and where the semantics indeed ...
11 years, 7 months ago (2012-09-26 06:58:12 UTC) #4
janek
11 years, 7 months ago (2012-09-26 07:23:38 UTC) #5
On Wed, Sep 26, 2012 at 8:58 AM,  <dak@gnu.org> wrote:
> In short, instead of a cryptic error message and dubious error recovery,
> the user gets a human-understandable error message and a recovery more
> likely not to cause follow-up errors.

Ok.  I supposed this was the case, but wanted to be sure.  I don't
think commit message needs rewording.
Thanks for explanation!
Janek
Sign in to reply to this message.

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