Exemple #1
0
 private Scanner(string content, ScannerOptions options)
 {
     _enumerator = new CharEnumerator(content);
     _options    = options;
     _states     = new Stack <int>();
     _lexeme     = new StringBuilder();
 }
Exemple #2
0
        public static TokenEnumerable Scan(string content, ScannerOptions options)
        {
            var scanner = new Scanner(content, options);

            return(new TokenEnumerable(scanner));
        }