- synching scheme/psyntax.*.ss from the psyntax distribution.

This commit is contained in:
Abdulaziz Ghuloum
2008-10-13 17:33:25 -04:00
parent 442f6e9049
commit afa61cc1a7
6 changed files with 570 additions and 540 deletions
+24 -1
View File
@@ -20,12 +20,35 @@
make-struct-type read-annotated
annotation? annotation-expression annotation-source
annotation-stripped
read-library-source-file)
read-library-source-file
library-version-mismatch-warning
file-locator-resolution-error)
(import
(only (ikarus.compiler) eval-core)
(only (ikarus.reader.annotated) read-library-source-file)
(ikarus))
(define (library-version-mismatch-warning name depname filename)
(fprintf (current-error-port)
"WARNING: library ~s has an inconsistent dependency \
on library ~s; file ~s will be recompiled from \
source.\n"
name depname filename))
(define (file-locator-resolution-error libname failed-list)
(define-condition-type &library-resolution &condition
make-library-resolution-condition
library-resolution-condition?
(library condition-library)
(files condition-files))
(raise
(condition
(make-error)
(make-who-condition 'expander)
(make-message-condition
"cannot locate library in library-path")
(make-library-resolution-condition
libname failed-list))))
(define-syntax define-record
(syntax-rules ()