mirror of
https://github.com/PDP-10/its.git
synced 2026-02-15 12:26:27 +00:00
LLOGO - Logo written in Lisp.
By Ira Goldstein, Henry Lieberman, et al. The added IOC LSP file is for emulating older Maclisp forms no longer supported in the latest version.
This commit is contained in:
17
src/llogo/ioc.lsp
Normal file
17
src/llogo/ioc.lsp
Normal file
@@ -0,0 +1,17 @@
|
||||
;;; -*- lisp -*-
|
||||
;;; Emulate old Maclisp special forms IOC and IOG.
|
||||
|
||||
(defmacro ioc (sym)
|
||||
(cond
|
||||
((eq sym 'G) `(^G))
|
||||
((eq sym 'R) `(setq ^R t))
|
||||
((eq sym 'T) `(setq ^R nil))
|
||||
((eq sym 'V) `(setq ^W nil))
|
||||
((eq sym 'W) `(setq ^W t))
|
||||
((eq sym 'RW) `(progn (ioc R) (ioc W)))
|
||||
(t (error "Unknown IOC character"))))
|
||||
|
||||
(defmacro iog (sym &rest forms)
|
||||
`(let ((^Q nil) (^R nil) (^W nil))
|
||||
,@(if sym `((ioc ,sym)))
|
||||
,@forms))
|
||||
@@ -11,6 +11,8 @@
|
||||
|
||||
(DECLARE (COUTPUT (READ)))
|
||||
|
||||
(LOAD '((DSK LLOGO) IOC LSP))
|
||||
|
||||
(DEFUN HOW-BIG NIL
|
||||
(REMPROP 'HOW-BIG 'EXPR)
|
||||
((LAMBDA (FREE)
|
||||
|
||||
Reference in New Issue
Block a user