()
| 77 | } |
| 78 | |
| 79 | private String nextToken() throws IOException { |
| 80 | if (currentTokenIndex >= tokens.size()) { |
| 81 | throw new IOException("Unexpected end of input."); |
| 82 | } |
| 83 | |
| 84 | String token = tokens.get(currentTokenIndex); |
| 85 | currentTokenIndex++; |
| 86 | return token; |
| 87 | } |
| 88 | |
| 89 | private void nextToken(String expectedToken) throws IOException { |
| 90 | if (currentTokenIndex >= tokens.size()) { |
no test coverage detected