This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tutorials:interlisp [2024/10/06 11:23] papa |
tutorials:interlisp [2024/10/09 01:58] (current) papa |
||
---|---|---|---|
Line 9: | Line 9: | ||
At the time of its creation, what distinguished Interlisp from most other programming languages and systems was that it attempted to provide the user with a complete set of tools for making it possible for him or her to accomplish the desired task as easily as possible. Listed below are a brief summary of some of the more interesting features, and complete details are found in the __Interlisp Reference Manual__((Warren Teitelman. Interlisp Reference Manual. (1978). Accessed: October 6, 2024. [Online]. Available: https:// | At the time of its creation, what distinguished Interlisp from most other programming languages and systems was that it attempted to provide the user with a complete set of tools for making it possible for him or her to accomplish the desired task as easily as possible. Listed below are a brief summary of some of the more interesting features, and complete details are found in the __Interlisp Reference Manual__((Warren Teitelman. Interlisp Reference Manual. (1978). Accessed: October 6, 2024. [Online]. Available: https:// | ||
- | * **Editor** -- Interlisp has a list structure oriented editor for easy modification of functions, property lists and variable values without having to leave Interlisp to use a text editor. See [[#Editor Basics]]. | + | * **Editor** -- Interlisp has a list structure oriented editor for easy modification of functions, property lists and variable values without having to leave Interlisp to use a text editor. |
* **Break package** -- A package for giving control to he user when an error occurs so variable values can be examined and other tests preformed. It also includes the ability to set breakpoints and trace functions. | * **Break package** -- A package for giving control to he user when an error occurs so variable values can be examined and other tests preformed. It also includes the ability to set breakpoints and trace functions. | ||
* **File package** -- A set of functions which are fully integrated into the system to keep track of what files source and compiled versions of functions reside, and automatically maintaining updated versions of these files when changes are made. | * **File package** -- A set of functions which are fully integrated into the system to keep track of what files source and compiled versions of functions reside, and automatically maintaining updated versions of these files when changes are made. | ||
* **Record package** -- A package for creating record structures which allow one's code to be written independent of the data structures acutally chosen for the implementation. | * **Record package** -- A package for creating record structures which allow one's code to be written independent of the data structures acutally chosen for the implementation. | ||
* **DWIM** -- "Do What I Mean" -- a spelling corrector which attempts to fix spelling errors and other obvious mistakes. | * **DWIM** -- "Do What I Mean" -- a spelling corrector which attempts to fix spelling errors and other obvious mistakes. | ||
- | * **CLISP** -- " | + | * **CLISP** -- " |
* **Helpsys** -- An on-line help and documentation facility. //(Not available on TWENEX.)// | * **Helpsys** -- An on-line help and documentation facility. //(Not available on TWENEX.)// | ||
* **Masterscope** -- A program for analyzing the structure of large programs and answering questions like "What functions call FOO" or "EDIT functions which reference MUMBLE freely" | * **Masterscope** -- A program for analyzing the structure of large programs and answering questions like "What functions call FOO" or "EDIT functions which reference MUMBLE freely" | ||
Line 21: | Line 21: | ||
Start Interlisp with the EXEC command '' | Start Interlisp with the EXEC command '' | ||
- | |||
- | ===== Example Session ===== | ||
- | |||
- | For an example of basic Interlisp usage (defining a function, debugging, and saving it to a file), see [[https:// | ||
===== Interlisp Tips ===== | ===== Interlisp Tips ===== | ||
Line 30: | Line 26: | ||
* Although the Interlisp programming language is not identical to Lisp 1.5, Clark Weissman' | * Although the Interlisp programming language is not identical to Lisp 1.5, Clark Weissman' | ||
* The Interlisp top-level prompt character is a " | * The Interlisp top-level prompt character is a " | ||
- | * Interlisp | + | * The Interlisp |
* The Interlisp top-level accepts commands in either of two formats: | * The Interlisp top-level accepts commands in either of two formats: | ||
- EVAL format: '' | - EVAL format: '' | ||
- EVALQUOTE format: ''// | - EVALQUOTE format: ''// | ||
+ | * Interlisp supports both upper- and lower-case characters, and names are case-sensitive. Names of core functions are defined in uppercase, but the DWIM facility can automatically correct incorrect capitalization. | ||
* The Interlisp read program treats square brackets (" | * The Interlisp read program treats square brackets (" | ||
* You can insert comments in your Interlisp code with '' | * You can insert comments in your Interlisp code with '' | ||
Line 51: | Line 48: | ||
|Backspace|Erase the last character typed in, echoing a " | |Backspace|Erase the last character typed in, echoing a " | ||
- | ===== Editor | + | ===== Example Session ===== |
+ | |||
+ | For an example of basic Interlisp usage (defining a function, debugging, and saving it to a file), see [[https:// | ||
+ | |||
+ | ===== Interlisp | ||
+ | |||
+ | For an introduction to Interlisp' | ||
+ | |||
+ | ===== Hello, World! ===== | ||
+ | |||
+ | The example session referenced above defines a recursive factorial function. Below is one way to define a Hello, World! function in Interlisp. After typing the definition, run the function by typing '' | ||
- | To edit function FOO, type '' | + | |
+ | (HELLO | ||
+ | [LAMBDA NIL (* edited: | ||
+ | " 6-Oct-2024 23:") | ||
+ | (PRIN1 "Hello, World!") (* Print string without | ||
+ | quotation marks, then | ||
+ | CR-LF on standard | ||
+ | output) | ||
+ | (TERPRI]) | ||
+ | ) | ||
+ | | ||
- | ===== CLISP Syntax ===== | ||