public static IEnumerable<Token> Scan(string source) { var se = new SymbolsEnumerator(source); var result = new Scanner(se).Scan(); se.Dispose(); return result; }
public void Initialization() { Assert.Throws<InvalidOperationException>(() => { var s = new SymbolsEnumerator("Elemar"); var c = s.Current; s.Dispose(); }); }