forked from g000001/Starlisp-simulator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dummy-functions.lisp
99 lines (77 loc) · 2.72 KB
/
dummy-functions.lisp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
;;; -*- SYNTAX: COMMON-LISP; MODE: LISP; BASE: 10; PACKAGE: *SIM-I; MUSER: YES -*-
(in-package :*sim-i)
;;;> *+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+
;;;>
;;;> The Thinking Machines *Lisp Simulator is in the public domain.
;;;> You are free to do whatever you like with it, including but
;;;> not limited to distributing, modifying, and copying.
;;;>
;;;> *+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+
;;; Author: JP Massar.
(defun list-of-slc-function-types () nil)
(defun get-function-type (function-symbol) (get function-symbol 'slc::function-type))
(defun set-function-type (function-symbol type)
(setf (get function-symbol 'slc::function-type) type)
)
(defun remove-function-type (function-symbol)
(setf (get function-symbol 'slc::function-type) nil)
)
(defun get-variable-descriptor (variable) (get variable 'slc::descriptor))
(defun set-variable-descriptor (variable value)
(setf (get variable 'slc::descriptor) value)
)
(defun remove-variable-descriptor (variable)
(setf (get variable 'slc::descriptor) nil)
)
(defun make-pvar-for-compiler (&rest args &key type reference read-only)
(declare (ignore args type reference read-only))
nil
)
(defun make-descriptor-for-compiler (&rest args)
(declare (ignore args))
nil
)
(defun find-compiler-keyword (keyword)
(declare (ignore keyword))
(error "I need a function which tells me if keyword is a legal compiler option.")
)
(defun deal-with-compiler-option-value (option value keyword)
(declare (ignore option value keyword))
nil
)
(defun compiler-warn (&rest args)
(declare (ignore args))
(error "Internal error. This should never be called inside the simulator.")
)
(defun expt2 (x) (expt 2 x))
(defun expt2-1- (x) (expt 2 (1- x)))
(defun expt2-symbol () 'expt2)
(defun expt2-1-symbol () 'expt2-1-)
(defun simplify-expression (&rest args)
(copy-list args)
)
(defvar *pvar-length-error-message*
"The ~S of a pvar has no meaning with respect to the *Lisp language itself. ~@
It only has meaning with respect to Paris, the CM Assembly language, and the ~@
*Lisp Simulator knows nothing about Paris. Pure *Lisp code cannot use ~S."
)
(defun pvar-length (pvar)
pvar
(error *pvar-length-error-message* 'length 'pvar-length)
)
(defun pvar-mantissa-length (pvar)
pvar
(error *pvar-length-error-message* 'mantissa-length 'pvar-mantissa-length)
)
(defun pvar-exponent-length (pvar)
pvar
(error *pvar-length-error-message* 'exponent-length 'pvar-exponent-length)
)
(defun starlisp-form-not-to-macroexpand (form)
(declare (ignore form))
nil
)
(defun call-starlisp-compiler (form environment)
(declare (ignore environment))
form
)