Esempio n. 1
0
        protected virtual AutoScanner <TToken> NewScanner()
        {
            AutoScanner <TToken> result = (AutoScanner <TToken>)MemberwiseClone();

            result._solIndicies      = new List <int>();
            result._currentToken     = null;
            result._nextCharPosition = 0;
            return(result);
        }
Esempio n. 2
0
        protected AutoScanner(AutoScanner <TToken> source)
        {
            _charClassificationBoundries_0 = source._charClassificationBoundries_0;
            _charClassification_0          = source._charClassification_0;
            _transitionTable_0             = source._transitionTable_0;
            _tokenTypes_0 = source._tokenTypes_0;

            _charClassificationBoundries_1 = source._charClassificationBoundries_1;
            _charClassification_1          = source._charClassification_1;
            _transitionTable_1             = source._transitionTable_1;
            _tokenTypes_1 = source._tokenTypes_1;

            _expressionString = source._expressionString;
            _currentState     = ScannerState.INITIAL;
            SetForState(ScannerState.INITIAL);
        }