-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
177 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
(library (rnrs conditions) | ||
(export &condition | ||
(rename make-compound-condition condition) | ||
simple-conditions | ||
condition-predicate | ||
condition-accessor | ||
(rename define-condition-type/constructor define-condition-type) | ||
|
||
;; 7.3 Standard condition types | ||
&message | ||
make-message-condition | ||
message-condition? | ||
condition-message | ||
|
||
&warning | ||
make-warning | ||
warning? | ||
|
||
&serious | ||
make-serious-condition | ||
serious-condition? | ||
|
||
&error | ||
make-error | ||
error? | ||
|
||
&violation | ||
make-violation | ||
violation? | ||
|
||
&assertion | ||
make-assertion-violation | ||
assertion-violation? | ||
|
||
&irritants | ||
make-irritants-condition | ||
irritants-condition? | ||
condition-irritants | ||
|
||
&who | ||
make-who-condition | ||
who-condition? | ||
condition-who | ||
|
||
&non-continuable | ||
make-non-continuable-violation | ||
non-continuable-violation? | ||
|
||
&implementation-restriction | ||
make-implementation-restriction-violation | ||
implementation-restriction-violation? | ||
|
||
&lexical | ||
make-lexical-violation | ||
lexical-violation? | ||
|
||
&syntax | ||
make-syntax-violation | ||
syntax-violation? | ||
syntax-violation-form | ||
syntax-violation-subform | ||
|
||
&undefined | ||
make-undefined-violation | ||
undefined-violation?) | ||
(import (srfi 35 internal)) | ||
|
||
(define-condition-type/constructor &warning &condition | ||
make-warning warning?) | ||
|
||
(define-condition-type/constructor &violation &serious | ||
make-violation violation?) | ||
|
||
(define-condition-type/constructor &assertion &violation | ||
make-assertion-violation assertion-violation?) | ||
|
||
(define-condition-type/constructor &irritants &condition | ||
make-irritants-condition irritants-condition? | ||
(irritants condition-irritants)) | ||
|
||
(define-condition-type/constructor &who &condition | ||
make-who-condition who-condition? | ||
(who condition-who)) | ||
|
||
(define-condition-type/constructor &non-continuable &violation | ||
make-non-continuable-violation non-continuable-violation?) | ||
|
||
(define-condition-type/constructor &implementation-restriction &violation | ||
make-implementation-restriction-violation | ||
implementation-restriction-violation?) | ||
|
||
(define-condition-type/constructor &lexical &violation | ||
make-lexical-violation lexical-violation?) | ||
|
||
(define-condition-type/constructor &syntax &violation | ||
make-syntax-violation syntax-violation? | ||
(form syntax-violation-form) | ||
(subform syntax-violation-subform)) | ||
|
||
(define-condition-type/constructor &undefined &violation | ||
make-undefined-violation undefined-violation?)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
(library (rnrs syntax-case) | ||
(export make-variable-transformer | ||
syntax-case | ||
syntax | ||
identifier? | ||
bound-identifier=? | ||
free-identifier=? | ||
syntax->datum | ||
datum->syntax | ||
generate-temporaries | ||
with-syntax | ||
quasisyntax | ||
unsyntax | ||
unsyntax-splicing | ||
syntax-violation) | ||
(import (chibi ast) | ||
(chibi syntax-case))) |