forked from okuoku/xitomatl
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconditions.sls
26 lines (22 loc) · 1 KB
/
conditions.sls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!r6rs
;; Copyright 2009 Derick Eddington. My MIT-style license is in the file named
;; LICENSE from the original collection this file is distributed with.
(library (xitomatl conditions)
(export
make-argument-name-condition argument-name-condition? condition-argument-name
make-predicate-expression-condition predicate-expression-condition? condition-predicate-expression
make-port-position-condition port-position-condition? condition-port-position
print-condition)
(import
(rnrs)
(xitomatl conditions print-condition))
(define-condition-type &argument-name &condition
make-argument-name-condition argument-name-condition?
(n condition-argument-name))
(define-condition-type &predicate-expression &condition
make-predicate-expression-condition predicate-expression-condition?
(p condition-predicate-expression))
(define-condition-type &port-position &condition
make-port-position-condition port-position-condition?
(pos condition-port-position))
)