Click or drag to resize

CharStreamState Class

When walking ahead with cyclic DFA or for syntactic predicates, we need to record the state of the input stream (char index, line, etc...) so that we can rewind the state after scanning ahead.
Inheritance Hierarchy
SystemObject
  Stimulsoft.Data.Expressions.Antlr.RuntimeCharStreamState

Namespace:  Stimulsoft.Data.Expressions.Antlr.Runtime
Assembly:  Stimulsoft.Data (in Stimulsoft.Data.dll) Version: 2019.3.1.0
Syntax
[SerializableAttribute]
public class CharStreamState

The CharStreamState type exposes the following members.

Constructors
  NameDescription
Public methodCharStreamState
Initializes a new instance of the CharStreamState class
Top
Methods
  NameDescription
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 methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldcharPositionInLine
What char position 0..n-1 in line is scanner before processing buffer[p]?
Public fieldline
What line number is the scanner at before processing buffer[p]?
Public fieldp
Index into the char stream of next lookahead char
Top
Remarks
This is the complete state of a stream.
See Also