Skip to content

Commit 3cae847

Browse files
committed
temp regress for compile
1 parent 47d7267 commit 3cae847

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ LSTSFLAGS = MALLOC_CHECK_=3
88
# recommendation: ulimit -s unlimited
99

1010
dev: install-production
11-
lm tests/promises/syntax/lhs-nested-field.lsts > out.txt
11+
lm tests/promises/syntax/lhs-nested-field-gc.lsts > out.txt
1212
gcc tmp.c
1313
./a.out
1414

SRC/typecheck-infer-expr.lsts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ let std-infer-expr(tctx: Maybe<TypeContext>, term: AST, is-scoped: Bool, used: I
1111
);
1212

1313
let std-infer-expr(tctx: Maybe<TypeContext>, term: AST, is-scoped: Bool, used: IsUsed, hint: Type, rewritten-constant: Bool): (TypeContext?, AST) = (
14+
print("Term: \{term}\n");
1415
#profile-visit-ast-unique(term);
1516
#profile-visit-ast-equal(term);
1617
if not(term.is-free-and-seen) { match term {

lib/core/common-macros.lsts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,17 @@ typed macro macro::fallible-bind(lhs-base lhs-index: macro::lhs-index, rhs: lazy
5757
$"set[]"(lhs-base, lhs-index, rhs); true
5858
);
5959

60+
#typed macro macro::assign(lhs-base lhs-field-name: macro::lhs-field, rhs: lazy): Nil = (
61+
# macro::concat($"set.", lhs-field-name)(macro::lhs-as-rhs(lhs-base), rhs)
62+
#);
63+
#typed macro macro::fallible-bind(lhs-base lhs-field-name: macro::lhs-field, rhs: lazy): Bool = (
64+
# macro::concat($"set.", lhs-field-name)(macro::lhs-as-rhs(lhs-base), rhs); true
65+
#);
6066
typed macro macro::assign(lhs-base lhs-field-name: macro::lhs-field, rhs: lazy): Nil = (
61-
macro::concat($"set.", lhs-field-name)(macro::lhs-as-rhs(lhs-base), rhs)
67+
macro::concat($"set.", lhs-field-name)(lhs-base, rhs)
6268
);
6369
typed macro macro::fallible-bind(lhs-base lhs-field-name: macro::lhs-field, rhs: lazy): Bool = (
64-
macro::concat($"set.", lhs-field-name)(macro::lhs-as-rhs(lhs-base), rhs); true
70+
macro::concat($"set.", lhs-field-name)(lhs-base, rhs); true
6571
);
6672

6773
typed macro macro::assign(lhs: macro::variable, rhs: lazy): Nil = (

0 commit comments

Comments
 (0)