Lines Matching full:state
58 public Lexer( ICharStream input, RecognizerSharedState state )
59 : base(state)
70 if ( state.text != null )
72 return state.text;
74 return input.Substring( state.tokenStartCharIndex, CharIndex - state.tokenStartCharIndex );
79 state.text = value;
108 base.Reset(); // reset all recognizer state variables
109 // wack Lexer state variables
114 if ( state == null )
116 return; // no shared state work to do
118 state.token = null;
119 state.type = TokenTypes.Invalid;
120 state.channel = TokenChannels.Default;
121 state.tokenStartCharIndex = -1;
122 state.tokenStartCharPositionInLine = -1;
123 state.tokenStartLine = -1;
124 state.text = null;
132 state.token = null;
133 state.channel = TokenChannels.Default;
134 state.tokenStartCharIndex = input.Index;
135 state.tokenStartCharPositionInLine = input.CharPositionInLine;
136 state.tokenStartLine = input.Line;
137 state.text = null;
148 if ( state.token == null )
152 else if ( state.token == Tokens.Skip )
156 return state.token;
186 state.token = Tokens.Skip;
224 state.token = token;
242 IToken t = new CommonToken( input, state.type, state.channel, state.tokenStartCharIndex, CharIndex - 1 );
243 t.Line = state.tokenStartLine;
244 t.Text = state.text;
245 t.CharPositionInLine = state.tokenStartCharPositionInLine;
257 if ( state.backtracking > 0 )
259 state.failed = true;
268 state.failed = false;
281 if ( state.backtracking > 0 )
283 state.failed = true;
291 state.failed = false;
298 if ( state.backtracking > 0 )
300 state.failed = true;
308 state.failed = false;
349 // "state "+nvae.stateNumber