mondo: refactor evaluate function into bits

This commit is contained in:
Felix Roos 2025-03-30 17:55:37 +02:00
parent a0fb8fb37f
commit f2372e7a41
No known key found for this signature in database
4 changed files with 45 additions and 36 deletions

View file

@ -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)) {