- fixed the ELSE clause of expect syntax
This commit is contained in:
parent
03d7ee90f6
commit
0a2217bc5c
|
@ -373,15 +373,15 @@
|
|||
(lambda () exp)
|
||||
(lambda (v) (proc v)))
|
||||
(expect-action-clauses clause ...)))
|
||||
((expect-action-clauses (else body ...) clause ...)
|
||||
(cons (list 'else (lambda () body ...))
|
||||
(expect-action-clauses clause ...)))
|
||||
((expect-action-clauses (pattern () body ...) clause ...)
|
||||
(expect-action-clauses (pattern (ignore) body ...) clause ...))
|
||||
((expect-action-clauses (pattern (m mvars ...) body ...) clause ...)
|
||||
(cons (list 'match (lambda () pattern)
|
||||
(lambda (m)
|
||||
(let-match m (mvars ...) body ...)))
|
||||
(expect-action-clauses clause ...)))
|
||||
((expect-action-clauses (else body ...) clause ...)
|
||||
(cons (list else (lambda () body ...))
|
||||
(expect-action-clauses clause ...)))))
|
||||
|
||||
(define-syntax expect-clauses
|
||||
|
|
Loading…
Reference in New Issue