|
1 | 1 | ;;;; -*- mode: scheme; -*-
|
2 | 2 |
|
3 |
| -;;;; R7RS Standard Libraries |
4 |
| - |
5 | 3 | (define-library (scheme base)
|
| 4 | + (import (airship r7rs)) |
6 | 5 | (export * + - ... / < <= = => > >= _ abs and append apply assoc assq assv
|
7 | 6 | begin binary-port? boolean=? boolean? bytevector bytevector-append
|
8 | 7 | bytevector-copy bytevector-copy! bytevector-length bytevector-u8-ref
|
|
40 | 39 | vector->list vector->string vector-append vector-copy vector-copy!
|
41 | 40 | vector-fill! vector-for-each vector-length vector-map vector-ref
|
42 | 41 | vector-set! vector? when with-exception-handler write-bytevector
|
43 |
| - write-char write-string write-u8 zero?) |
44 |
| - (include-lisp "standard-procedures.lisp")) |
| 42 | + write-char write-string write-u8 zero?)) |
45 | 43 |
|
46 | 44 | (define-library (scheme case-lambda)
|
47 |
| - (export case-lambda) |
48 |
| - (include-lisp "standard-procedures.lisp")) |
| 45 | + (import (airship r7rs)) |
| 46 | + (export case-lambda)) |
49 | 47 |
|
50 | 48 | (define-library (scheme char)
|
| 49 | + (import (airship r7rs)) |
51 | 50 | (export char-alphabetic? char-ci<=? char-ci<? char-ci=? char-ci>=? char-ci>?
|
52 | 51 | char-downcase char-foldcase char-lower-case? char-numeric? char-upcase
|
53 | 52 | char-upper-case? char-whitespace? digit-value string-ci<=? string-ci<?
|
54 | 53 | string-ci=? string-ci>=? string-ci>? string-downcase string-foldcase
|
55 |
| - string-upcase) |
56 |
| - (include-lisp "standard-procedures.lisp")) |
| 54 | + string-upcase)) |
57 | 55 |
|
58 | 56 | (define-library (scheme complex)
|
59 |
| - (export angle imag-part magnitude make-polar make-rectangular real-part) |
60 |
| - (include-lisp "standard-procedures.lisp")) |
| 57 | + (import (airship r7rs)) |
| 58 | + (export angle imag-part magnitude make-polar make-rectangular real-part)) |
61 | 59 |
|
62 | 60 | (define-library (scheme cxr)
|
| 61 | + (import (airship r7rs)) |
63 | 62 | (export caaaar caaadr caaar caadar caaddr caadr cadaar cadadr cadar caddar
|
64 | 63 | cadddr caddr cdaaar cdaadr cdaar cdadar cdaddr cdadr cddaar cddadr
|
65 |
| - cddar cdddar cddddr cdddr) |
66 |
| - (include-lisp "standard-procedures.lisp")) |
| 64 | + cddar cdddar cddddr cdddr)) |
67 | 65 |
|
68 | 66 | (define-library (scheme eval)
|
69 |
| - (export environment eval) |
70 |
| - (include-lisp "standard-procedures.lisp")) |
| 67 | + (import (airship r7rs)) |
| 68 | + (export environment eval)) |
71 | 69 |
|
72 | 70 | (define-library (scheme file)
|
| 71 | + (import (airship r7rs)) |
73 | 72 | (export call-with-input-file call-with-output-file delete-file file-exists?
|
74 | 73 | open-binary-input-file open-binary-output-file open-input-file
|
75 |
| - open-output-file with-input-from-file with-output-to-file) |
76 |
| - (include-lisp "standard-procedures.lisp")) |
| 74 | + open-output-file with-input-from-file with-output-to-file)) |
77 | 75 |
|
78 | 76 | (define-library (scheme inexact)
|
79 |
| - (export (acos asin atan cos exp finite? infinite? log nan? sin sqrt tan)) |
80 |
| - (include-lisp "standard-procedures.lisp")) |
| 77 | + (import (airship r7rs)) |
| 78 | + (export (acos asin atan cos exp finite? infinite? log nan? sin sqrt tan))) |
81 | 79 |
|
82 | 80 | (define-library (scheme lazy)
|
83 |
| - (export delay delay-force force make-promise promise?) |
84 |
| - (include-lisp "standard-procedures.lisp")) |
| 81 | + (import (airship r7rs)) |
| 82 | + (export delay delay-force force make-promise promise?)) |
85 | 83 |
|
86 | 84 | (define-library (scheme load)
|
87 |
| - (export load) |
88 |
| - (include-lisp "standard-procedures.lisp")) |
| 85 | + (import (airship r7rs)) |
| 86 | + (export load)) |
89 | 87 |
|
90 | 88 | (define-library (scheme process-context)
|
| 89 | + (import (airship r7rs)) |
91 | 90 | (export command-line emergency-exit exit get-environment-variable
|
92 |
| - get-environment-variables) |
93 |
| - (include-lisp "standard-procedures.lisp")) |
| 91 | + get-environment-variables)) |
94 | 92 |
|
95 | 93 | (define-library (scheme read)
|
96 |
| - (export read) |
97 |
| - (include-lisp "standard-procedures.lisp")) |
| 94 | + (import (airship r7rs)) |
| 95 | + (export read)) |
98 | 96 |
|
99 | 97 | (define-library (scheme repl)
|
100 |
| - (export interaction-environment) |
101 |
| - (include-lisp "standard-procedures.lisp")) |
| 98 | + (import (airship r7rs)) |
| 99 | + (export interaction-environment)) |
102 | 100 |
|
103 | 101 | (define-library (scheme time)
|
104 |
| - (export current-jiffy current-second jiffies-per-second) |
105 |
| - (include-lisp "standard-procedures.lisp")) |
| 102 | + (import (airship r7rs)) |
| 103 | + (export current-jiffy current-second jiffies-per-second)) |
106 | 104 |
|
107 | 105 | (define-library (scheme write)
|
108 |
| - (export display write write-shared write-simple) |
109 |
| - (include-lisp "standard-procedures.lisp")) |
| 106 | + (import (airship r7rs)) |
| 107 | + (export display write write-shared write-simple)) |
110 | 108 |
|
111 | 109 | (define-library (scheme r5rs)
|
| 110 | + (import (airship r7rs)) |
112 | 111 | (export * + - / < <= = > >= abs acos and angle append apply asin assoc assq
|
113 | 112 | assv atan begin boolean? caaaar caaadr caaar caadar caaddr caadr caar
|
114 | 113 | cadaar cadadr cadar caddar cadddr caddr cadr
|
|
139 | 138 | string=? string>=? string>? string? substring symbol->string symbol?
|
140 | 139 | tan truncate values vector vector->list vector-fill! vector-length
|
141 | 140 | vector-ref vector-set! vector? with-input-from-file
|
142 |
| - with-output-to-file write write-char zero?) |
143 |
| - (include-lisp "standard-procedures.lisp")) |
| 141 | + with-output-to-file write write-char zero?)) |
0 commit comments