class cursor :?c:counter -> string ->object..end
A class derived from Cf_parser.cursor that intercepts newline characters
to track the row and column of a cursor position. Use new cursor ~c s to
construct an initial cursor position, optionally with the counter c
(default: counter_zero), and a string s containing the character
sequence that is recognized as a newline, e.g. "\013\010" indicates that
newline is a CR LF sequence.
val row_ : intThe current row number
val col_ : intThe current column number
val nl0_ : char listThe newline sequence as a char list.
val nlz_ : char listThe current tail of the newline.
method private next : char -> int * int * char listself#next c is called in the advance method to return a new
values for the row_, col_ and nlz_ members.
method counter : counterReturns a new counter object containing the row, column and index of the current cursor position.
method row : intReturns the row_ member.
method col : intReturns the col_ member.