File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -58,15 +58,12 @@ try-destructure-macro := λlhs e . (match (lhs e) (
58
58
(Accept (KV( pv e )))
59
59
)
60
60
))
61
- ( ( (App( (Literal :Tag:) (Variable pv) )) (Literal el)) (tail(
61
+ ( ( (App( (Literal :Tag:) (Variable pv) )) (Literal el)) (
62
62
(if (typecheck-is-constructor el)
63
- (tail(
64
- (print-s (Tag lhs pv el))(print-s \n)
65
- (Accept (KV( pv e )))
66
- ))
63
+ (Accept (KV( pv (typecheck-is-constructor el) )))
67
64
()
68
65
)
69
- )))
66
+ ))
70
67
( ( (App( (Literal :Variable:) (Variable pv) )) (Variable el)) (
71
68
(Accept (KV( pv e )))
72
69
))
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ macro ('match-pats-condition term (:Literal: l)) (
27
27
(==( term l ))
28
28
);
29
29
30
- # macro ('match-pats-condition term (:Tag: l)) (
31
- # (==( (.0( term )) l ))
32
- # );
30
+ macro ('match-pats-condition term (:Tag: l)) (
31
+ (==( (.0( term )) l ))
32
+ );
33
33
You can’t perform that action at this time.
0 commit comments