| Absolutely right!
But shouldn't the report mention the previous line, as the error is
the newline character, which technically is in the previous line?
Also, it makes it harder for front ends to provide quick information
about the error, as the front end would mark the next line rather than
the line where the error happens...
Cheers,
Andrés
On 8/12/12, jpff@cs.bath.ac.uk wrote:
> dit is line 7 when it realises the error!
>
>> Hi,
>>
>> The new parser (git master) is reporting the error line one greater
>> than it actually is:
>>
>>
>>
>>
>>
>>
>> wrong
>>
>>
>>
>>
>>
>>
>>
>> Produces:
>>
>> error: syntax error, unexpected NEWLINE, expecting T_OPCODE or ','
>> (token "") line 7:
>>>>>wrong <<<
>> Stopping on parser failure
>>
>> When line should be 6.
>>
>> Cheers,
>> Andrés
>>
>> --
>>
>>
>> Andrés
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
--
Andrés
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lis |