[Csnd] csoundParseOrc - detect if the code is valid
Date | 2013-07-24 01:39 | ||
From | Tarmo Johannes | ||
Subject | [Csnd] csoundParseOrc - detect if the code is valid | ||
Hi,
I want to test, if some text is valid csound code before I compile it with csoundCompileOrc ,
how can I determin it by reading the struct TREE that the code is valid or there is some errors? or what would be preferred way to do it?
From Csound API documentation I read just:
what the fields of TREE mean, remains unclear to me.
thanks, tarmo
|
Date | 2013-07-24 11:45 | ||
From | Steven Yi | ||
Subject | Re: [Csnd] csoundParseOrc - detect if the code is valid | ||
Hi Tarmo, If you use csoundParseOrc now with bad orc code, I would expect it return a NULL. Have you tried that and gotten that result? steven On Tue, Jul 23, 2013 at 8:39 PM, Tarmo Johannes <tarmo.johannes@otsakool.edu.ee> wrote:
|
Date | 2013-07-24 16:52 | ||
From | Tarmo Johannes | ||
Subject | Re: [Csnd] csoundParseOrc - detect if the code is valid | ||
Thank you!
Yes, that was it. Works and was exactly what I needed.
best! tarmo
On Wednesday 24 July 2013 06:45:45 Steven Yi wrote: Hi Tarmo, If you use csoundParseOrc now with bad orc code, I would expect it return a NULL. Have you tried that and gotten that result? steven On Tue, Jul 23, 2013 at 8:39 PM, Tarmo Johannes <tarmo.johannes@otsakool.edu.ee> wrote: Hi,
I want to test, if some text is valid csound code before I compile it with csoundCompileOrc ,
how can I determin it by reading the struct TREE that the code is valid or there is some errors? or what would be preferred way to do it?
From Csound API documentation I read just:
what the fields of TREE mean, remains unclear to me.
thanks, tarmo
|