diff options
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -27,6 +27,8 @@ const interpret = tree => { return D.add(interpret(tree.left), interpret(tree.right)) case 'subtract': return D.subtract(interpret(tree.left), interpret(tree.right)) + case 'multiply': + return D.multiply(interpret(tree.left), interpret(tree.right)) case 'negative': return D.negative(interpret(tree.value)) case 'bonusAdd': |