Skip to content

Commit 0f4b781

Browse files
macro
1 parent f04eb8f commit 0f4b781

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

PRODUCTION/preprocess.lm

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,12 @@ try-destructure-macro := λlhs e . (match (lhs e) (
5858
(Accept (KV( pv e )))
5959
)
6060
))
61-
( ( (App( (Literal :Tag:) (Variable pv) )) (Literal el)) (tail(
61+
( ( (App( (Literal :Tag:) (Variable pv) )) (Literal el)) (
6262
(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) )))
6764
()
6865
)
69-
)))
66+
))
7067
( ( (App( (Literal :Variable:) (Variable pv) )) (Variable el)) (
7168
(Accept (KV( pv e )))
7269
))

STDLIB/default-rules.lm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ macro ('match-pats-condition term (:Literal: l)) (
2727
(==( term l ))
2828
);
2929

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+
);
3333

0 commit comments

Comments
 (0)