(String s)
| 69 | } |
| 70 | |
| 71 | public void expect(String s) throws SyntaxError { |
| 72 | eatws(); |
| 73 | int slen = s.length(); |
| 74 | if (val.regionMatches(pos, s, 0, slen)) { |
| 75 | pos += slen; |
| 76 | } else { |
| 77 | throw new SyntaxError("Expected '" + s + "' at position " + pos + " in '" + val + "'"); |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | public float getFloat() { |
| 82 | eatws(); |
no test coverage detected