@Test public void shouldSupportMultiplicativeOperators() { assertThat(engine.evaluate(number(2), MUL, number(3)), is(6.0)); assertThat(engine.evaluate(number(6), DIV, number(2)), is(3.0)); }
public double evaluate(Token... tokens) { this.pos = -1; this.stream = tokens; return expression().getValue(); }
Engine { public double evaluate(Token... tokens) { this.pos = -1; this.stream = tokens; return expression().getValue(); } }
Engine { public double evaluate(Token... tokens) { this.pos = -1; this.stream = tokens; return expression().getValue(); } Engine(); }
Engine { public double evaluate(Token... tokens) { this.pos = -1; this.stream = tokens; return expression().getValue(); } Engine(); void setVariable(String name, double value); double evaluate(Token... tokens); }
Engine { public double evaluate(Token... tokens) { this.pos = -1; this.stream = tokens; return expression().getValue(); } Engine(); void setVariable(String name, double value); double evaluate(Token... tokens);  }