|
From: | Christian Robert |
Subject: | Re: [Bug-apl] Parsing error? |
Date: | Tue, 10 May 2016 19:05:59 -0400 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 |
______ _ __ __ __ ___ ____ __ / ____// | / // / / / / | / __ \ / / / / __ / |/ // / / / / /| | / /_/ // / / /_/ // /| // /_/ / / ___ | / ____// /___ \____//_/ |_/ \____/ /_/ |_|/_/ /_____/ Welcome to GNU APL version 1.5 / 724 Copyright (C) 2008-2015 Dr. Jürgen Sauermann Banner by FIGlet: www.figlet.org This program comes with ABSOLUTELY NO WARRANTY; for details run: apl --gpl. This program is free software, and you are welcome to redistribute it according to the GNU Public License (GPL) version 3 or later. SAVED 2016-04-25 18:17:07 (GMT-4) v ← (1 2 3) (4 5 6) f ← {1+⍵} f (⊂ 1 0 1)/¨v 2 4 5 7 It work fine with latest GNU APL 1.5 / 724 Xtian. On 2016-05-10 17:47, David Tran wrote:
Hi, I am newbie on APL, so I am not sure below is a bug or not :-) v ← (1 2 3) (4 5 6) f ← {1+⍵} f (⊂ 1 0 1)/¨v SYNTAX ERROR f(⊂1 0 1)/¨v ^ ^ However, adding parentheses works: f((⊂1 0 1)/¨v) 2 4 5 7 But f is function, with APL's right-associative rule, it should no need parentheses for f. ( Tested with TryAPL.org without parentheses and work without error ) BTW. here is my version info: ~ $ apl -v BUILDTAG: --------- Project: GNU APL Version / SVN: 1.4 / 7887 Build Date: 2014-08-07 15:46:58 UTC Build OS: Linux 3.11.0-12-generic x86_64 config.status: Readline: 0x0603 Thanks, David
[Prev in Thread] | Current Thread | [Next in Thread] |