Ejemplo n.º 1
0
		public SimpleKey(bool isPossible, bool isRequired, int tokenNumber, Cursor cursor)
		{
			IsPossible = isPossible;
			IsRequired = isRequired;
			TokenNumber = tokenNumber;
			this.cursor = new Cursor(cursor);
		}
Ejemplo n.º 2
0
		public Cursor(Cursor cursor)
		{
			Index = cursor.Index;
			Line = cursor.Line;
			LineOffset = cursor.LineOffset;
		}
Ejemplo n.º 3
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;
		}
Ejemplo n.º 4
0
		public SimpleKey()
		{
			cursor = new Cursor();
		}