Java IRC bot
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Evaluator.java 367B

123456789101112131415161718192021222324
  1. /*
  2. * To change this template, choose Tools | Templates
  3. * and open the template in the editor.
  4. */
  5. package com.dmdirc.addons.calc;
  6. /**
  7. *
  8. * @author chris
  9. */
  10. public class Evaluator {
  11. private final TreeToken node;
  12. public Evaluator(TreeToken node) {
  13. this.node = node;
  14. }
  15. public Number evaluate() {
  16. return node.evaluate();
  17. }
  18. }