Updates:
Labels: Patch-new
Comment #5 on issue 2001 by d...@gnu.org: Patch: Patch series (available at
branch dev/syntax) for more argument list power.
http://code.google.com/p/lilypond/issues/detail?id=2001#c5
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
without lookahead.
http://codereview.appspot.com/5333051
_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond