-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathEXTENSIONS
More file actions
39 lines (24 loc) · 1010 Bytes
/
EXTENSIONS
File metadata and controls
39 lines (24 loc) · 1010 Bytes
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
The following extensions are provided by libscheme.
(defmacro NAME (ARG1 ARG2 ...) BODY) ; syntax
Add additional syntax.
(define-struct NAME (FIELD1 FIELD2 ...)) ; syntax
Defines a structure type and the following functions:
(make-NAME INIT1 INIT2 ...) ; constructor
(NAME? obj) ; predicate
(NAME-FIELD1 INSTANCE) ; getter
(NAME-FIELD2 INSTANCE) ; getter
(set-NAME-FIELD1! INSTANCE VAL) ; setter
(set-NAME-FIELD2! INSTANCE VAL) ; setter
(exit [INTEGER]) ; function
Call exit() with optional exit status (0 by default).
(open-input-string STRING)
Open STRING as an input port and return the port.
(with-input-from-string STRING THUNK) ; function
Opens the STRING as the current-input-port and evaluates
THUNK.
(write-to-string OBJECT)
Returns a machine-readable representation of the object as a
string.
(display-to-string OBJECT)
Returns a human-readable representation of the object as a
string.