| 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 |