This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
apl [2021/11/04 11:14] papa |
apl [2021/12/04 07:35] (current) papa [APL Character Set] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | You can enter the APL interpreter on twenex by typing APLSF. | + | **APL-20 PANDAMONIUM REIGNS!** |
| - | Then enter tty to use a non-APL keyboard. | + | |
| - | You can find the keyboard mapping for APLSF on bitsavers here: [[http:// | + | |
| - | ====== APL Character Set With ASCII and Escape Mode Equivalents | + | **APLSF** (System Function) is an implementation of the APL programming language for TOPS-20 that is available on TWENEX. |
| + | |||
| + | ===== In and Out ===== | ||
| + | |||
| + | To start the APL interpreter, | ||
| + | |||
| + | @APLSF | ||
| + | |||
| + | At the '' | ||
| + | |||
| + | Leave APLSF by entering one of the following commands (APLSF converts all alphabetic input to upper-case): | ||
| + | |||
| + | |'' | ||
| + | |'' | ||
| + | |'' | ||
| + | |||
| + | To interrupt APLSF during execution, press '' | ||
| + | |||
| + | Press '' | ||
| + | |||
| + | |||
| + | ===== APL Character Set ===== | ||
| + | |||
| + | Although APL characters cannot be displayed or input when the terminal is in TTY mode, APLSF provides ASCII character string equivalents for all the APL characters as well as " | ||
| ^ APL \\ Character ^ Name ^ ASCII ^ Escape \\ Mode ^ ^ APL \\ Character ^ Name ^ ASCII ^ | ^ APL \\ Character ^ Name ^ ASCII ^ Escape \\ Mode ^ ^ APL \\ Character ^ Name ^ ASCII ^ | ||
| Line 26: | Line 47: | ||
| | ⊤ | ENcode | .EN | @N | | ⍎ | eXecute | .XQ | | | ⊤ | ENcode | .EN | @N | | ⍎ | eXecute | .XQ | | ||
| | ∈ | EPsilon | .EP | @E | | ⍕ | ForMat | .FM | | | ∈ | EPsilon | .EP | @E | | ⍕ | ForMat | .FM | | ||
| - | | ≥ | Greater then or Equal to | .GE | | | ⍝ | Comment (lamp) | " | | + | | ⌊ | FLoor | .FL | @D | | ⍝ | Comment (lamp) | " | |
| - | | -> | GO to (branch) | + | | ≥ | Greater then or Equal to | .GE | | | __A__-__Z__ | underscored alphabetics | .ZA-.ZZ | |
| - | | ⍳ | IOta | .IO | @I | | ⍙ | underscored lower del | .Z@ | | + | | -> | GO to (branch) |
| + | | ⍳ | IOta | .IO | @I | | ||
| | { | Left curly Brace | .LB | | | | { | Left curly Brace | .LB | | | ||
| | ∆ | delta (Lower Del) | .LD | @H | | | ∆ | delta (Lower Del) | .LD | @H | | ||
| Line 47: | Line 69: | ||
| | _ | UnderScore | .US | @F | | | _ | UnderScore | .US | @F | | ||
| | ∪ | Up Union | .UU | @V | | | ∪ | Up Union | .UU | @V | | ||
| + | |||
| + | ===== Workspace Commands ===== | ||
| + | |||
| + | |'' | ||
| + | |'' | ||
| + | |'' | ||
| + | |'' | ||
| + | |'' | ||
| + | |'' | ||
| + | |'' | ||
| + | |||
| + | ===== Function Editor ===== | ||
| + | |||
| + | To define a new function and invoke the editor, enter one of the following commands: | ||
| + | |||
| + | |'' | ||
| + | |'' | ||
| + | |'' | ||
| + | |||
| + | Where: | ||
| + | |// | ||
| + | |//a1, a2//|Dummy arguments| | ||
| + | |// | ||
| + | |// | ||
| + | |||
| + | To edit an existing function, enter the command '' | ||
| + | |||
| + | The editor will start and prompt with the current line number, for example '' | ||
| + | |||
| + | ==== Editor commands ==== | ||
| + | |||
| + | |''// | ||
| + | |'' | ||
| + | |'' | ||
| + | |'' | ||
| + | |'' | ||
| + | |'' | ||
| + | |'' | ||
| + | |'' | ||
| + | |||
| + | Multiple commands can be entered on a single line. For an example, you can open the editor on existing function '' | ||
| + | |||
| + | | ||
| + | |||
| + | ===== References ===== | ||
| + | |||
| + | * [[http:// | ||
| + | * [[http:// | ||