This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
its_lisp [2020/04/15 20:25] smj |
its_lisp [2020/04/16 05:30] lars Fix markup. |
||
---|---|---|---|
Line 3: | Line 3: | ||
The ITS Lisp is called Maclisp, or PDP-10 Maclisp if necessary to disambiguate it against [[Multics Maclisp]]. | The ITS Lisp is called Maclisp, or PDP-10 Maclisp if necessary to disambiguate it against [[Multics Maclisp]]. | ||
- | **A sample MACLISP session using LEDIT MODE in EMACS** | + | **A sample MACLISP session |
- | //;tnx1.0e6 to GLS// | + | //LEDIT will work on both [[its_topics|ITS]] and [[TOPS-20]] |
- | + | ||
KA ITS 1648 DDT 1547 TTY 52 ; | KA ITS 1648 DDT 1547 TTY 52 ; | ||
| | ||
Line 51: | Line 51: | ||
//The LISP ... Editor ... LISP ... loop will no doubt be repeated many times.// | //The LISP ... Editor ... LISP ... loop will no doubt be repeated many times.// | ||
+ | |||
+ | **HELLO WORLD and LOOP examples** | ||
+ | |||
+ | | ||
+ | |||
+ | LISP 2122 ; MACLISP Version 2122 | ||
+ | | ||
+ | |||
+ | |||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | LISP 2122 | ||
+ | | ||
+ | |||
+ | |||
+ | * | ||
+ | (loop for x in '(a b c d e) ; Call the macro " | ||
+ | do (print x)) ; DO a PRINT of the value of " | ||
+ | ; | ||
+ | ; | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | ; left to PRINT in the list of "a b c d e" | ||
+ | |||
+ | **MATH examples** | ||
+ | |||
+ | | ||
+ | |||
+ | LISP 2122 | ||
+ | | ||
+ | |||
+ | |||
+ | | ||
+ | (+ 2 2) | ||
+ | 4 | ||
+ | (- 2 2) | ||
+ | 0 | ||
+ | (* 2 2) | ||
+ | 4 |