Re: [Csnd-dev] parser/commenting question/request

Steven Yi <[email protected]>
Newsgroups gmane.comp.audio.csound.devel
Message-ID <CANtcCs771+867DFh5A4AKoZU_6GDMoMRYjELCyLt5ehu+FYeAQ@mail.gmail.com>
Could you provide a minimal CSD that has the problem? Could try it out
here with CS7 and if it's not working it'd be good to have an issue on
the tracker. We could also add the example to the test suite.

On Fri, Mar 29, 2024 at 2:25 PM Iain Duncan <[email protected]> wrote:
>
> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.