Changed to new package system.

This commit is contained in:
Anthony Carrico 2004-03-10 17:23:45 +00:00
parent 81c4f87072
commit 3d0ed4d8a3
43 changed files with 318 additions and 234 deletions

View File

@ -1 +1 @@
Martin Gasbichler, (credit to Marc Feeley) Copyright (c) 2003 Martin Gasbichler

View File

@ -0,0 +1,5 @@
version 0.1
* New package system.
version 0.0 2003-02-20
* proposed by Marc Feeley on the Scheme Workshop 2001.

View File

@ -2,3 +2,6 @@
(export continuation-capture (export continuation-capture
continuation-graft continuation-graft
continuation-return)) continuation-return))
(define-structure continuation-data-type continuation-data-type-interface
(open scheme)
(files continuation-data-type))

View File

@ -1,3 +0,0 @@
(define-structure continuation-data-type continuation-data-type-interface
(open scheme)
(files continuation-data-type))

View File

@ -0,0 +1,8 @@
(define-package "continuation-data-type"
(0 1)
()
(install-file "load.scm" 'base)
(install-file "README" 'doc)
(install-file "NEWS" 'doc)
(install-string (COPYING) "COPYING" 'doc)
(install-file "continuation-data-type.scm" 'scheme))

View File

@ -1 +1 @@
Martin Gasbichler Copyright (c) 2003 Martin Gasbichler

2
s48/heap-images/NEWS Normal file
View File

@ -0,0 +1,2 @@
version 0.0
* New package system.

View File

@ -1,4 +0,0 @@
(define-interface reinitializers-interface
(export make-reinitializer
reinitializer?))

8
s48/heap-images/load.scm Normal file
View File

@ -0,0 +1,8 @@
(define-interface reinitializers-interface
(export make-reinitializer
reinitializer?))
(define-structure reinitializers reinitializers-interface
(open scheme
define-record-types
records)
(files reinitializer))

View File

@ -1,5 +0,0 @@
(define-structure reinitializers reinitializers-interface
(open scheme
define-record-types
records)
(files reinitializer))

View File

@ -0,0 +1,8 @@
(define-package "heap-images"
(0 0)
()
(install-file "load.scm" 'base)
(install-file "README" 'doc)
(install-file "NEWS" 'doc)
(install-string (COPYING) "COPYING" 'doc)
(install-file "reinitializer.scm" 'scheme))

View File

@ -1 +1 @@
Michel Schinz Copyright (c) 2003 Michel Schinz

2
s48/intsets/NEWS Normal file
View File

@ -0,0 +1,2 @@
version 0.0
* New package system.

View File

@ -9,3 +9,8 @@
intset-delete intset-delete
intset-contains? intset-contains?
intset-map)) intset-map))
(define-structure intsets intsets-interface
(open scheme
srfi-23 ;error
srfi-1) ;list library
(files intsets))

View File

@ -1,5 +0,0 @@
(define-structure intsets intsets-interface
(open scheme
srfi-23 ;error
srfi-1) ;list library
(files intsets))

8
s48/intsets/pkg-def.scm Normal file
View File

@ -0,0 +1,8 @@
(define-package "intsets"
(0 0)
()
(install-file "load.scm" 'base)
(install-file "README" 'doc)
(install-file "NEWS" 'doc)
(install-string (COPYING) "COPYING" 'doc)
(install-file "intsets.scm" 'scheme))

View File

@ -1 +1 @@
Rolf-Thomas Happe Copyright (c) 2003 Rolf-Thomas Happe

2
s48/krims/NEWS Normal file
View File

@ -0,0 +1,2 @@
version 0.0
* New package system.

View File

@ -1,36 +0,0 @@
;; since SRFI-1-INTERFACE isn't defined in the usual 0.6.3 image
;; definition hijacked from scsh-0.6.3/scheme/more-interfaces.scm
(define-interface srfi-1-face
(export map for-each member assoc ; redefined from R5RS
xcons make-list list-tabulate cons* list-copy
proper-list? circular-list? dotted-list? not-pair? null-list? list=
circular-list length+
iota
first second third fourth fifth sixth seventh eighth ninth tenth
car+cdr
take drop
take-right drop-right
take! drop-right!
split-at split-at!
last last-pair
zip unzip1 unzip2 unzip3 unzip4 unzip5
count
append! append-reverse append-reverse! concatenate concatenate!
unfold fold pair-fold reduce
unfold-right fold-right pair-fold-right reduce-right
append-map append-map! map! pair-for-each filter-map map-in-order
filter partition remove
filter! partition! remove!
find find-tail any every list-index
take-while drop-while take-while!
span break span! break!
delete delete!
alist-cons alist-copy
delete-duplicates delete-duplicates!
alist-delete alist-delete!
reverse!
lset<= lset= lset-adjoin
lset-union lset-intersection lset-difference lset-xor
lset-diff+intersection
lset-union! lset-intersection! lset-difference! lset-xor!
lset-diff+intersection!))

71
s48/krims/load.scm Normal file
View File

@ -0,0 +1,71 @@
; Copyright (c) 2003 RT Happe <rthappe at web de>
; See the file COPYING distributed with the Scheme Untergrund Library
;; since SRFI-1-INTERFACE isn't defined in the usual 0.6.3 image
;; definition hijacked from scsh-0.6.3/scheme/more-interfaces.scm
(define-interface srfi-1-face
(export map for-each member assoc ; redefined from R5RS
xcons make-list list-tabulate cons* list-copy
proper-list? circular-list? dotted-list? not-pair? null-list? list=
circular-list length+
iota
first second third fourth fifth sixth seventh eighth ninth tenth
car+cdr
take drop
take-right drop-right
take! drop-right!
split-at split-at!
last last-pair
zip unzip1 unzip2 unzip3 unzip4 unzip5
count
append! append-reverse append-reverse! concatenate concatenate!
unfold fold pair-fold reduce
unfold-right fold-right pair-fold-right reduce-right
append-map append-map! map! pair-for-each filter-map map-in-order
filter partition remove
filter! partition! remove!
find find-tail any every list-index
take-while drop-while take-while!
span break span! break!
delete delete!
alist-cons alist-copy
delete-duplicates delete-duplicates!
alist-delete alist-delete!
reverse!
lset<= lset= lset-adjoin
lset-union lset-intersection lset-difference lset-xor
lset-diff+intersection
lset-union! lset-intersection! lset-difference! lset-xor!
lset-diff+intersection!))
;; odds and ends
(define-structure krims
(export (assert :syntax)
(receive/name :syntax)
(gen-dispatch :syntax))
(open srfi-28 ; format
srfi-23 ; error
scheme)
(files krims))
;; srfi-1 + REST
(define-structure srfi-1+
(compound-interface srfi-1-face
(export rest))
(open srfi-1 scheme)
(begin (define rest cdr)))
;; srfi-9 + define-record-discloser
;; [ extended version of the srfi-9 structure def
;; from scsh-0.6.3/scheme/more-packages.scm ]
(define-structure srfi-9+
(export (define-record-type :syntax)
define-record-discloser)
(open scheme-level-2
(with-prefix define-record-types sys:))
(begin
(define-syntax define-record-type
(syntax-rules ()
((define-record-type type-name . stuff)
(sys:define-record-type type-name type-name . stuff))))
(define define-record-discloser sys:define-record-discloser)))

View File

@ -1,37 +0,0 @@
; Copyright (c) 2003 RT Happe <rthappe at web de>
; See the file COPYING distributed with the Scheme Untergrund Library
;; odds and ends
(define-structure krims
(export (assert :syntax)
(receive/name :syntax)
(gen-dispatch :syntax))
(open srfi-28 ; format
srfi-23 ; error
scheme)
(files krims))
;; srfi-1 + REST
(define-structure srfi-1+
(compound-interface srfi-1-face
(export rest))
(open srfi-1 scheme)
(begin (define rest cdr)))
;; srfi-9 + define-record-discloser
;; [ extended version of the srfi-9 structure def
;; from scsh-0.6.3/scheme/more-packages.scm ]
(define-structure srfi-9+
(export (define-record-type :syntax)
define-record-discloser)
(open scheme-level-2
(with-prefix define-record-types sys:))
(begin
(define-syntax define-record-type
(syntax-rules ()
((define-record-type type-name . stuff)
(sys:define-record-type type-name type-name . stuff))))
(define define-record-discloser sys:define-record-discloser)))

8
s48/krims/pkg-def.scm Normal file
View File

@ -0,0 +1,8 @@
(define-package "krims"
(0 0)
()
(install-file "load.scm" 'base)
(install-file "README" 'doc)
(install-file "NEWS" 'doc)
(install-string (COPYING) "COPYING" 'doc)
(install-file "krims.scm" 'scheme))

View File

@ -1 +1 @@
Martin Gasbichler Copyright (c) 2003 Martin Gasbichler

2
s48/module-system/NEWS Normal file
View File

@ -0,0 +1,2 @@
version 0.0
* New package system.

View File

@ -1,17 +0,0 @@
(define-interface rt-modules-interface
(export ((lambda-interface
with-names-from-rt-structure)
:syntax)
reify-structure
rt-structure->environment
load-structure
load-config-file
rt-structure-binding))
(define-interface rt-modules-core-interface
(export interface-value-names
reify-structure
rt-structure->environment
load-config-file
rt-structure-binding
load-structure))

View File

@ -1,4 +1,20 @@
(define-structure rt-modules rt-modules-interface (define-interface rt-modules-interface
(export ((lambda-interface
with-names-from-rt-structure)
:syntax)
reify-structure
rt-structure->environment
load-structure
load-config-file
rt-structure-binding))
(define-interface rt-modules-core-interface
(export interface-value-names
reify-structure
rt-structure->environment
load-config-file
rt-structure-binding
load-structure))(define-structure rt-modules rt-modules-interface
(open scheme (open scheme
rt-modules-core) rt-modules-core)

View File

@ -0,0 +1,9 @@
(define-package "module-system"
(0 0)
()
(install-file "load.scm" 'base)
(install-file "README" 'doc)
(install-file "NEWS" 'doc)
(install-string (COPYING) "COPYING" 'doc)
(install-file "overlapping-imports.scm" 'scheme)
(install-file "rt-module.scm" 'scheme))

View File

@ -1 +1 @@
Taylor Campbell Copyright (c) 2003 Taylor Campbell

View File

@ -0,0 +1,2 @@
version 0.0
* New package system.

View File

@ -1,5 +0,0 @@
(define-interface procedure-hash-interface
(export (procedure-hash (proc (:procedure) :exact-integer))))
(define-interface procedure-tables-interface
(export (make-procedure-table (proc () :value))))

View File

@ -1,3 +1,9 @@
(define-interface procedure-hash-interface
(export (procedure-hash (proc (:procedure) :exact-integer))))
(define-interface procedure-tables-interface
(export (make-procedure-table (proc () :value))))
(define-structure procedure-hash procedure-hash-interface (define-structure procedure-hash procedure-hash-interface
(open scheme (open scheme
more-types more-types

View File

@ -0,0 +1,9 @@
(define-package "procedure-tables"
(0 0)
()
(install-file "load.scm" 'base)
(install-file "README" 'doc)
(install-file "NEWS" 'doc)
(install-string (COPYING) "COPYING" 'doc)
(install-file "procedure-tables.scm" 'scheme)
(install-file "procedure-hash.scm" 'scheme))

View File

@ -1 +1 @@
Matthias Neubauer, Eric Knauel Copyright (c) 2003 Matthias Neubauer, Eric Knauel

2
s48/profile/NEWS Normal file
View File

@ -0,0 +1,2 @@
version 0.0
* New package system.

View File

@ -1,6 +0,0 @@
(define-interface mini-profiler-interface
(export
profile-init!
display-profile
(define-prof :syntax)
(account-for :syntax)))

16
s48/profile/load.scm Normal file
View File

@ -0,0 +1,16 @@
(define-interface mini-profiler-interface
(export
profile-init!
display-profile
(define-prof :syntax)
(account-for :syntax)))(define-structure mini-profiler mini-profiler-interface
(open scheme
table
formats
extended-ports
time)
(files profile))
(define-structure no-mini-profiler mini-profiler-interface
(open scheme)
(files no-profile))

View File

@ -1,11 +0,0 @@
(define-structure mini-profiler mini-profiler-interface
(open scheme
table
formats
extended-ports
time)
(files profile))
(define-structure no-mini-profiler mini-profiler-interface
(open scheme)
(files no-profile))

9
s48/profile/pkg-def.scm Normal file
View File

@ -0,0 +1,9 @@
(define-package "profile"
(0 0)
()
(install-file "load.scm" 'base)
(install-file "README" 'doc)
(install-file "NEWS" 'doc)
(install-string (COPYING) "COPYING" 'doc)
(install-file "no-profile.scm" 'scheme)
(install-file "profile.scm" 'scheme))

View File

@ -1 +1 @@
Rolf-Thomas Happe Copyright (c) 2003 Rolf-Thomas Happe

2
s48/sequences/NEWS Normal file
View File

@ -0,0 +1,2 @@
version 0.0
* New package system.

View File

@ -1,96 +0,0 @@
; Copyright (c) 2003 RT Happe <rthappe at web de>
; See the file COPYING distributed with the Scheme Untergrund Library
;; the basic protocol including a vanilla constructor
(define-interface sequence-basics-face
(export sequence?
sequence-length
sequence-ref
sequence-set!
make-another-sequence))
;; things definable in terms of the basic protocol
(define-interface sequence-extras-face
(export sequence->list
sequence-tabulate!
sequence-fill!
subsequence
sequence-copy
sequence-copy!
sequence-copy/maker
sequence-append
sequence-map sequences-map
sequence-map/maker sequences-map/maker
sequence-map-into! sequences-map-into!
sequence-for-each sequences-for-each
sequence-fold sequences-fold
sequence-fold-right sequences-fold-right
sequence-null?
sequence-any sequences-any
sequence-every sequences-every
sequence= sequences=
))
;; specialised sequence operations (for lists, actually)
(define-interface sequence-specifics-face
(export list-set!
list-fill!
sublist
))
;; the sequence ADT etc.
(define-interface absequences-face
(export make-sequence-behavior
sequence-behavior?
make-absequence-record
absequence:behavior
make-absequence/behavior
absequence/behavior
list->absequence/behavior
absequence?
absequence-ref
absequence-set!
absequence-length))
;; the basic + extra sequence procedures
;; [ extends the union of SEQUENCE-BASICS- and -EXTRAS-INTERFACE with
;; `VECTOR' replacing `SEQUENCE' ]
(define-interface vector-lib-face
(export ;; constructors and the like
make-vector
vector
list->vector ; with opts
vector-tabulate
;; basics w/o the vanilla constructor
vector?
vector-length
vector-ref
vector-set!
;; extras
vector->list
vector-fill!
vector-tabulate!
subvector
vector-copy
vector-copy!
vector-append
vector-map ; forget the optional MAKER arg
vector-map-into!
vector-for-each
vector-fold
vector-fold-right
vector-null?
vector-any
vector-every
vector=
vectors-map ; but not vectors-map/maker
vectors-map-into!
vectors-for-each
vectors-fold
vectors-fold-right
vectors-any
vectors-every
vectors=
))

View File

@ -1,6 +1,99 @@
; Copyright (c) 2003 RT Happe <rthappe at web de> ; Copyright (c) 2003 RT Happe <rthappe at web de>
; See the file COPYING distributed with the Scheme Untergrund Library ; See the file COPYING distributed with the Scheme Untergrund Library
;; the basic protocol including a vanilla constructor
(define-interface sequence-basics-face
(export sequence?
sequence-length
sequence-ref
sequence-set!
make-another-sequence))
;; things definable in terms of the basic protocol
(define-interface sequence-extras-face
(export sequence->list
sequence-tabulate!
sequence-fill!
subsequence
sequence-copy
sequence-copy!
sequence-copy/maker
sequence-append
sequence-map sequences-map
sequence-map/maker sequences-map/maker
sequence-map-into! sequences-map-into!
sequence-for-each sequences-for-each
sequence-fold sequences-fold
sequence-fold-right sequences-fold-right
sequence-null?
sequence-any sequences-any
sequence-every sequences-every
sequence= sequences=
))
;; specialised sequence operations (for lists, actually)
(define-interface sequence-specifics-face
(export list-set!
list-fill!
sublist
))
;; the sequence ADT etc.
(define-interface absequences-face
(export make-sequence-behavior
sequence-behavior?
make-absequence-record
absequence:behavior
make-absequence/behavior
absequence/behavior
list->absequence/behavior
absequence?
absequence-ref
absequence-set!
absequence-length))
;; the basic + extra sequence procedures
;; [ extends the union of SEQUENCE-BASICS- and -EXTRAS-INTERFACE with
;; `VECTOR' replacing `SEQUENCE' ]
(define-interface vector-lib-face
(export ;; constructors and the like
make-vector
vector
list->vector ; with opts
vector-tabulate
;; basics w/o the vanilla constructor
vector?
vector-length
vector-ref
vector-set!
;; extras
vector->list
vector-fill!
vector-tabulate!
subvector
vector-copy
vector-copy!
vector-append
vector-map ; forget the optional MAKER arg
vector-map-into!
vector-for-each
vector-fold
vector-fold-right
vector-null?
vector-any
vector-every
vector=
vectors-map ; but not vectors-map/maker
vectors-map-into!
vectors-for-each
vectors-fold
vectors-fold-right
vectors-any
vectors-every
vectors=
))
;;; refers to structures from sunterlib/s48/krims ;;; refers to structures from sunterlib/s48/krims
;;; relies on implicit shadowing of exported bindings ;;; relies on implicit shadowing of exported bindings

13
s48/sequences/pkg-def.scm Normal file
View File

@ -0,0 +1,13 @@
(define-package "sequences"
(0 0)
()
(install-file "load.scm" 'base)
(install-file "README" 'doc)
(install-file "NEWS" 'doc)
(install-string (COPYING) "COPYING" 'doc)
(install-file "baseqs.scm" 'scheme)
(install-file "genseqs.scm" 'scheme)
(install-file "uniseqs.scm" 'scheme)
(install-file "composeqs.scm" 'scheme)
(install-file "specseqs.scm" 'scheme)
(install-file "vecnames.scm" 'scheme))