mondo: refactor evaluate function into bits
This commit is contained in:
parent
a0fb8fb37f
commit
f2372e7a41
4 changed files with 45 additions and 36 deletions
|
|
@ -87,7 +87,7 @@ function evaluator(node, scope) {
|
|||
return pat;
|
||||
}
|
||||
|
||||
let runner = new MondoRunner(evaluator);
|
||||
let runner = new MondoRunner({ evaluator });
|
||||
|
||||
export function mondo(code, offset = 0) {
|
||||
if (Array.isArray(code)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue