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