[Csnd-dev] parser/commenting question/request
Iain Duncan <[email protected]>
| Newsgroups | gmane.comp.audio.csound.devel |
|---|---|
| Message-ID | <CAN9NcLysyz-457M_XheaXYM6+86JhA2hChdjwQUVEXa3mEYU2Q@mail.gmail.com> |
Hello devs, I noticed yesterday that interleaving comments in a
function-syntax opcode call does not work in Csound 6. I was wondering
whether this might be possible in the new parser for 7? (perhaps is
already?)
iain
Example (from a recursive UDO)
xout avco + vco2(
1 / ivoices, ; amp
; this comment kills it, being the only thing on the line
kcps * (1 + (inum * gi_spread_cps)),
2, ; imode, 2 = pulse
kpw + (inum * gi_spread_pw), ; pw + pw spread
0)
Error message:
error: syntax error, unexpected NEWLINE (token "
")
from file superpad.csd (1), line 26:
>>> <<<
Parsing failed due to invalid input!
Stopping on parser failure
cannot compile orchestra