home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
o
/
ops5.zip
/
OPS.LIS
< prev
next >
Wrap
Lisp/Scheme
|
1992-05-31
|
1KB
|
43 lines
;
;************************************************************************
;
; VPS2 -- Interpreter for OPS5
;
;
;
; This Common Lisp version of OPS5 is in the public domain. It is based
; in part on based on a Franz Lisp implementation done by Charles L. Forgy
; at Carnegie-Mellon University, which was placed in the public domain by
; the author in accordance with CMU policies. This version has been
; modified by George Wood, Dario Giuse, Skef Wholey, Michael Parzen,
; and Dan Kuokka.
;
; This code is made available is, and without warranty of any kind by the
; authors or by Carnegie-Mellon University.
;
;;;; This file performs the necessary initialization of the OPS interpreter.
(in-package "OPS")
(defun ops-init ()
; Allows ^ , { , and } operators to be right next to another symbol.
(set-macro-character #\{ #'(lambda (s c)
(declare (ignore s c))
'\{))
(set-macro-character #\} #'(lambda (s c)
(declare (ignore s c))
'\}))
(set-macro-character #\^ #'(lambda (s c)
(declare (ignore s c))
'\^))
(backup-init)
(compile-init)
(main-init)
(match-init)
(io-init)
(rhs-init))
(ops-init)