-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathscript.sps
52 lines (45 loc) · 1.8 KB
/
script.sps
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
; This file is part of SINK, a Scheme-based Interpreter for Not-quite Kernel
; Copyright (c) 2009 John N. Shutt
;;;;;;;;;;;;;;;;
; batch script ;
;;;;;;;;;;;;;;;;
;
; This file is a script that constructs SINK, runs it, and displays a sign-off
; message. It is meant to be used by a batch file, such as the MS-DOS batch
; file "sink.bat". If system environment variable SINKDIR is defined, it
; should be the path of the SINK home directory; this file saves the current
; directory, moves to the SINK home directory to load the SINK system, then
; moves back to the saved directory. If system environment variable SINKDIR
; is undefined, this file assumes that the SINK home directory is the current
; directory.
;
; The language facilities used to access the system environment and current
; directory path are peculiar to MzScheme. On sensitivity of SINK proper
; (distinct from this batch script) to choice of Scheme implementation, see
; file "subfiles/operative.scm" procedure naive->action.
;
(import (rnrs)
(subfiles interpreter)
(subfiles revision))
(newline)
(display " SINK: Scheme-based Interpreter for Not-quite Kernel.") (newline)
(display " (An interpreter for an approximate subset of Kernel.)") (newline)
(newline)
(display " Version ") (display (get-version)) (newline)
(display " ") (display (get-revision-date)) (display ".") (newline)
(display " Based on the R-1RK.") (newline)
(newline)
(display " Use %ignore and %inert for Kernel #ignore and #inert.") (newline)
(display " Major omissions: ")
(display " complex numbers; bounds on inexact reals.") (newline)
(display " Various standard combiners haven't been defined.")
(newline)
(newline)
(display "Entering SINK.")
(newline)
(newline)
(newline)
(interpreter)
(newline)
(display "SINK terminated.")
(newline)