Hello,

I've found this in the definition of parallelmusic:

;; check sequence length
   (apply for-each (lambda (. seqs)
                     (let ((moment-reference (ly:music-length (car seqs))))
                       (for-each (lambda (seq moment)
(if (not (equal? moment moment-reference))
                                       (ly:music-message seq
"Bars in parallel music don't have the same length")))
                         seqs (map-in-order ly:music-length seqs))))
          voices)

However, this (lambda (. seqs) ..... )
does not work on my java-based R5RS parser

I looked at the lexical definition of R5RS and found this:

<lambda expression> --> (lambda <formals> <body>)
<formals> --> (<variable>*) | <variable> | (<variable>+ .: <variable>)

My JavaCC for this is:
formals :
 E_OPEN^ ( ( variable )+ ( DOT variable )? )? E_CLOSE!
| variable
;

This seems to not allow (. seqs)

What do you think I should do?

Thank you,

Bert





_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to