class['i]cursor :int ->object..end
A class useful for tracking the position in the input token stream that
corresponds to the head of the sequence passed to a parser. The #cursor
class type is used in the X module defined below.
val position_ : intThe initial position, i.e. usually zero
The current position
method advance : 'i -> 'i #cursorUse c#advance i to construct a new object corresponding to the
new input position after reading an input symbol i.
method position : intReturns the current position.