TSE: Language: Computer: APL

1 view
Skip to first unread message

knud van eeden

unread,
Jan 28, 2023, 10:06:29 AM1/28/23
to SemWare TSE Pro Text Editor
Hello,

FYI

How to compile APL programs from within TSE?

1. Information about APL


2. To learn APL


3. To install Apl

ChatGPT: "how to install GNU APL on Microsoft Windows?"
To install GNU APL on Microsoft Windows, you can follow these steps:
Download the latest version of GNU APL from the official website (https://www.gnu.org/software/apl/)
Extract the downloaded file to a directory on your computer.
Open the extracted directory and double-click on the "apl.exe" file to
launch the GNU APL interpreter.
Alternatively, you can also use the GNU APL for Windows installer
package, which can be downloaded from the official website. This
package will install GNU APL and add it to the Windows PATH, allowing
you to run APL from the command prompt.
You can also use GNU APL from Windows Subsystem for Linux (WSL) in Windows 10.


4. Create a .bat file COMAPL.BAT (e.g. save it in your TSE path)

g:\cygwin32\bin\apl.exe --noSV -f %3
@ECHO.
@PAUSE
g:\cygwin32\bin\apl.exe --noSV -f %3 > %6

5. Add these TSE compiler options (e.g. run my chanblab.s and merge (or add it manually))

Extension=.apl
Description=APL: GNU: Knud
Command=COMAPL.bat &name& &ext& &fn& &drive& &path& &output&
Output=Clear Screen but Dont't Prompt After Shell
 -Error={{SYNTAX ERROR}|{Bad number}|{VALUE}}
  Error: Options=
  Error: Extra line (default empty line)=
 -FileName="MS-DOS style path detected:"{.*}$
  FileName: Options=
  FileName: Tag=1
 -Line=^{.*}$
  Line: Options=
  Line: Tag=2
 -Column=
  Column: Options=
  Column: Tag=3
 -Message=
  Message: Options=
  Message: Tag=1
User Macro=
------------------------------------------------------------------------------

6. For Apl syntax highlight:

-Computer: Editor: Text: TSE: Syntax: Highlight: Language: Computer: Apl: File: Source: apl.txt

7. Create a file helloworld.apl (case insensitive) in TSE and compile it from TSE (e.g. <CTRL><F9>)

'Hello world'
)OFF

8. That will show

Hello World

9. Tested successfully in
   Microsoft Windows Professional 10
   TSE version 4.42

See also:

Contents of TSE's compile.hlp file


Reply all
Reply to author
Forward
0 new messages