[Top][All Lists]

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

Less restrictive LilyPond identifiers?

From: Matthias Kilian
Subject: Less restrictive LilyPond identifiers?
Date: Sun, 7 Mar 2004 15:03:30 +0100
User-agent: Mutt/1.3.28i


are there any reasons to restrict identifiers in LilyPond to contain only
letters? IMO, it would be nice to at least also allow digits.  That would
make it easier to write large pieces by defining small chuncs of music:

Part1Voice1 = \notes {...}
Part1Voice2 = \notes {...}

At least for allowing digits, nothing of the tests, examples and
documentation of LilyPond would be broken, since a quick

$ find . -type f | xargs grep -l '\\[[:alpha:]]\+[[:digit:]]'

only lists some non-ly files.

Allowing _ or - would certainly break existing LilyPond input (for
example, the \fermata_"Cadenza ad lib." in the Mozart example).

If there's no other reason for disallowing digits than to keep
parser/scanner, I could try to write a patch.


reply via email to

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