This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
tutorials:lisp [2014/01/10 10:01] papa |
tutorials:lisp [2022/03/15 05:07] (current) smj |
||
|---|---|---|---|
| Line 3: | Line 3: | ||
| **Lisp** is a programming language famous for its use in Artificial Intelligence and advanced Computer Science research. First developed in 1958, it is the second oldest (after Fortran) high-level programming language still in common use. | **Lisp** is a programming language famous for its use in Artificial Intelligence and advanced Computer Science research. First developed in 1958, it is the second oldest (after Fortran) high-level programming language still in common use. | ||
| - | Two dialects of Lisp are available at TWENEX.ORG, InterLisp-10 and Maclisp. | + | Two dialects of Lisp are available at TWENEX.ORG, |
| + | |||
| + | |||
| + | ===== Maclisp ===== | ||
| + | |||
| + | ('' | ||
| + | |||
| + | **Maclisp** was developed in the mid-1960' | ||
| + | |||
| + | Maclisp was a highly influential language | ||
| + | |||
| + | === Set-up === | ||
| + | |||
| + | Before running MACLISP, you must define the following logical name: | ||
| + | |||
| + | '' | ||
| + | |||
| + | (You can add the above line to your LOGIN.CMD file to automatically define the logical name for all of you TWENEX sessions.) | ||
| + | |||
| + | It is also recommended that you create a Maclisp init file ('' | ||
| + | |||
| + | ;;; A very typical init file / Emacs mode--> -*- Mode:LISP; -*- | ||
| + | (COMMENT) ;magic | ||
| + | (PROGN ; real init file stuff | ||
| + | (SETQ BASE 10. IBASE 10. *NOPRINT NIL) ;base-10 display | ||
| + | (SETQ NOUUO T *RSET T) ;these make debugging easier | ||
| + | (SSTATUS FEATURE NOLDMSG) ;supress module load messages | ||
| + | '*) ;return an asterisk for Maclisp to print out | ||
| + | |||
| + | === LEDIT === | ||
| + | |||
| + | '' | ||
| + | |||
| + | To use LEDIT: | ||
| + | |||
| + | - Start Maclisp and load your source file. | ||
| + | - Evaluate '' | ||
| + | - Evaluate '' | ||
| + | - Load the source file into Emacs ('' | ||
| + | - View, change, save source with Emacs commands. | ||
| + | - Flag function definitions to update in Maclisp with '' | ||
| + | - Return to Maclisp | ||
| ===== InterLisp-10 ===== | ===== InterLisp-10 ===== | ||
| Line 15: | Line 56: | ||
| The dialect was in a rivalry with Maclisp prior to the development of Common Lisp. | The dialect was in a rivalry with Maclisp prior to the development of Common Lisp. | ||
| - | ===== Maclisp | + | === Set-up |
| - | + | ||
| - | ('' | + | |
| - | + | ||
| - | **Maclisp** was developed in the mid-1960' | + | |
| - | + | ||
| - | Maclisp was a highly influential language and was the primary inspiration for Common Lisp, with contributions form other dialects like InterLisp. | + | |
| + | If you have set-up your TWENEX session for Maclisp (see above), you must undefine the logical name '' | ||
| ===== References ===== | ===== References ===== | ||
| - | |||
| - | [[http:// | ||
| [[http:// | [[http:// | ||
| + | |||
| + | [[http:// | ||
| [[http:// | [[http:// | ||
| - | ---- | ||
| - | |||
| - | EMACS LEDIT mode | ||
| - | |||
| - | //(Is LEDIT another Lisp dialect, or just a TOPS-20 Emacs (non-/ | ||