Module Single_and_positions.State
val create : ?pos:Positions.pos -> unit -> tCreate a new parser state.
posis the initial position, it defaults to{line=1;col=0;offset=0}.
val reset : ?pos:Positions.pos -> t -> unitReset the given parsing state. The following always succeed:
reset t ?pos; assert (t = create ?pos ())
val offset : t -> intNumber of characters fed to the parser
val line : t -> intPosition in the text
val column : t -> intval position : t -> Positions.posval stop : t -> unitPrevent the state from receiving any more characters. Trying to feed more characters will result in an exception, unless the state is reset.