File positions.
module Biocaml_pos:
sig
type
t = private {
|
file : |
(* | file name | *) |
|
line : |
(* | line number | *) |
|
col : |
(* | column number, can be defined only if line number is too | *) |
exception Bad of string
exception Undefined
val flc : string -> int -> int -> t
f
stands for file name, l
for
line number, and c
for column number. The arguments required
correspond to the function name. There is no fc
nor c
function
because a line number is required when a column number is given.val col_exn : t -> int
Biocaml_pos.Undefined
if given position does not have requested information.val set_col : t -> int -> t
Bad
if
resulting t
would be ill-formed.val to_string : t -> string
include Core.Sexpable.S
end