Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Represent a position in a text file.
val start : t
Position with points to the start of a textfile.
val line : t -> int
line pos
The line number corresponding to the position p
. Note: The first line is line 0.
val column : t -> int
column pos
The column number corresponding to the position p
. Note: The first column is column 0.
next next_char pos
: Advance the position by using the next character. If the next character is a newline, then the line number is increment and the column number is reset to 0.