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

Issue 6493072: Allow digits in identifiers (Closed)

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

Description

Allow digits in identifiers Set lexer state to INITIAL for top-level expressions, switching to 'notes' mode inside music-expressions

Patch Set 1 : version allowing numbers at ends #

Total comments: 21

Patch Set 2 : version with digits, but not at the end #

Total comments: 1

Patch Set 3 : Use a plus character to introduce digits #

Patch Set 4 : Use a dot character to introduce digits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -13 lines) Patch
M Documentation/learning/common-notation.itely View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
A input/regression/identifiers-with-digits.ly View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M lily/lexer.ll View 1 2 3 8 chunks +12 lines, -12 lines 0 comments Download
M vim/lilypond-syntax.vim View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 16
dak
All in all, a large step backwards for making the lexer behave predictably across modes ...
11 years, 8 months ago (2012-09-02 11:52:46 UTC) #1
Keith
http://codereview.appspot.com/6493072/diff/14/input/regression/page-spacing-nonstaff-lines-independent.ly File input/regression/page-spacing-nonstaff-lines-independent.ly (left): http://codereview.appspot.com/6493072/diff/14/input/regression/page-spacing-nonstaff-lines-independent.ly#oldcode11 input/regression/page-spacing-nonstaff-lines-independent.ly:11: \addlyrics { high \skip2 } On 2012/09/02 11:52:46, dak ...
11 years, 8 months ago (2012-09-02 17:59:53 UTC) #2
Keith
On 2012/09/02 11:52:46, dak wrote: > It looks like some _severe_ doctoring around with regard ...
11 years, 8 months ago (2012-09-02 18:02:35 UTC) #3
dak
All in all, this creates so many loose ends and problems of the kind I ...
11 years, 8 months ago (2012-09-02 18:22:14 UTC) #4
Keith
The version "digits, but not at the end" lets us read vn2_meas345ff = \relative c' ...
11 years, 8 months ago (2012-09-03 18:08:23 UTC) #5
dak
On 2012/09/03 18:08:23, Keith wrote: > The version "digits, but not at the end" lets ...
11 years, 8 months ago (2012-09-03 20:07:07 UTC) #6
bernard_marcade.biz
On Mon, Sep 03, 2012 at 08:07:07PM +0000, dak@gnu.org wrote: > > flex documentation is ...
11 years, 8 months ago (2012-09-03 20:35:35 UTC) #7
Keith
On 2012/09/03 20:07:07, dak wrote: > flex documentation is pretty clear about backing up being ...
11 years, 8 months ago (2012-09-03 23:00:25 UTC) #8
Keith
While we are thinking about this, I suggest we remove (later) the rule forbidding backing-up ...
11 years, 8 months ago (2012-09-05 06:59:16 UTC) #9
dak
On 2012/09/05 06:59:16, Keith wrote: > While we are thinking about this, I suggest we ...
11 years, 8 months ago (2012-09-05 07:50:27 UTC) #10
Keith
On Wed, 05 Sep 2012 00:50:27 -0700, <dak@gnu.org> wrote: > On 2012/09/05 06:59:16, Keith wrote: ...
11 years, 8 months ago (2012-09-05 09:26:12 UTC) #11
dak
On 2012/09/05 09:26:12, Keith wrote: > Agreed, > but I'll still pout a couple more ...
11 years, 8 months ago (2012-09-05 09:51:17 UTC) #12
janek
On Wed, Sep 5, 2012 at 11:51 AM, <dak@gnu.org> wrote: > If it had been ...
11 years, 8 months ago (2012-09-05 10:52:02 UTC) #13
lemzwerg
LGTM. Nice idea. I'm not sure whether this fits into the large picture w.r.t. syntax ...
11 years, 6 months ago (2012-10-29 06:20:17 UTC) #14
dak
On 2012/10/29 06:20:17, lemzwerg wrote: > LGTM. Nice idea. I'm not sure whether this fits ...
11 years, 6 months ago (2012-10-29 10:05:30 UTC) #15
Keith
11 years, 6 months ago (2012-10-30 04:13:30 UTC) #16
On 2012/10/29 10:05:30, dak wrote:

> Keith's proposal would not imply that violin . $(+ 1 1) would 
> be the same as violin.2 and not even violin . 2 would work here.
> 

I didn't think we wanted such things.
Nor do we want 
  \paper { short-indent = 3\cm }
to subtract 'indent' from 'short'.  We are simply accommodating other language
conventions, Scheme or human, in acceptable names.

We can choose a different character to introduce digits
 \violin+1  \violin01  \violin,1  \violin;1  \violin:1
as in patch set 3, for example.
Sign in to reply to this message.

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