bug-lilypond
[Top][All Lists]

## Issue 2001 in lilypond: Patch: Patch series (available at branch dev/syn

 From: lilypond Subject: Issue 2001 in lilypond: Patch: Patch series (available at branch dev/syntax) for more argument list power. Date: Tue, 01 Nov 2011 12:06:01 +0000

Status: New
Owner: ----
Labels: Type-Enhancement Patch-new


New issue 2001 by address@hidden: Patch: Patch series (available at branch dev/syntax) for more argument list power.
http://code.google.com/p/lilypond/issues/detail?id=2001

Patch series (available at branch dev/syntax) for more argument list power.

Consists of the following patches in reverse order:


programming-interface.itely: Explain new optional argument semantics and \default


parser.yy et al: make \mark a musicfunction.

parser.yy et al: make \time and \times musicfunctions.

Replace \key with music function


input/regression/optional-args-backup.ly: Test backing up of optional argument parts.


Use the new fraction? predicate where appropriate.

Implement fraction? predicate checking for pair of unsigned integers

parser.yy: Allow numbers, fractions and \default as arguments.

Common parts of function_arglist and function_arglist_closed are
also factored out in order to avoid premature parser decisions.

In closed music expressions (mostly in the context of optional
arguments), numbers with units (3\cm) and "wide" fractions (3 / 4) are
not recognized, but if the respective number is backed up because of
a false predicate, they can still be used in that manner in a
mandatory argument.

As a consequence of moving most of the optional argument checking into
predicates, the operator priority system could be vastly simplified.

\default can be used to force the rest of an optional argument block
to get skipped.  It is the only way to skip optional arguments if they
are not followed by a mandatory argument, since otherwise a skipped
value could not be interpreted anywhere else in the argument list.

parser.yy et al: make UNSIGNED a Scheme value token

Move priority of \addlyrics and composite music below function arguments.

Needed in order to make closed_music a subset of music recognizable