/usr/share/scheme48-1.9/r6rs/packages.scm is in scheme48 1.9-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 | ; Part of Scheme 48 1.9. See file COPYING for notices and license.
; Authors: Mike Sperber, Marcus Crestani, Harald Glab-Plhak, Robert Ransom
(define-interface r6rs-base-comparisons-interface
(export symbol=? boolean=?
char=? char<? char>? char<=? char>=?
string=? string<? string>? string<=? string>=?))
(define-structure r6rs-base-comparisons r6rs-base-comparisons-interface
(open (modify scheme (hide char=? char<? char>? char<=? char>=?
string=? string<? string>? string<=? string>=?))
(modify scheme (prefix prim:))
exceptions
r6rs-n-ary-comparisons)
(files base-comparison))
(define-interface r6rs-records-procedural-interface
(export make-record-type-descriptor
record-type-descriptor?
make-record-constructor-descriptor
record-constructor record-predicate
record-accessor record-mutator))
(define-interface r6rs-records-inspection-interface
(export record-type-name
record-type-parent
record-type-sealed?
record-type-uid
record-type-generative?
record-type-field-names
record-type-opaque?
record-field-mutable?
record? record-rtd))
(define-interface r6rs-records-internal-interface
(export retrofit-record-type!
nongenerative-record-types
delete-nongenerative-record-type))
(define-structures ((r6rs-records-procedural r6rs-records-procedural-interface)
(r6rs-records-inspection r6rs-records-inspection-interface)
(r6rs-records-internal r6rs-records-internal-interface))
(open scheme
(subset util (unspecific))
(subset features (make-immutable!))
(modify record-types (hide record-accessor record-constructor))
define-record-types
(modify records (prefix primitive:))
r6rs-lists
exceptions
tables
(subset command-state (user-context-accessor user-context-modifier))
locks)
(optimize auto-integrate)
(files record-procedural))
(define-structure r6rs-records-commands (export)
(open scheme
r6rs-records-procedural r6rs-records-inspection r6rs-records-internal
(subset command-processor (define-user-command-syntax
user-command-environment))
(subset command-state (command-output))
(subset environments (environment-define!)))
(files record-command))
(define-interface r6rs-records-syntactic-interface
(export ((define-record-type record-type-descriptor record-constructor-descriptor)
:syntax)))
(define-interface r6rs-records-syntactic-internal-interface
(export (define-retrofitted-record-type :syntax)))
(define-structures ((r6rs-records-syntactic r6rs-records-syntactic-interface)
(r6rs-records-syntactic-internal r6rs-records-syntactic-internal-interface))
(open scheme
(subset primitives (checked-record-ref checked-record-set! record))
r6rs-records-procedural
r6rs-records-internal
loopholes types)
(for-syntax (open scheme exceptions))
(files record-syntactic))
(define-interface r6rs-conditions-interface
(export condition
condition?
simple-conditions
condition-predicate
condition-accessor
define-condition-type
(&condition :syntax)
(&message :syntax)
make-message-condition
message-condition?
condition-message
(&warning :syntax)
make-warning
warning?
(&serious :syntax)
make-serious-condition
serious-condition?
(&error :syntax)
make-error
error?
(&violation :syntax)
make-violation
violation?
(&non-continuable :syntax)
make-noncontinuable-violation
non-continuable-violation?
(&implementation-restriction :syntax)
make-implementation-restriction-violation
implementation-restriction-violation?
(&lexical :syntax)
make-lexical-violation
lexical-violation?
(&syntax :syntax)
make-syntax-violation
syntax-violation?
(&undefined :syntax)
make-undefined-violation
undefined-violation?
(&assertion :syntax)
make-assertion-violation
assertion-violation?
(&irritants :syntax)
make-irritants-condition
irritants-condition?
condition-irritants
(&who :syntax)
make-who-condition
who-condition?
condition-who))
(define-structure r6rs-conditions r6rs-conditions-interface
(open scheme
r6rs-records-syntactic
r6rs-records-syntactic-internal
(subset record-types (define-record-discloser))
(modify conditions (prefix rts:))
(subset conditions (condition
condition?
simple-conditions
condition-predicate
condition-accessor
make-message-condition
message-condition?
condition-message
make-warning
warning?
make-serious-condition
serious-condition?
make-error
error?
make-violation
violation?
make-noncontinuable-violation
non-continuable-violation?
make-implementation-restriction-violation
implementation-restriction-violation?
make-lexical-violation
lexical-violation?
make-syntax-violation
syntax-violation?
make-undefined-violation
undefined-violation?
make-assertion-violation
assertion-violation?
make-irritants-condition
irritants-condition?
condition-irritants
make-who-condition
who-condition?
condition-who)))
(files condition))
(define-interface r6rs-unicode-interface
(compound-interface unicode-normalizations-interface
(export char-titlecase
char-title-case?
char-foldcase
string-upcase string-downcase
string-foldcase
string-titlecase)
(export char-ci=? char-ci<? char-ci>? char-ci<=? char-ci>=?
string-ci=? string-ci<? string-ci>? string-ci<=? string-ci>=?)
(export char-general-category)))
(define-structure r6rs-unicode r6rs-unicode-interface
(open (modify scheme (hide char-ci<=? char-ci<? char-ci=? char-ci>=? char-ci>?
string-ci<=? string-ci<? string-ci=? string-ci>=? string-ci>?))
(modify scheme (prefix prim:))
unicode-normalizations
(subset unicode-char-maps (char-titlecase
char-title-case?
char-foldcase
string-upcase string-downcase
string-foldcase
string-titlecase
general-category-symbol))
(modify unicode-char-maps
(rename (char-general-category s48:char-general-category))
(expose char-general-category))
r6rs-n-ary-comparisons)
(files unicode-comparison)
(begin
;; R6RS uses a symbol instead of an enumeration
(define (char-general-category c)
(general-category-symbol (s48:char-general-category c)))))
(define-interface r6rs-lists-interface
(export find
for-all exists
filter partition
fold-left fold-right
remp remove remv remq
memp member memv memq
assp assoc assv assq
cons*))
(define-interface r6rs-enums-interface
(export make-enumeration
enum-set-universe
enum-set-indexer
enum-set-constructor
enum-set->list
enum-set-member?
enum-set=?
enum-set-subset?
enum-set-union
enum-set-intersection
enum-set-difference
enum-set-complement
enum-set-projection
(define-enumeration :syntax)))
(define-structure r6rs-enums r6rs-enums-interface
(open scheme
big-util
(modify enum-sets (prefix big:))
(modify enum-sets-internal (prefix big:))
constant-tables
(subset tables (symbol-hash))
(subset names (desyntaxify))
code-quotation)
(files enum))
(define-interface r6rs-sorting-interface
(export list-sort
vector-sort
vector-sort!))
(define-structure r6rs-sorting r6rs-sorting-interface
(open scheme
(modify sorting (prefix olin:)))
(begin
(define list-sort olin:list-stable-sort)
(define vector-sort olin:vector-stable-sort)
(define vector-sort! olin:vector-sort!)))
(define-structures ((r6rs-reader (export get-datum))
(r6rs-reader-internals (export define-sharp-macro
reading-error)))
(open (modify scheme (hide read))
conditions exceptions
byte-vectors
unicode-char-maps
(subset primitives (make-immutable!))
(subset silly (reverse-list->string)))
(files reader)
(optimize auto-integrate))
(define-structure r6rs-reader-command (export read-form)
(open (modify scheme (hide read))
r6rs-reader
r6rs-reader-internals
conditions exceptions
(subset command-processor (with-sharp-sharp current-sharp-sharp))
nodes command-state)
(files reader-command)
(optimize auto-integrate))
(define-structure r6rs-equal (export equal?)
(open (modify scheme-level-1 (hide equal?))
byte-vectors)
(files equal)
(optimize auto-integrate))
(define-structure r6rs-control (export when unless case-lambda)
(open scheme-level-2
srfi-16)
(files control))
(define-interface r6rs-bytevectors-interface
(export (endianness :syntax)
native-endianness
bytevector?
make-bytevector
bytevector-length
bytevector=?
bytevector-fill!
bytevector-copy!
bytevector-copy
bytevector-u8-ref
bytevector-u8-set!
bytevector-s8-ref
bytevector-s8-set!
bytevector->u8-list
u8-list->bytevector
bytevector-uint-ref bytevector-sint-ref
bytevector-uint-set! bytevector-sint-set!
bytevector->uint-list bytevector->sint-list
uint-list->bytevector sint-list->bytevector
bytevector-u16-ref bytevector-s16-ref
bytevector-u16-set! bytevector-s16-set!
bytevector-u16-native-ref bytevector-s16-native-ref
bytevector-u16-native-set! bytevector-s16-native-set!
bytevector-u32-ref bytevector-s32-ref
bytevector-u32-set! bytevector-s32-set!
bytevector-u32-native-ref bytevector-s32-native-ref
bytevector-u32-native-set! bytevector-s32-native-set!
bytevector-u64-ref bytevector-s64-ref
bytevector-u64-set! bytevector-s64-set!
bytevector-u64-native-ref bytevector-s64-native-ref
bytevector-u64-native-set! bytevector-s64-native-set!
bytevector-ieee-single-native-ref
bytevector-ieee-single-ref
bytevector-ieee-single-native-set!
bytevector-ieee-single-set!
bytevector-ieee-double-native-ref
bytevector-ieee-double-ref
bytevector-ieee-double-native-set!
bytevector-ieee-double-set!
string->utf8 string->utf16
string->utf32 utf8->string
utf16->string utf32->string))
(define-structure r6rs-hashtables r6rs-hashtables-interface
(open scheme
tlc-tables
variable-argument-lists
(modify features (hide string-hash))
exceptions)
(files hashtable))
(define-structure r6rs-bytevectors r6rs-bytevectors-interface
(open scheme
r6rs-enums
load-dynamic-externals
external-calls
byte-vectors
variable-argument-lists
text-codecs
(modify encodings (prefix enc:))
bitwise
exceptions
(subset primitives (copy-bytes! unspecific)))
(files bytevector
bytevector-ieee
bytevector-string))
(define-structure r6rs-lists r6rs-lists-interface
(open scheme
exceptions)
(files list))
(define-interface r6rs-hashtables-interface
(export make-eq-hashtable
make-eqv-hashtable
make-hashtable
hashtable?
hashtable-size
hashtable-ref
hashtable-set!
hashtable-delete!
hashtable-contains?
hashtable-update!
hashtable-copy
hashtable-clear!
hashtable-keys
hashtable-entries
hashtable-equivalence-function
hashtable-hash-function
hashtable-mutable?
equal-hash
string-hash
string-ci-hash
symbol-hash))
; Utilities
(define-interface r6rs-n-ary-comparisons-interface
(export compare-n-ary define-n-ary-comparison))
(define-structure r6rs-n-ary-comparisons r6rs-n-ary-comparisons-interface
(open scheme
r6rs-lists
exceptions)
(files n-ary-comparison))
(define-interface r6rs-bitwise-interface
(export bitwise-not
bitwise-and
bitwise-ior
bitwise-xor
bitwise-if
bitwise-bit-count
bitwise-length
bitwise-first-bit-set
bitwise-bit-set?
bitwise-copy-bit
bitwise-bit-field
bitwise-copy-bit-field
bitwise-arithmetic-shift
bitwise-arithmetic-shift-left
bitwise-arithmetic-shift-right
bitwise-rotate-bit-field
bitwise-reverse-bit-field))
(define-structure r6rs-bitwise r6rs-bitwise-interface
(open scheme
bitwise
exceptions)
(files bitwise))
|