User Tools

Site Tools


apl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
apl [2021/12/03 04:42]
papa
apl [2021/12/04 07:35] (current)
papa [APL Character Set]
Line 21: Line 21:
 Press ''Ctrl-C'' five (5) times to suspend APLSF and return to EXEC. Resume APLSF with command ''@REENTER'' or ''@CONTINUE''. Press ''Ctrl-C'' five (5) times to suspend APLSF and return to EXEC. Resume APLSF with command ''@REENTER'' or ''@CONTINUE''.
  
-   
  
-You can enter the APL interpreter on twenex by typing APLSF. +===== APL Character Set =====
-Then enter tty to use a non-APL keyboard. +
-You can find the keyboard mapping for APLSF on bitsavers here: [[http://bitsavers.trailing-edge.com/pdf/dec/pdp10/TOPS10_softwareNotebooks/vol06/AA-H200A-TK_APLSF_Language_Manual_Aug79.pdf|APLSF_Language_Manual_Aug79.pdf]]+
  
-===== APL Character Set With ASCII and Escape Mode Equivalents ===== +Although APL characters cannot be displayed or input when the terminal is in TTY modeAPLSF provides ASCII character string equivalents for all the APL characters as well as "escape mode" (single character preceded by "@") keys that correspond to standard APL keyboard mappings. ASCII and escape mode sequences can be intermixed.
- +
-//[For conveniencepart of the keyboard mapping table from **APLSF Language Manual** is duplicated below.]//+
  
 ^ APL \\ Character ^ Name ^ ASCII ^ Escape \\ Mode ^ ^ APL \\ Character ^ Name ^ ASCII ^ ^ APL \\ Character ^ Name ^ ASCII ^ Escape \\ Mode ^ ^ APL \\ Character ^ Name ^ ASCII ^
Line 74: Line 69:
 | _ | UnderScore | .US | @F | | _ | UnderScore | .US | @F |
 | ∪ | Up Union | .UU | @V | | ∪ | Up Union | .UU | @V |
 +
 +===== Workspace Commands =====
 +
 +|'')SAVE [//wsname//]''|Save workspace in file ''DSK://wsname//.APL''.|
 +|'')LOAD //wsname//''|Load saved workspace from file ''DSK://wsname//.APL''.|
 +|'')DROP //wsname//''|Delete saved workspace file ''DSK://wsname//.APL''.|
 +|'')CLEAR''|Clear active workspace.|
 +|'')FNS [//letter//]''|List functions in workspace (starting alphabetic list from //letter//).|
 +|'')VARS [//letter//]''|List global variables in workspace (starting alphabetic list from //letter//).|
 +|'')ERASE //name// ...''|Erase global variable or function //name// from workspace.|
 +
 +===== Function Editor =====
 +
 +To define a new function and invoke the editor, enter one of the following commands:
 +
 +|''.DL[//r//_]//a1 f a2//[;//v//]...''|Define a dyadic (two-argument infix) function|
 +|''.DL[//r//_]//f a1//[;//v//]...''|Define a monadic (one-argument prefix) function|
 +|''.DL[//r//_]//f//[;//v//]...''|Define a niladic (no-argument) function|
 +
 +Where:
 +|//f//|Function name|
 +|//a1, a2//|Dummy arguments|
 +|//r//|Dummy variable for return value|
 +|//v//|Local variable|
 +
 +To edit an existing function, enter the command ''.DL//f//''.
 +
 +The editor will start and prompt with the current line number, for example ''[1]''.
 +
 +==== Editor commands ====
 +
 +|''//text//''|Add //text// at current line.|
 +|''[//n//]//text//''|Replace line //n// with //text//. Edit the function header as line 0.|
 +|''[//n.m//]//text//''|Insert //text// as new line after line //n//. (Lines are automatically renumbered after each editing session.)|
 +|''[.LD//n//]''|Delete line //n//.|
 +|''[.BX]''|List function source.|
 +|''[//n//.BX]''|List line //n//.|
 +|''[.BX//n//]''|List from line //n// to the end of the function.|
 +|''.DL''|Save function and return from editor.|
 +
 +Multiple commands can be entered on a single line. For an example, you can open the editor on existing function ''FUN1'', list its source, and immediately exit the editor by entering the following command in the APL interpreter:
 +
 +     .DLFUN1[.BX].DL
  
 ===== References ===== ===== References =====
  
   * [[http://bitsavers.trailing-edge.com/pdf/dec/pdp10/TOPS10_softwareNotebooks/vol06/AA-H200A-TK_APLSF_Language_Manual_Aug79.pdf|APLSF Language Manual]]. Digital Equipment Corporation, 1979.    * [[http://bitsavers.trailing-edge.com/pdf/dec/pdp10/TOPS10_softwareNotebooks/vol06/AA-H200A-TK_APLSF_Language_Manual_Aug79.pdf|APLSF Language Manual]]. Digital Equipment Corporation, 1979. 
 +  * [[http://www.softwarepreservation.org/projects/apl/Manuals/APL1130Primer|APL\1130 Primer]]. International Business Machines Corporation, 1968.
  
apl.1638506561.txt.gz · Last modified: 2021/12/03 04:42 by papa