Graham Percival <gra...@percival-music.ca> writes: > On Wed, Sep 15, 2010 at 07:29:40PM +0200, David Kastrup wrote: >> v.villen...@gmail.com writes: >> >> > This could not be implemented purely using Scheme, as the >> > only way to pass an argument is by using a music-function, >> > thereby forbidding postfix commands. >> >> Is there a particular reason we would not want to have a way of defining >> postfix commands in Scheme? > > I would absolutely love such a mechanism, and consider it almost a > necessity before serious GLISS work can begin. I have no idea how > it could be done, or even if it is possible, but I would encourage > any investigations into this.
Seems rather straightforward. You'd put an appropriate 'syntax property on the music function definition (possibly by allowing a :syntax keyword argument in define-music-function, defaulting to 'SequentialMusic or something else that makes sense), the lexer would check it and return an appropriately different token that would make the parser execute it without finishing the current time step first, using pretty much the same parser for argument lists as normal music functions do. -- David Kastrup _______________________________________________ lilypond-devel mailing list lilypond-devel@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-devel