Fixed quasiquote expansinon

This commit is contained in:
Michael Schimmel
2025-11-02 20:04:56 +01:00
parent ea39a57b77
commit 92cfe94463
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -315,7 +315,7 @@ begin
end;
// 4. Expand the macro body using the TExpansionVisitor
var expandedBody := TExpansionVisitor.Expand(expansionScope, macroDef.Body.AsUnquoteSplicing.Expression, evaluatorProc);
var expandedBody := TExpansionVisitor.Expand(expansionScope, macroDef.Body.AsQuasiquote.Expression, evaluatorProc);
// 5. Wrap the result in a MacroExpansionNode (for debugging/tracing)
var macroNode := TAst.MacroExpansionNode(Node, expandedBody);