Skip to content

Commit fad54f0

Browse files
fixed a bug where fragment type could be nil
1 parent 744c3a5 commit fad54f0

File tree

4 files changed

+25
-3
lines changed

4 files changed

+25
-3
lines changed

BOOTSTRAP/cli.s

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78466,6 +78466,27 @@ uuid_0000000000000566:
7846678466
mov %r13, -80(%rbp)
7846778467
mov -72(%rbp),%r12
7846878468
mov -80(%rbp),%r13
78469+
push %r12
78470+
push %r13
78471+
mov -40(%rbp),%r12
78472+
mov -48(%rbp),%r13
78473+
call __typecheck_lookup_C___
78474+
call uuid_0000000000000003
78475+
mov %r12, 0(%r8)
78476+
mov %r13, 8(%r8)
78477+
pop %r13
78478+
pop %r12
78479+
push %r8
78480+
call uuid_0000000000000003
78481+
mov %r12, 0(%r8)
78482+
mov %r13, 8(%r8)
78483+
mov %r8, %r12
78484+
pop %r13
78485+
call __expr_C__C_set_type_C___
78486+
mov %r12, -72(%rbp)
78487+
mov %r13, -80(%rbp)
78488+
mov -72(%rbp),%r12
78489+
mov -80(%rbp),%r13
7846978490
mov $1, %r14
7847078491
uuid_0000000000000567:
7847178492
cmp $0, %r14

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "lambda_mountain"
3-
version = "1.11.105"
3+
version = "1.11.106"
44
authors = ["Andrew <andrew@subarctic.org>"]
55
license = "MIT"
66
description = "Lambda Mountain"

PRODUCTION/codegen-strict.lm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ compile-expr-strict := λctx e offset used . (tail(
346346
()
347347
( (Variable fname) (tail(
348348
(set e1 (stack-call( ctx fname r offset )))
349+
(set e1 (expr::set-type( e1 (typecheck-lookup e) )))
349350
e1
350351
)))
351352
( (Literal tag) (tail(

STRICT/parse.lm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,15 @@ parse := λ. (: (tail(
7171
# (set toks (tail pme))
7272
# )))
7373
(remainder (tail(
74+
()
7475
(match (parse-many-expressions remainder) (
7576
()
7677
( (PME( term remainder )) (tail(
7778
(set tokens remainder)
7879
()
79-
# (set parse-parsed-program (parse-parsed-program (GExpr (head pme)) ))
80+
# (set parse-parsed-program (parse-parsed-program (GExpr (head pme)) ))
8081
)))
8182
))
82-
(set tokens (.1 (as (maybe-deref part1) PME)) )
8383
)))
8484
)))
8585

0 commit comments

Comments
 (0)