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

Issue 6460064: When cloning a lexer/parser, don't copy the scopes. (Closed)

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

Description

When cloning a lexer/parser, don't copy the scopes.

Patch Set 1 #

Patch Set 2 : Typo!?! #

Patch Set 3 : Restore parser variable after string parsing #

Total comments: 3

Patch Set 4 : Just comment fixes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -21 lines) Patch
M lily/lily-lexer.cc View 1 1 chunk +1 line, -12 lines 0 comments Download
M lily/lily-parser.cc View 1 2 3 4 chunks +6 lines, -9 lines 0 comments Download

Messages

Total messages: 6
Trevor Daniels
http://codereview.appspot.com/6460064/diff/4001/lily/lily-parser.cc File lily/lily-parser.cc (right): http://codereview.appspot.com/6460064/diff/4001/lily/lily-parser.cc#newcode160 lily/lily-parser.cc:160: // TODO: use $parser Either this comment should be ...
11 years, 9 months ago (2012-08-10 06:58:57 UTC) #1
dak
http://codereview.appspot.com/6460064/diff/4001/lily/lily-parser.cc File lily/lily-parser.cc (right): http://codereview.appspot.com/6460064/diff/4001/lily/lily-parser.cc#newcode160 lily/lily-parser.cc:160: // TODO: use $parser On 2012/08/10 06:58:57, Trevor Daniels ...
11 years, 9 months ago (2012-08-10 07:13:58 UTC) #2
hanwenn
http://codereview.appspot.com/6460064/diff/4001/lily/lily-parser.cc File lily/lily-parser.cc (right): http://codereview.appspot.com/6460064/diff/4001/lily/lily-parser.cc#newcode160 lily/lily-parser.cc:160: // TODO: use $parser On 2012/08/10 07:13:58, dak wrote: ...
11 years, 9 months ago (2012-08-10 16:14:55 UTC) #3
dak
On 2012/08/10 16:14:55, hanwenn wrote: > http://codereview.appspot.com/6460064/diff/4001/lily/lily-parser.cc > File lily/lily-parser.cc (right): > > http://codereview.appspot.com/6460064/diff/4001/lily/lily-parser.cc#newcode160 > ...
11 years, 9 months ago (2012-08-10 16:16:47 UTC) #4
hanwenn
On 2012/08/10 16:16:47, dak wrote: > On 2012/08/10 16:14:55, hanwenn wrote: > > http://codereview.appspot.com/6460064/diff/4001/lily/lily-parser.cc > ...
11 years, 9 months ago (2012-08-10 16:20:30 UTC) #5
dak
11 years, 9 months ago (2012-08-10 16:27:34 UTC) #6
On 2012/08/10 16:20:30, hanwenn wrote:
> On 2012/08/10 16:16:47, dak wrote:
> > 
> > and #{ ... #} looks for "parser", and you don't want to change the name of
the
> > first argument of music functions.
> 
> the first name of the music function argument is irrelevant, as it locally
> scoped.

Wrong.  #{ ... #} expands to Lisp code taking the meaning of "parser" from the
current lexical scope rather than the current module.
Sign in to reply to this message.

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