reify variables
This commit is contained in:
parent
118b619b74
commit
40f6489111
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue