m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'index.js')
-rw-r--r--index.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/index.js b/index.js
index 13e6378..db39fd1 100644
--- a/index.js
+++ b/index.js
@@ -43,6 +43,8 @@ const interpret = tree => {
return D.bonusDivide(interpret(tree.left), interpret(tree.right))
case 'repeat':
return D.repeat(interpret(tree.left), interpret(tree.right))
+ case 'collect':
+ return D.collect(interpret(tree.value))
}
}