m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
authorMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2017-09-02 00:47:46 -0400
committerMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2017-09-02 01:02:16 -0400
commit1cc6b80cfd4875f289837421cdbe81e3dfcf0ed1 (patch)
tree0fb04bc04f27620f6def5dc310953a637e22ae07 /index.js
parent650f7d82197cba35df3654abf548e07e213c1b14 (diff)
Implement repeat
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 37883cc..cc768cb 100644
--- a/index.js
+++ b/index.js
@@ -37,6 +37,8 @@ const interpret = tree => {
return D.bonusAdd(interpret(tree.left), interpret(tree.right))
case 'bonusSubtract':
return D.bonusSubtract(interpret(tree.left), interpret(tree.right))
+ case 'repeat':
+ return D.repeat(interpret(tree.left), interpret(tree.right))
}
}