Example #1
0
 /// <summary>
 /// Creates a new scanner
 /// </summary>
 /// <param name="source">The file to read the characters from</param>
 public Scanner(SourceFile source)
 {
     this.source     = source;
     currentSpelling = new StringBuilder();
 }
Example #2
0
 public Scanner(SourceFile source)
 {
     _source = source;
     _source.Reset();
     _currentSpelling = new StringBuilder();
 }
Example #3
0
 /// <summary>
 /// Creates a new scanner
 /// </summary>
 /// <param name="source">The file to read the characters from</param>
 public Scanner(SourceFile _source)
 {
     source = _source;
     source.Reset();
     currentSpelling = new StringBuilder();
 }