bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] bad character in execute+


From: Kacper Gutowski
Subject: Re: [Bug-apl] bad character in execute+
Date: Mon, 1 Oct 2018 01:11:19 +0200
User-agent: Mutt/1.10.1 (2018-07-13)

On Sun, Sep 30, 2018 at 03:42:53PM -0600, Nathan Rogers wrote:
> When using the diamond operator, the repl returns "bad character in
> execute+"
> 
> simple example: \
> {1:2◊3}
>  Bad char in execute+

Lambda syntax in GNU APL isn't compatible with Dyalog's, and you can't
use diamond within it.  But the diamond here is a red herring.
It's the colon that causes the error before getting to the diamond:

      :
Bad char in execute+
      {1⋄2}
Unbalanced curly bracket+

It more-or-less works as expected.  The former is because : is not a
valid token outside of defined functions where it is used for labels.
The later is because it's interpreted as two separate statements split
by diamond.

I think the )MORE messages for parse errors could be improved, though.
Now it just repeats "Bad char in execute".  It would be more informative
to say which character is the offending one.

-k



reply via email to

[Prev in Thread] Current Thread [Next in Thread]