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

@ -31,6 +31,6 @@ function evaluator(node) {
}
return fn(...args);
}
const runner = new MondoRunner(evaluator);
const runner = new MondoRunner({ evaluator });
const pat = runner.run('add 1 (mul 2 PI)') // 7.283185307179586
```