Click or drag to resize

InputStream Class

Implementation of ICharStream that takes input symbols from String.
Inheritance Hierarchy
SystemObject
  Syntactik.IOInputStream

Namespace:  Syntactik.IO
Assembly:  Syntactik (in Syntactik.dll) Version: 0.3.0-beta1
Syntax
C#
public class InputStream : ICharStream, 
	ITextSource, IDisposable

The InputStream type exposes the following members.

Constructors
  NameDescription
Public methodInputStream(String)
Creates instance of the class.
Public methodInputStream(String, Int32)
Creates instance of the class.
Top
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 methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetChar
Returns a character.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetText
Returns a string.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLa
Returns character from the stream without consuming it.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodReset
Initializes/resets state of the stream.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also