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