mondo: support variables

This commit is contained in:
Felix Roos
2025-03-16 23:10:23 +01:00
parent 3c3832dbce
commit 2dd445c102
+3
View File
@@ -6,6 +6,9 @@ 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(value).withLoc(from, to);
};