Home
last modified time | relevance | path

Searched refs:_evaluate (Results 1 – 1 of 1) sorted by relevance

/external/antlr/antlr-3.4/runtime/Python/tests/
Dt015calc.py10 def _evaluate(self, expr, expected, errors=[]): member in t015calc
21 self._evaluate("1 + 2", 3)
25 self._evaluate("1 + 2 * 3", 7)
29 self._evaluate("10 / 2", 5)
33 self._evaluate("6 + 2*(3+1) - 4", 10)
37 self._evaluate("6 - (2*1", 4, ["mismatched token at pos 8"])