Example #1
0
        // [Statistics Table 0]
        // Char Classifications : 6
        // Char Ranges          : 15
        // States               : 5
        //   Terminal           : 1
        // Transition Table     : 23/30 (76.67%)
        //   Offsets            : 5
        //   Actions            : 18
        // Memory Footprint     : 116 bytes
        //   Boundries          : 30 bytes
        //   Classifications    : 30 bytes
        //   Transitions        : 46 bytes
        //   Token Types        : 10 bytes
        // Assembly Footprint   : 116 bytes (100.00%)

        // [Statistics Table 1]
        // Char Classifications : 19
        // Char Ranges          : 33
        // States               : 20
        //   Terminal           : 7
        // Transition Table     : 156/380 (41.05%)
        //   Offsets            : 20
        //   Actions            : 136
        // Memory Footprint     : 484 bytes
        //   Boundries          : 66 bytes
        //   Classifications    : 66 bytes
        //   Transitions        : 312 bytes
        //   Token Types        : 40 bytes
        // Assembly Footprint   : 362 bytes (74.79%)
        protected AutoScanner(string expressionString)
        {
            _cache            = TableCache.Get();
            _expressionString = expressionString;
            _currentState     = ScannerState.INITIAL;
            SetForState(ScannerState.INITIAL);
        }
Example #2
0
 // [Statistics]
 // Char Classifications : 17
 // Char Ranges          : 29
 // States               : 18
 //   Terminal           : 6
 // Transition Table     : 138/306 (45.10%)
 //   Offsets            : 18
 //   Actions            : 120
 // Memory Footprint     : 428 bytes
 //   Boundries          : 58 bytes
 //   Classifications    : 58 bytes
 //   Transitions        : 276 bytes
 //   Token Types        : 36 bytes
 // Assembly Footprint   : 330 bytes (77.10%)
 protected AutoScanner(string expressionString)
 {
     _cache = TableCache.Get();
     _charClassificationBoundries = _cache._charClassificationBoundries;
     _charClassification          = _cache._charClassification;
     _transitionTable             = _cache._transitionTable;
     _tokenTypes       = _cache._tokenTypes;
     _expressionString = expressionString;
 }
Example #3
0
 // [Statistics]
 // Char Classifications : 20
 // Char Ranges          : 35
 // States               : 23
 //   Terminal           : 8
 // Transition Table     : 193/460 (41.96%)
 //   Offsets            : 23
 //   Actions            : 170
 // Memory Footprint     : 572 bytes
 //   Boundries          : 70 bytes
 //   Classifications    : 70 bytes
 //   Transitions        : 386 bytes
 //   Token Types        : 46 bytes
 // Assembly Footprint   : 422 bytes (73.78%)
 protected AutoScanner(string expressionString)
 {
     _cache = TableCache.Get();
     _charClassificationBoundries = _cache._charClassificationBoundries;
     _charClassification          = _cache._charClassification;
     _transitionTable             = _cache._transitionTable;
     _tokenTypes       = _cache._tokenTypes;
     _expressionString = expressionString;
     _currentState     = ScannerState.INITIAL;
     SetForState(ScannerState.INITIAL);
 }