Csound Csound-dev Csound-tekno Search About

Re: [Csnd] parsing error

Date2013-09-20 18:40
Fromjohn ffitch
SubjectRe: [Csnd] parsing error
That is the price of the functional notation -- we covered that a
month ago

==John ffitch
>>>>> "peiman" == peiman khosravi  writes:

 peiman> [1:text/plain Hide]

 peiman> I'm getting an error with this:

 peiman> kPch =   cpspch (p5)

 peiman> error: syntax error, unexpected '(', expecting ':'  (token "(") line 27:
 >>>> kPch =   cpspch ( <<<
 peiman> Parsing failed due to invalid input!
 peiman> WARNING: Stopping on parser failure

 peiman> Deleting the space before '(p5)' solves it.

 peiman> *Specs*
 peiman> Csound version 6.00.1 (double samples) Aug  6 2013
 peiman> libsndfile-1.0.21


 peiman> Thanks
 peiman> Peiman


Date2013-09-21 00:05
FromAndres Cabrera
SubjectRe: [Csnd] parsing error
Since this is such an easy error to make, and breaks old code, could the warning include information about the function notation, so that users can understand what;s going on?

Cheers,
Andrés


On Fri, Sep 20, 2013 at 10:40 AM, john ffitch <jpff@codemist.co.uk> wrote:
That is the price of the functional notation -- we covered that a
month ago

==John ffitch
>>>>> "peiman" == peiman khosravi <peimankhosravi@gmail.com> writes:

 peiman> [1:text/plain Hide]

 peiman> I'm getting an error with this:

 peiman> kPch =   cpspch (p5)

 peiman> error: syntax error, unexpected '(', expecting ':'  (token "(") line 27:
 >>>> kPch =   cpspch ( <<<
 peiman> Parsing failed due to invalid input!
 peiman> WARNING: Stopping on parser failure

 peiman> Deleting the space before '(p5)' solves it.

 peiman> *Specs*
 peiman> Csound version 6.00.1 (double samples) Aug  6 2013
 peiman> libsndfile-1.0.21


 peiman> Thanks
 peiman> Peiman



Send bugs reports to the Sourceforge bug trackers
csound6:
            https://sourceforge.net/p/csound/tickets/
csound5:
            https://sourceforge.net/p/csound/bugs/
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"




Date2013-09-22 10:32
Frompeiman khosravi
SubjectRe: [Csnd] parsing error
Yes I remember the discussion now. 

I found it when marking a student's work, which was working for him on csound 5. So it does break old code for sure!

P



On 21 September 2013 00:05, Andres Cabrera <mantaraya36@gmail.com> wrote:
Since this is such an easy error to make, and breaks old code, could the warning include information about the function notation, so that users can understand what;s going on?

Cheers,
Andrés


On Fri, Sep 20, 2013 at 10:40 AM, john ffitch <jpff@codemist.co.uk> wrote:
That is the price of the functional notation -- we covered that a
month ago

==John ffitch
>>>>> "peiman" == peiman khosravi <peimankhosravi@gmail.com> writes:

 peiman> [1:text/plain Hide]

 peiman> I'm getting an error with this:

 peiman> kPch =   cpspch (p5)

 peiman> error: syntax error, unexpected '(', expecting ':'  (token "(") line 27:
 >>>> kPch =   cpspch ( <<<
 peiman> Parsing failed due to invalid input!
 peiman> WARNING: Stopping on parser failure

 peiman> Deleting the space before '(p5)' solves it.

 peiman> *Specs*
 peiman> Csound version 6.00.1 (double samples) Aug  6 2013
 peiman> libsndfile-1.0.21


 peiman> Thanks
 peiman> Peiman



Send bugs reports to the Sourceforge bug trackers
csound6:
            https://sourceforge.net/p/csound/tickets/
csound5:
            https://sourceforge.net/p/csound/bugs/
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"