Click or drag to resize

ICharStream Interface

Represents base interface for stream of Unicode characters.

Namespace:  Syntactik.IO
Assembly:  Syntactik (in Syntactik.dll) Version: 0.3.0-beta1
Syntax
C#
public interface ICharStream

The ICharStream type exposes the following members.

Properties
  NameDescription
Public propertyColumn
Number of consumed character since property Line changed the value. 0 if no characters has been consumed in the current line.
Public propertyIndex
Index of the last consumed character. -1 if input is in the initial state.
Public propertyLength
Total number of symbols in the stream.
Public propertyLine
Current line. Starts from 1.
Public propertyNext
Current character. Next symbol to be consumed.
Top
Methods
  NameDescription
Public methodConsume
Consumes one character.
Public methodLa
Implements look-ahead logic that allows to read characters without changing the current position of the stream.
Public methodReset
Initializes/resets state of the stream.
Top
See Also