reify variables

This commit is contained in:
Felix Roos
2025-03-16 23:30:41 +01:00
parent 118b619b74
commit 40f6489111
+2 -2
View File
@@ -1,4 +1,4 @@
import { strudelScope, reify, fast, slow } from '@strudel/core';
import { strudelScope, reify, fast, slow, isPattern } from '@strudel/core';
import { registerLanguage } from '@strudel/transpiler';
import { MondoRunner } from '../mondo/mondo.mjs';
@@ -7,7 +7,7 @@ let runner = new MondoRunner(strudelScope, { pipepost: true, loc: true });
let getLeaf = (value, token) => {
const [from, to] = token.loc;
if (strudelScope[value]) {
return strudelScope[value].withLoc(from, to);
return reify(strudelScope[value]).withLoc(from, to);
}
return reify(value).withLoc(from, to);
};