1
0
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:
Lars Brinkhoff
2018-05-12 19:07:33 +02:00
parent 433dc9bc3e
commit e1753de866
7 changed files with 58 additions and 2 deletions

17
src/llogo/ioc.lsp Normal file
View 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))

View File

@@ -11,6 +11,8 @@
(DECLARE (COUTPUT (READ)))
(LOAD '((DSK LLOGO) IOC LSP))
(DEFUN HOW-BIG NIL
(REMPROP 'HOW-BIG 'EXPR)
((LAMBDA (FREE)