mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-13 14:26:58 -04:00
reify variables
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user