Exemple #1
0
 public Cursor(Cursor cursor)
 {
     Index = cursor.Index;
     Line = cursor.Line;
     LineOffset = cursor.LineOffset;
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Scanner"/> class.
 /// </summary>
 /// <param name="input">The input.</param>
 /// <param name="skipComments">Indicates whether comments should be ignored</param>
 public Scanner(TextReader input, bool skipComments = true)
 {
     analyzer = new CharacterAnalyzer<LookAheadBuffer>(new LookAheadBuffer(input, MaxBufferLength));
     cursor = new Cursor();
     SkipComments = skipComments;
 }