Skip to content

Commit 082edb6

Browse files
I feel like some code is missing
1 parent c42bce3 commit 082edb6

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

PRODUCTION/codegen-strict.lm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,12 @@ compile-expr-strict := λctx e offset used . (tail(
187187
e1
188188
)))
189189
( (App( (App( (Literal ':) lval )) ltype )) (tail(
190-
(set e1 (compile-expr-strict( ctx lval offset Unused )))
190+
(set e1 (compile-expr-strict( ctx lval offset Used )))
191191
(set e1 (expr::set-type( e1 (typecheck-lookup e) )))
192192
e1
193193
)))
194194
( (App( (App( (Variable 'as) lval )) ltype )) (tail(
195-
(set e1 (compile-expr-strict( ctx lval offset Unused )))
195+
(set e1 (compile-expr-strict( ctx lval offset Used )))
196196
(set e1 (expr::set-type( e1 (typecheck-lookup e) )))
197197
e1
198198
)))

STRICT/cli.lm

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ main := λ(: argc U64)(: argv U8[][]).(tail(
1515
# (let argi 0u64)
1616
(let input_l (SAtom( 'an-atom_s )))
1717
(let input_r (SPointer( as 'test_s ?[] )))
18-
(let input (SCons(
19-
(close( input_l ))
20-
(close( input_r ))
21-
)))
18+
(let close_l (close( input_l )))
19+
(let close_r (close( input_r )))
20+
(let input (SCons( close_l close_r )))
2221
(print input)
2322
# (while (<( argi argc )) (
2423
# (if (==( ([]( argv argi )) '--tokenize_s )) (

0 commit comments

Comments
 (0)