Skip to content

Commit dce5b54

Browse files
compiling
1 parent ea0d57a commit dce5b54

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

PLATFORM/C/LIB/common-macros.lsts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ typed macro macro::lhs-index(base: lazy, index: lazy): lazy = (
4040
);
4141

4242
typed macro macro::lhs-index(base field: macro::lhs-field, index: lazy): lazy = (
43-
$"macro::concat"($".", field); index
43+
$"macro::concat"($".", field)(base); index
4444
);
4545

4646
typed macro macro::for(item: lazy, iter: List<?>, loop: lazy): lazy = (

SRC/std-apply-macro.lsts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ let std-apply-macro-concat(tctx: Maybe<TContext>, mname: CString, margs: AST): (
1818
);
1919

2020
let std-apply-macro(tctx: Maybe<TContext>, mname: CString, margs: AST, strong: Bool): (TContext?, AST) = (
21-
print("Apply \{mname} \{margs}\n");
2221
let result = ASTEOF;
2322
if mname==c"macro::concat" then (tctx, result) = std-apply-macro-concat(tctx, mname, margs)
2423
else {
@@ -60,7 +59,6 @@ let std-apply-macro(tctx: Maybe<TContext>, mname: CString, margs: AST, strong: B
6059
};
6160
if strong && not(non-zero(result)) then exit-error("Failed to Apply Macro: \{mname}\nArgs: \{margs}\n", margs);
6261
if strong then (tctx, result) = std-infer-expr(tctx, result, false, Used, TAny);
63-
print("Applied \{mname} \{margs}\nResult \{result}\n");
6462
(tctx, result)
6563
);
6664

tests/unit/ast-macros.lsts.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[3,4]
1+
[3,4]2

0 commit comments

Comments
 (0)