lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Issue 2702 in lilypond: Patch: Unify the lexer's idea of words and c


From: David Kastrup
Subject: Re: Issue 2702 in lilypond: Patch: Unify the lexer's idea of words and commands across all modes.
Date: Mon, 30 Jul 2012 00:37:05 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

David Kastrup <address@hidden> writes:

> Graham Percival <address@hidden> 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 character sequence is a word, so is its reverse.
>>
>> If this means what I think it means, then huh?  so I can do this
>> now?
>>   music = { c'4 d e f }
>>   { \cisum }
>> and have it compile?
>
> No.  If \music is a command to the lexer, then \cisum is a command to
> the lexer.  That does not mean that they have the same

or any

> definition.  Just the same kind of lexical unit.

That's not actually in any sense important.  Some languages are less
symmetric: a0 may be a word in those languages while 0a isn't.

-- 
David Kastrup




reply via email to

[Prev in Thread] Current Thread [Next in Thread]