|
From: | Juergen Sauermann |
Subject: | Re: [Bug-apl] Conversion from APL2000 to Gnu APL |
Date: | Thu, 22 Oct 2015 16:52:32 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 |
Hi Michael, yes. GNU APL supports scripts, which are basically (UTF-8 encoded) text files containing executable APL code. If you are lucky then your interpreter supports 2 ⎕TF xxx (which converts an APL function or variable xxx into executable APL code) and you can loop over all functions and variables of a workspace in order to produce executable APL code for it and write it into a script. That script can be )LOAD-ed in GNU APL. If you are less lucky, then you have to write an equivalent of 2 ⎕TF yourself as a user-defined APL function. Since the format of 2 ⎕TF is not uniquely defined (in particular for APL values) it would be wise to test, if the receiving interpreter (say, GNU APL) understand your format. For example (in GNU APL): VAR←1 (2 3 ' abc') 4 2 ⎕TF 'VAR' VAR←1 (2 3 ' abc') 4 /// Jürgen On 10/22/2015 03:29 PM, Michael Potter
wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |