Lines Matching defs:input
54 * problem occurred and/or what was the expected input. While the parser
55 * knows its state (such as current input symbol and line info) that
58 * perhaps print an entire line of input not just a single token, for example.
63 /** What input stream did the error occur in? */
64 public transient IntStream input;
102 public RecognitionException(IntStream input) {
103 this.input = input;
104 this.index = input.index();
105 if ( input instanceof TokenStream ) {
106 this.token = ((TokenStream)input).LT(1);
110 if ( input instanceof TreeNodeStream ) {
111 extractInformationFromTreeNodeStream(input);
113 else if ( input instanceof CharStream ) {
114 this.c = input.LA(1);
115 this.line = ((CharStream)input).getLine();
116 this.charPositionInLine = ((CharStream)input).getCharPositionInLine();
119 this.c = input.LA(1);
123 protected void extractInformationFromTreeNodeStream(IntStream input) {
124 TreeNodeStream nodes = (TreeNodeStream)input;
166 /** Return the token type or char of the unexpected input element */
168 if ( input instanceof TokenStream ) {
171 else if ( input instanceof TreeNodeStream ) {
172 TreeNodeStream nodes = (TreeNodeStream)input;