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:29] smj |
its_lisp [2022/05/23 03:10] (current) ldbeth |
||
---|---|---|---|
Line 2: | Line 2: | ||
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]]. | ||
+ | |||
+ | The biggest difference between Multics Maclisp is PDP-10 version does not have " | ||
**A sample MACLISP session on ITS using LEDIT MODE in EMACS** | **A sample MACLISP session on ITS using LEDIT MODE in EMACS** | ||
- | //LEDIT will work on both [[its_topics|ITS}} and [[TOPS-20]] ;tnx1.0e6 to GLS// | + | //LEDIT will work on both [[its_topics|ITS]] and [[TOPS-20]] ;tnx1.0e6 to GLS// |
- | + | ||
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 |