(Lexer lexer, List<ASTree> res)
| 191 | factor = exp; |
| 192 | } |
| 193 | public void parse(Lexer lexer, List<ASTree> res) throws ParseException { |
| 194 | ASTree right = factor.parse(lexer); |
| 195 | Precedence prec; |
| 196 | while ((prec = nextOperator(lexer)) != null) |
| 197 | right = doShift(lexer, right, prec.value); |
| 198 | |
| 199 | res.add(right); |
| 200 | } |
| 201 | private ASTree doShift(Lexer lexer, ASTree left, int prec) |
| 202 | throws ParseException |
| 203 | { |
nothing calls this directly
no test coverage detected