Re: Issue 2702 in lilypond: Patch: Unify the lexer's idea of words and commands across all modes.

2012-07-30 Thread David Kastrup
Graham Percival gra...@percival-music.ca writes: On Sun, Jul 29, 2012 at 10:15:10PM +0200, David Kastrup wrote: It turns out that this definition works with both make test as well as make doc without requiring any change in the LilyPond code base. That's certainly promising.

Re: Issue 2702 in lilypond: Patch: Unify the lexer's idea of words and commands across all modes.

2012-07-30 Thread Graham Percival
On Mon, Jul 30, 2012 at 01:12:44PM +0200, David Kastrup wrote: Graham Percival gra...@percival-music.ca writes: Could I have some examples? I just don't get this word business. Is there any syntax which was previously (theoretically) supported, which this patch breaks? Here is one

Re: Issue 2702 in lilypond: Patch: Unify the lexer's idea of words and commands across all modes.

2012-07-30 Thread David Kastrup
Graham Percival gra...@percival-music.ca writes: On Mon, Jul 30, 2012 at 01:12:44PM +0200, David Kastrup wrote: Graham Percival gra...@percival-music.ca writes: Could I have some examples? I just don't get this word business. Is there any syntax which was previously (theoretically)

Re: Issue 2702 in lilypond: Patch: Unify the lexer's idea of words and commands across all modes.

2012-07-30 Thread Graham Percival
On Mon, Jul 30, 2012 at 03:48:48PM +0200, David Kastrup wrote: Graham Percival gra...@percival-music.ca writes: Does this affect { \tempo 4. = 120 c2 d %\tempo Adagio 4. = 43.5 \tempo Adagio 4. = 43 e4. d8 c2 } ? No. (aside: do we want to disallow all

Re: Issue 2702 in lilypond: Patch: Unify the lexer's idea of words and commands across all modes.

2012-07-30 Thread David Kastrup
Graham Percival gra...@percival-music.ca writes: On Mon, Jul 30, 2012 at 03:48:48PM +0200, David Kastrup wrote: Graham Percival gra...@percival-music.ca writes: Does this affect { \tempo 4. = 120 c2 d %\tempo Adagio 4. = 43.5 \tempo Adagio 4. = 43 e4. d8 c2 }

Re: Issue 2702 in lilypond: Patch: Unify the lexer's idea of words and commands across all modes.

2012-07-30 Thread Bernard Hurley
On Mon, Jul 30, 2012 at 02:57:06PM +0100, Graham Percival wrote: ok, but are we stepping in the right direction here? I mean, if \relative c' { \tempo Allegro 4. = 60 } works but \midi { \tempo Allegro 4. = 60 } fails, I wouldn't blame anybody for being surprised.

Re: Issue 2702 in lilypond: Patch: Unify the lexer's idea of words and commands across all modes.

2012-07-29 Thread David Kastrup
Forwarding this from the lilypond-auto list since this review concerns an important syntax change. GLISS material, in a manner. Consider it a proposal for word and command syntax across _all_ lexer modes. Reasonably simple, and somewhat surprisingly not requiring any changes in the entire .ly

Re: Issue 2702 in lilypond: Patch: Unify the lexer's idea of words and commands across all modes.

2012-07-29 Thread Graham Percival
On Sun, Jul 29, 2012 at 10:15:10PM +0200, David Kastrup wrote: Forwarding this from the lilypond-auto list since this review concerns an important syntax change. GLISS material, in a manner. Consider it a proposal for word and command syntax across _all_ lexer modes. What's a lexer mode ?

Re: Issue 2702 in lilypond: Patch: Unify the lexer's idea of words and commands across all modes.

2012-07-29 Thread David Kastrup
Graham Percival gra...@percival-music.ca writes: On Sun, Jul 29, 2012 at 10:15:10PM +0200, David Kastrup wrote: Forwarding this from the lilypond-auto list since this review concerns an important syntax change. GLISS material, in a manner. Consider it a proposal for word and command

Re: Issue 2702 in lilypond: Patch: Unify the lexer's idea of words and commands across all modes.

2012-07-29 Thread David Kastrup
David Kastrup d...@gnu.org writes: Graham Percival gra...@percival-music.ca writes: On Sun, Jul 29, 2012 at 10:15:10PM +0200, David Kastrup wrote: Being able to access every definition equally well in every lexer mode is also an advantage. The word definition is palindromic: iff a