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

Issue 577840053: Use Scheme_hash_table for keyword handling

Can't Edit
Can't Publish+Mail
Start Review
Created:
3 years, 11 months ago by dak
Modified:
3 years, 11 months ago
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Use Scheme_hash_table for keyword handling

Patch Set 1 #

Patch Set 2 : Minor consistency change #

Total comments: 7

Patch Set 3 : Move keytable init out of constructor. Frankly, I don't consider this an improvement. #

Patch Set 4 : This is a version I find ok. Initialisation factored out and moved after smobify_self (); call #

Patch Set 5 : Actually, now that make_keytable does not access any Lily_lexer internals, it might as well be at f… #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -116 lines) Patch
D lily/include/keyword.hh View 1 chunk +0 lines, -46 lines 0 comments Download
M lily/include/lily-lexer.hh View 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M lily/include/lily-proto.hh View 1 chunk +0 lines, -2 lines 0 comments Download
D lily/keyword.cc View 1 chunk +0 lines, -33 lines 0 comments Download
M lily/lexer.ll View 1 2 3 4 1 chunk +3 lines, -5 lines 0 comments Download
M lily/lily-lexer.cc View 1 2 3 4 8 chunks +34 lines, -27 lines 0 comments Download

Messages

Total messages: 13
dak
Minor consistency change
3 years, 11 months ago (2020-04-27 12:22:34 UTC) #1
lemzwerg
LGTM
3 years, 11 months ago (2020-04-27 16:25:03 UTC) #2
hanwenn
https://codereview.appspot.com/577840053/diff/561760044/lily/lily-lexer.cc File lily/lily-lexer.cc (right): https://codereview.appspot.com/577840053/diff/561760044/lily/lily-lexer.cc#newcode97 lily/lily-lexer.cc:97: Protected_scm Lily_lexer::keytable_; could move out of Lily_lexer. https://codereview.appspot.com/577840053/diff/561760044/lily/lily-lexer.cc#newcode102 lily/lily-lexer.cc:102: ...
3 years, 11 months ago (2020-04-27 21:22:59 UTC) #3
dak
https://codereview.appspot.com/577840053/diff/561760044/lily/lily-lexer.cc File lily/lily-lexer.cc (right): https://codereview.appspot.com/577840053/diff/561760044/lily/lily-lexer.cc#newcode97 lily/lily-lexer.cc:97: Protected_scm Lily_lexer::keytable_; On 2020/04/27 21:22:59, hanwenn wrote: > could ...
3 years, 11 months ago (2020-04-27 22:07:07 UTC) #4
Dan Eble
On 2020/04/27 22:07:07, dak wrote: > https://codereview.appspot.com/577840053/diff/561760044/lily/lily-lexer.cc > File lily/lily-lexer.cc (right): > > https://codereview.appspot.com/577840053/diff/561760044/lily/lily-lexer.cc#newcode97 > ...
3 years, 11 months ago (2020-04-27 22:31:33 UTC) #5
dak
Move keytable init out of constructor. Frankly, I don't consider this an improvement.
3 years, 11 months ago (2020-04-27 22:57:06 UTC) #6
dak
On 2020/04/27 22:57:06, dak wrote: > Move keytable init out of constructor. Frankly, I don't ...
3 years, 11 months ago (2020-04-27 23:07:17 UTC) #7
dak
On 2020/04/27 23:07:17, dak wrote: > On 2020/04/27 22:57:06, dak wrote: > > Move keytable ...
3 years, 11 months ago (2020-04-27 23:17:30 UTC) #8
Dan Eble
I prefer patch set 2. https://codereview.appspot.com/577840053/diff/561760044/lily/lexer.ll File lily/lexer.ll (right): https://codereview.appspot.com/577840053/diff/561760044/lily/lexer.ll#newcode928 lily/lexer.ll:928: // use more SCM ...
3 years, 11 months ago (2020-04-27 23:24:19 UTC) #9
dak
This is a version I find ok. Initialisation factored out and moved after smobify_self (); ...
3 years, 11 months ago (2020-04-27 23:31:07 UTC) #10
dak
https://codereview.appspot.com/577840053/diff/561760044/lily/lexer.ll File lily/lexer.ll (right): https://codereview.appspot.com/577840053/diff/561760044/lily/lexer.ll#newcode928 lily/lexer.ll:928: // use more SCM for this. On 2020/04/27 23:24:19, ...
3 years, 11 months ago (2020-04-27 23:37:35 UTC) #11
dak
Actually, now that make_keytable does not access any Lily_lexer internals, it might as well be ...
3 years, 11 months ago (2020-04-27 23:50:45 UTC) #12
hahnjo
3 years, 11 months ago (2020-05-01 10:35:51 UTC) #13
Sign in to reply to this message.

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