Lines Matching defs:token
40 * exceptions are built with the expected token type.
57 * state can change before the exception is reported so current token index
59 * perhaps print an entire line of input not just a single token, for example.
67 /** What is index of token/char were we looking at when the error occurred? */
72 * For parsers. Even when it's a tree parser, token might be set.
74 public var token:Token;
94 * for most recent token with line/col info, but notify getErrorHeader()
106 this.token = TokenStream(input).LT(1);
107 this.line = token.line;
108 this.charPositionInLine = token.charPositionInLine;
129 this.token = payload;
147 else { // node created from real token
156 this.token = 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.type;