Skip to content

Commit b1c927f

Browse files
now if it would only deploy
1 parent aacc0cd commit b1c927f

File tree

4 files changed

+2
-5
lines changed

4 files changed

+2
-5
lines changed

PLATFORM/C/LIB/common-macros.lsts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ typed macro macro::set(lhs: lazy, rhs: lazy): lazy = (
88
);
99

1010
typed macro macro::set(base index: macro::lhs-index, rhs: lazy): lazy = (
11-
$"set[]"( $"macro::lhs-as-rhs"(base), index, rhs )
11+
$"set[]"( base, index, rhs )
1212
);
1313

1414
#typed macro macro::set(base field: macro::lhs-field, rhs: lazy): lazy = (

SRC/std-apply-macro-candidates.lsts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@ let std-apply-macro-candidates(tctx: TContext?, mname: CString, margs: AST, cand
99
let t = ASTEOF;
1010
for Tuple{ctype=first, second:Abs{mlhs=lhs,rhs:App{left:Lit{key:c":"},right:App{mrhs=left}}}} in candidates {
1111
if not(non-zero(t)) {
12-
print("Apply Candidate \{mname}\nLeft: \{mlhs}\nRight: \{margs}\n");
1312
(let new-tctx, let mctx) = std-try-destructure-macro(tctx, margs, ctype, mlhs);
1413
if mctx.is-some then mctx = union(mctx, Some{extract-uuids(mrhs)});
1514
if mctx.is-some then t = with-location-preserve(substitute(mctx.get-or-panic, mrhs), margs.location);
16-
if not(non-zero(t)) then print("Rejected Candidate \{mname} \{mlhs}\n");
1715
}
1816
};
1917
(tctx, t)

SRC/std-apply-macro.lsts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ let std-apply-macro(tctx: Maybe<TContext>, mname: CString, margs: AST): (TContex
1111
let std-apply-macro-weak(tctx: Maybe<TContext>, mname: CString, margs: AST): (TContext?, AST) = std-apply-macro(tctx, mname, margs, false);
1212

1313
let std-apply-macro(tctx: Maybe<TContext>, mname: CString, margs: AST, strong: Bool): (TContext?, AST) = (
14-
print("Apply Macro \{mname} \{margs}\n");
1514
let row = index-macro-table.lookup(mname, [] :: List<(Type,Type,AST)>);
1615
let peep-holes = TAny;
1716
let peeped = TAny;
@@ -48,7 +47,6 @@ let std-apply-macro(tctx: Maybe<TContext>, mname: CString, margs: AST, strong: B
4847
};
4948
(tctx, let result) = std-apply-macro-candidates(tctx, mname, margs, candidates);
5049
if strong && not(non-zero(result)) then exit-error("Failed to Apply Macro: \{mname}", margs);
51-
print("Applied Macro \{mname} \{margs}\nResult: \{result}\n");
5250
if strong then (tctx, result) = std-infer-expr(tctx, result, false, Used, TAny);
5351
(tctx, result)
5452
);

tests/unit/ast-macros.lsts.out

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

0 commit comments

Comments
 (0)