This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
its_lisp [2020/04/15 20:25] smj |
its_lisp [2022/05/23 03:10] (current) ldbeth |
||
---|---|---|---|
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** | + | The biggest difference between Multics Maclisp is PDP-10 version does not have " |
- | //;tnx1.0e6 to GLS// | + | |
- | + | **A sample MACLISP session | |
+ | //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 53: | ||
//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 |