bug-lilypond
[Top][All Lists]
Advanced

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

Re: Issue 2001 in lilypond: Patch: Patch series (available at branch dev


From: lilypond
Subject: Re: Issue 2001 in lilypond: Patch: Patch series (available at branch dev/syntax) for more argument list power.
Date: Sat, 05 Nov 2011 22:46:50 +0000

Updates:
        Labels: Patch-new

Comment #9 on 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#c9

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




reply via email to

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