Пример #1
0
        public virtual CommonToken Scan(string startRule,
                                        IList <NFAState> visitedStates)
        {
            LexerActionGetTokenType actions = new LexerActionGetTokenType(this, grammar);

            Scan(startRule, actions, visitedStates);
            return(actions.token);
        }
Пример #2
0
 public virtual CommonToken Scan( String startRule,
                         IList visitedStates )
 {
     LexerActionGetTokenType actions = new LexerActionGetTokenType( this, grammar );
     Scan( startRule, actions, visitedStates );
     return actions.token;
 }