sig
module Row :
sig
type item = [ `float of float | `int of int | `string of string ]
type t = item array
type item_type = [ `type_float | `type_int | `type_string ]
type t_type = item_type array
module Tags :
sig
type t =
[ `format of t_type
| `separator of char
| `strict_about of [ `cell_type | `row_length ] ] list
val separators : t -> char list
val strict_row_length : t -> bool
val strict_cell_type : t -> bool
val format : t -> t_type option
val default : t
val default_extension : t -> string
val to_string : t -> string
val of_string :
string ->
(t, [> `table_row of [> `tags_of_string of exn ] ])
Biocaml_internal_utils.Result.t
val t_of_sexp : Sexplib.Sexp.t -> t
val sexp_of_t : t -> Sexplib.Sexp.t
end
module Error :
sig
type line_parsing =
[ `wrong_format of
[ `column_number
| `float_of_string of string
| `int_of_string of string ] * t_type * string ]
type t = line_parsing
val line_parsing_of_sexp : Sexplib.Sexp.t -> line_parsing
val sexp_of_line_parsing : line_parsing -> Sexplib.Sexp.t
val t_of_sexp : Sexplib.Sexp.t -> t
val sexp_of_t : t -> Sexplib.Sexp.t
end
val of_line :
?separators:char list ->
?strict_row_length:bool ->
?strict_cell_type:bool ->
?format:t_type ->
Biocaml_internal_utils.Line.t ->
(t, [> Error.line_parsing ]) Biocaml_internal_utils.Result.t
val to_line : sep:string -> t -> Biocaml_internal_utils.Line.t
module Transform :
sig
val line_to_item :
?tags:Tags.t ->
unit ->
(Biocaml_lines.item,
(t, [> `table_row of Error.line_parsing ])
Biocaml_internal_utils.Result.t)
Biocaml_transform.t
val item_to_line :
?tags:Tags.t ->
unit -> (t, Biocaml_lines.item) Biocaml_transform.t
end
val item_of_sexp : Sexplib.Sexp.t -> item
val sexp_of_item : item -> Sexplib.Sexp.t
val t_of_sexp : Sexplib.Sexp.t -> t
val sexp_of_t : t -> Sexplib.Sexp.t
val item_type_of_sexp : Sexplib.Sexp.t -> item_type
val sexp_of_item_type : item_type -> Sexplib.Sexp.t
val t_type_of_sexp : Sexplib.Sexp.t -> t_type
val sexp_of_t_type : t_type -> Sexplib.Sexp.t
end
end