[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
parallel-music - no R5RS compliant?
From: |
Bertalan Fodor |
Subject: |
parallel-music - no R5RS compliant? |
Date: |
Sat, 13 May 2006 11:58:33 +0200 |
User-agent: |
Thunderbird 1.5.0.2 (Windows/20060308) |
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
- parallel-music - no R5RS compliant?,
Bertalan Fodor <=