Consume if x is next character on the input stream.
(char x)
| 204 | */ |
| 205 | |
| 206 | public void match(char x) { |
| 207 | if ( c!= x ) { |
| 208 | NoViableAltException e = new NoViableAltException("", 0, 0, input); |
| 209 | errMgr.lexerError(input.getSourceName(), "expecting '"+x+"', found '"+str(c)+"'", templateToken, e); |
| 210 | } |
| 211 | consume(); |
| 212 | } |
| 213 | |
| 214 | protected void consume() { |
| 215 | input.consume(); |