Packageorg.antlr.runtime
Classpublic class CharStreamState

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. This is the complete state of a stream.



Public Properties
 PropertyDefined by
  charPositionInLine : int
What char position 0..n-1 in line is scanner before processing buffer[p]?
CharStreamState
  line : int
What line number is the scanner at before processing buffer[p]?
CharStreamState
  p : int
Index into the char stream of next lookahead char
CharStreamState
Property detail
charPositionInLineproperty
public var charPositionInLine:int

What char position 0..n-1 in line is scanner before processing buffer[p]?

lineproperty 
public var line:int

What line number is the scanner at before processing buffer[p]?

pproperty 
public var p:int

Index into the char stream of next lookahead char