Csound Csound-dev Csound-tekno Search About

[Cs-dev] new parser bugs

Date2011-05-01 12:01
Frommenno
Subject[Cs-dev] new parser bugs
And another one:
********************
* USING NEW PARSER *
********************
csound_orcerror on line 11: syntax error, unexpected T_FUNCTION
Parsing failed due to invalid input!
Null type in tree -- aborting

works with the old parser.
Used csd:



; Select audio/midi flags here according to platform
-odac --old-parser  ;;;realtime audio out
;-iadc    ;;;uncomment -iadc if realtime audio input is needed too
; For Non-realtime ouput leave only the line below:
; -o int.wav -W ;;; for file output any platform



sr = 44100
ksmps = 32
nchnls = 2
0dbfs  = 1

instr 1

icount init 0
loop:
  inum = icount / 3
  int = int(inum)
  prints "integer (%f/3) = %f\\n", icount, int
loop_lt icount, 1, 10, loop

endin



i 1 0 0
e



greetings
menno--
View this message in context: http://csound.1045644.n5.nabble.com/new-parser-bugs-tp4362606p4362606.html
Sent from the Csound - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2011-05-03 10:10
Fromjohn ffitch
SubjectRe: [Cs-dev] new parser bugs
The line 
int = int(inum)
causes problems as variables and opcodes/functions cannot share a
name.
I view this as an error message problem not a parser error
==John ffitch

>>>>> "menno" == menno   writes:

 menno> And another one:
 menno> ********************
 menno> * USING NEW PARSER *
 menno> ********************
 menno> csound_orcerror on line 11: syntax error, unexpected T_FUNCTION
 menno> Parsing failed due to invalid input!
 menno> Null type in tree -- aborting

 menno> works with the old parser.
 menno> Used csd:

 menno> 
 menno> 
 menno> ; Select audio/midi flags here according to platform
 menno> -odac --old-parser  ;;;realtime audio out
 menno> ;-iadc    ;;;uncomment -iadc if realtime audio input is needed too
 menno> ; For Non-realtime ouput leave only the line below:
 menno> ; -o int.wav -W ;;; for file output any platform
 menno> 
 menno> 

 menno> sr = 44100
 menno> ksmps = 32
 menno> nchnls = 2
 menno> 0dbfs  = 1

 menno> instr 1

 menno> icount init 0
 menno> loop:
 menno>   inum = icount / 3
 menno>   int = int(inum)
 menno>   prints "integer (%f/3) = %f\\n", icount, int
 menno> loop_lt icount, 1, 10, loop

 menno> endin
 menno> 
 menno> 

 menno> i 1 0 0
 menno> e
 menno> 
 menno> 

 menno> greetings
 menno> menno--



------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2011-05-03 10:34
FromAndres Cabrera
SubjectRe: [Cs-dev] new parser bugs
Is there a way for the parser to produce clearer error messages? I
understand it now, but it is very cryptic.

Cheers,
Andres

On Tue, May 3, 2011 at 10:10 AM, john ffitch  wrote:
> The line
> int = int(inum)
> causes problems as variables and opcodes/functions cannot share a
> name.
> I view this as an error message problem not a parser error
> ==John ffitch
>
>>>>>> "menno" == menno   writes:
>
>  menno> And another one:
>  menno> ********************
>  menno> * USING NEW PARSER *
>  menno> ********************
>  menno> csound_orcerror on line 11: syntax error, unexpected T_FUNCTION
>  menno> Parsing failed due to invalid input!
>  menno> Null type in tree -- aborting
>
>  menno> works with the old parser.
>  menno> Used csd:
>
>  menno> 
>  menno> 
>  menno> ; Select audio/midi flags here according to platform
>  menno> -odac --old-parser  ;;;realtime audio out
>  menno> ;-iadc    ;;;uncomment -iadc if realtime audio input is needed too
>  menno> ; For Non-realtime ouput leave only the line below:
>  menno> ; -o int.wav -W ;;; for file output any platform
>  menno> 
>  menno> 
>
>  menno> sr = 44100
>  menno> ksmps = 32
>  menno> nchnls = 2
>  menno> 0dbfs  = 1
>
>  menno> instr 1
>
>  menno> icount init 0
>  menno> loop:
>  menno>   inum = icount / 3
>  menno>   int = int(inum)
>  menno>   prints "integer (%f/3) = %f\\n", icount, int
>  menno> loop_lt icount, 1, 10, loop
>
>  menno> endin
>  menno> 
>  menno> 
>
>  menno> i 1 0 0
>  menno> e
>  menno> 
>  menno> 
>
>  menno> greetings
>  menno> menno--
>
>
>
> ------------------------------------------------------------------------------
> WhatsUp Gold - Download Free Network Management Software
> The most intuitive, comprehensive, and cost-effective network
> management toolset available today.  Delivers lowest initial
> acquisition cost and overall TCO of any competing solution.
> http://p.sf.net/sfu/whatsupgold-sd
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo

Date2011-05-03 19:29
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] new parser bugs
yes, but I need time to read the les-than-clear documentation and then
experiment.  High on my list of tasks (aftrer marking ~70 compilers)

==John


> Is there a way for the parser to produce clearer error messages? I
> understand it now, but it is very cryptic.
>
> Cheers,
> Andres
>
> On Tue, May 3, 2011 at 10:10 AM, john ffitch  wrote:
>> The line
>> int = int(inum)
>> causes problems as variables and opcodes/functions cannot share a
>> name.
>> I view this as an error message problem not a parser error
>> ==John ffitch
>>
>>>>>>> "menno" == menno   writes:
>>
>>  menno> And another one:
>>  menno> ********************
>>  menno> * USING NEW PARSER *
>>  menno> ********************
>>  menno> csound_orcerror on line 11: syntax error, unexpected T_FUNCTION
>>  menno> Parsing failed due to invalid input!
>>  menno> Null type in tree -- aborting
>>
>>  menno> works with the old parser.
>>  menno> Used csd:
>>
>>  menno> 
>>  menno> 
>>  menno> ; Select audio/midi flags here according to platform
>>  menno> -odac --old-parser  ;;;realtime audio out
>>  menno> ;-iadc    ;;;uncomment -iadc if realtime audio input is
>> needed too
>>  menno> ; For Non-realtime ouput leave only the line below:
>>  menno> ; -o int.wav -W ;;; for file output any platform
>>  menno> 
>>  menno> 
>>
>>  menno> sr = 44100
>>  menno> ksmps = 32
>>  menno> nchnls = 2
>>  menno> 0dbfs  = 1
>>
>>  menno> instr 1
>>
>>  menno> icount init 0
>>  menno> loop:
>>  menno>   inum = icount / 3
>>  menno>   int = int(inum)
>>  menno>   prints "integer (%f/3) = %f\\n", icount, int
>>  menno> loop_lt icount, 1, 10, loop
>>
>>  menno> endin
>>  menno> 
>>  menno> 
>>
>>  menno> i 1 0 0
>>  menno> e
>>  menno> 
>>  menno> 
>>
>>  menno> greetings
>>  menno> menno--
>>
>>
>>
>> ------------------------------------------------------------------------------
>> WhatsUp Gold - Download Free Network Management Software
>> The most intuitive, comprehensive, and cost-effective network
>> management toolset available today.  Delivers lowest initial
>> acquisition cost and overall TCO of any competing solution.
>> http://p.sf.net/sfu/whatsupgold-sd
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
> ------------------------------------------------------------------------------
> WhatsUp Gold - Download Free Network Management Software
> The most intuitive, comprehensive, and cost-effective network
> management toolset available today.  Delivers lowest initial
> acquisition cost and overall TCO of any competing solution.
> http://p.sf.net/sfu/whatsupgold-sd
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2011-05-03 19:42
FromSteven Yi
SubjectRe: [Cs-dev] new parser bugs
I looked into it a little yesterday and found this chapter of a book
informative:

http://oreilly.com/linux/excerpts/9780596155971/error-reporting-recovery.html

I think we'd need to add keeping track of the current line so that we
can print it out when there is an error.  I looked a little into it
but needed to re-read up a little bit regarding parser-param and how
we might want to modify the function signature so that we could get
some more info, but I'm not sure that's going to be a great solution
so I stopped there.

On Tue, May 3, 2011 at 2:29 PM,   wrote:
> yes, but I need time to read the les-than-clear documentation and then
> experiment.  High on my list of tasks (aftrer marking ~70 compilers)
>
> ==John
>
>
>> Is there a way for the parser to produce clearer error messages? I
>> understand it now, but it is very cryptic.
>>
>> Cheers,
>> Andres
>>
>> On Tue, May 3, 2011 at 10:10 AM, john ffitch  wrote:
>>> The line
>>> int = int(inum)
>>> causes problems as variables and opcodes/functions cannot share a
>>> name.
>>> I view this as an error message problem not a parser error
>>> ==John ffitch
>>>
>>>>>>>> "menno" == menno   writes:
>>>
>>>  menno> And another one:
>>>  menno> ********************
>>>  menno> * USING NEW PARSER *
>>>  menno> ********************
>>>  menno> csound_orcerror on line 11: syntax error, unexpected T_FUNCTION
>>>  menno> Parsing failed due to invalid input!
>>>  menno> Null type in tree -- aborting
>>>
>>>  menno> works with the old parser.
>>>  menno> Used csd:
>>>
>>>  menno> 
>>>  menno> 
>>>  menno> ; Select audio/midi flags here according to platform
>>>  menno> -odac --old-parser  ;;;realtime audio out
>>>  menno> ;-iadc    ;;;uncomment -iadc if realtime audio input is
>>> needed too
>>>  menno> ; For Non-realtime ouput leave only the line below:
>>>  menno> ; -o int.wav -W ;;; for file output any platform
>>>  menno> 
>>>  menno> 
>>>
>>>  menno> sr = 44100
>>>  menno> ksmps = 32
>>>  menno> nchnls = 2
>>>  menno> 0dbfs  = 1
>>>
>>>  menno> instr 1
>>>
>>>  menno> icount init 0
>>>  menno> loop:
>>>  menno>   inum = icount / 3
>>>  menno>   int = int(inum)
>>>  menno>   prints "integer (%f/3) = %f\\n", icount, int
>>>  menno> loop_lt icount, 1, 10, loop
>>>
>>>  menno> endin
>>>  menno> 
>>>  menno> 
>>>
>>>  menno> i 1 0 0
>>>  menno> e
>>>  menno> 
>>>  menno> 
>>>
>>>  menno> greetings
>>>  menno> menno--
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> WhatsUp Gold - Download Free Network Management Software
>>> The most intuitive, comprehensive, and cost-effective network
>>> management toolset available today.  Delivers lowest initial
>>> acquisition cost and overall TCO of any competing solution.
>>> http://p.sf.net/sfu/whatsupgold-sd
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>> ------------------------------------------------------------------------------
>> WhatsUp Gold - Download Free Network Management Software
>> The most intuitive, comprehensive, and cost-effective network
>> management toolset available today.  Delivers lowest initial
>> acquisition cost and overall TCO of any competing solution.
>> http://p.sf.net/sfu/whatsupgold-sd
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>
>
> ------------------------------------------------------------------------------
> WhatsUp Gold - Download Free Network Management Software
> The most intuitive, comprehensive, and cost-effective network
> management toolset available today.  Delivers lowest initial
> acquisition cost and overall TCO of any competing solution.
> http://p.sf.net/sfu/whatsupgold-sd
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net