mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 05:39:18 +02:00
Many still import (chibi), and as (scheme base) is somewhat more expensive to load at present these are changed to cond-expand. Many libraries also rely on (srfi 33), and these have been changed to a cond-expand first trying (srfi 60) where available. Also fixing a few portability concerns (duplicate imports of the same binding), and adding a few libraries missing from lib-tests.scm.
14 lines
564 B
Scheme
14 lines
564 B
Scheme
|
|
(define-library (chibi parse common)
|
|
(export parse-integer parse-unsigned-integer parse-c-integer
|
|
parse-real parse-complex
|
|
parse-identifier parse-delimited parse-separated parse-records
|
|
parse-space parse-binary-op
|
|
parse-ipv4-address parse-ipv6-address parse-ip-address
|
|
parse-domain parse-common-domain parse-email parse-uri
|
|
char-hex-digit? char-octal-digit?)
|
|
(cond-expand
|
|
(chibi (import (chibi)))
|
|
(else (import (scheme base) (scheme char))))
|
|
(import (chibi parse))
|
|
(include "common.scm"))
|