Lines Matching defs:token
39 * exceptions are built with the expected token type.
56 * state can change before the exception is reported so current token index
58 * perhaps print an entire line of input not just a single token, for example.
66 /** What is index of token/char were we looking at when the error occurred? */
71 * For parsers. Even when it's a tree parser, token might be set.
73 public Token token;
93 * for most recent token with line/col info, but notify getErrorHeader()
106 this.token = ((TokenStream)input).LT(1);
107 this.line = token.getLine();
108 this.charPositionInLine = token.getCharPositionInLine();
129 this.token = payload;
147 else { // node created from real token
156 this.token = ((CommonTree)this.node).token;
162 this.token = new CommonToken(type, text);
166 /** Return the token type or char of the unexpected input element */
169 return token.getType();