|
From: | Juergen Sauermann |
Subject: | Re: [Bug-apl] No errro message when defining functions using |
Date: | Sat, 15 Feb 2014 17:22:38 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5 |
Hi,
I am afraid that the failed line number is about the granularity of error information available. For finer location info (column number) the parser would need to track the column; currently it doesn't. Since ⎕FX is a system functions (which can be called many times) there is no interface to provide the error cause. I could create a static member of class Parse that stores the last parse error and/or its source location. Note that the majority of parse errors in ∇ and ⎕FX are bad function headers. There are only a few errors detected on the function body - they typically occur when a function is executed and not when it is defined. /// Jürgen On 02/14/2014 07:05 AM, Elias Mårtenson wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |