Add SRFI libraries.
authorChris Hanson <org/chris-hanson/cph>
Thu, 25 Oct 2018 01:53:11 +0000 (18:53 -0700)
committerChris Hanson <org/chris-hanson/cph>
Thu, 25 Oct 2018 04:26:41 +0000 (21:26 -0700)
src/runtime/library-standard.scm

index 7f8373ce9e5d4ede4f8f7a6f67a835c87dec2625..b9b2b1a4b03e9fc535b49f08dfc2d49a3b8dd34e 100644 (file)
@@ -758,4 +758,219 @@ USA.
     with-output-to-file
     write
     write-char
-    zero?))
\ No newline at end of file
+    zero?))
+\f
+(define-standard-library '(srfi 1)
+  '(alist-cons
+    alist-copy
+    alist-delete
+    alist-delete!
+    any
+    append
+    append!
+    append-map
+    append-map!
+    append-reverse
+    append-reverse!
+    assoc
+    assq
+    assv
+    break
+    break!
+    caaaar
+    caaadr
+    caaar
+    caadar
+    caaddr
+    caadr
+    caar
+    cadaar
+    cadadr
+    cadar
+    caddar
+    cadddr
+    caddr
+    cadr
+    car
+    car+cdr
+    cdaaar
+    cdaadr
+    cdaar
+    cdadar
+    cdaddr
+    cdadr
+    cdar
+    cddaar
+    cddadr
+    cddar
+    cdddar
+    cddddr
+    cdddr
+    cddr
+    cdr
+    circular-list
+    circular-list?
+    concatenate
+    concatenate!
+    cons
+    cons*
+    count
+    delete
+    delete!
+    delete-duplicates
+    delete-duplicates!
+    dotted-list?
+    drop
+    drop-right
+    drop-right!
+    drop-while
+    eighth
+    every
+    fifth
+    filter
+    filter!
+    filter-map
+    find
+    find-tail
+    first
+    fold
+    fold-right
+    for-each
+    fourth
+    iota
+    last
+    last-pair
+    length
+    length+
+    list
+    list-copy
+    list-index
+    list-ref
+    list-tabulate
+    list=
+    lset-adjoin
+    lset-diff+intersection
+    lset-diff+intersection!
+    lset-difference
+    lset-difference!
+    lset-intersection
+    lset-intersection!
+    lset-union
+    lset-union!
+    lset-xor
+    lset-xor!
+    lset<=
+    lset=
+    make-list
+    map
+    map!
+    map-in-order
+    member
+    memq
+    memv
+    ninth
+    not-pair?
+    null-list?
+    null?
+    pair-fold
+    pair-fold-right
+    pair-for-each
+    pair?
+    partition
+    partition!
+    proper-list?
+    reduce
+    reduce-right
+    remove
+    remove!
+    reverse
+    reverse!
+    second
+    set-car!
+    set-cdr!
+    seventh
+    sixth
+    span
+    span!
+    split-at
+    split-at!
+    take
+    take!
+    take-right
+    take-while
+    take-while!
+    tenth
+    third
+    unfold
+    unfold-right
+    unzip1
+    unzip2
+    unzip3
+    unzip4
+    unzip5
+    xcons
+    zip))
+\f
+(define-standard-library '(srfi 2)
+  '(and-let*))
+
+(define-standard-library '(srfi 6)
+  '(get-output-string
+    open-input-string
+    open-output-string))
+
+(define-standard-library '(srfi 8)
+  '(receive))
+
+(define-standard-library '(srfi 9)
+  '(define-record-type))
+
+(define-standard-library '(srfi 23)
+  '(error))
+
+(define-standard-library '(srfi 27)
+  '(default-random-source
+    make-random-source
+    random-integer
+    random-real
+    random-source-make-integers
+    random-source-make-reals
+    random-source-make-reals
+    random-source-pseudo-randomize!
+    random-source-randomize!
+    random-source-state-ref
+    random-source-state-set!
+    random-source?))
+
+(define-standard-library '(srfi 39)
+  '(make-parameter
+    parameterize))
+
+(define-standard-library '(srfi 69)
+  '(alist->hash-table
+    hash
+    hash-by-identity
+    hash-table->alist
+    hash-table-copy
+    hash-table-delete!
+    hash-table-equivalence-function
+    hash-table-exists?
+    hash-table-fold
+    hash-table-hash-function
+    hash-table-keys
+    hash-table-merge!
+    hash-table-ref
+    hash-table-ref/default
+    hash-table-set!
+    hash-table-size
+    hash-table-update!
+    hash-table-update!/default
+    hash-table-values
+    hash-table-walk
+    hash-table?
+    make-hash-table
+    string-ci-hash
+    string-hash))
+
+(define-standard-library '(srfi 131)
+  '(define-record-type))
\ No newline at end of file