Module Sgf
Types
type pvalue=|Empty|Number of int|Real of float|Normal|Emph|Black|White|Text of string|Point of char * char|Move of (char * char) option|Compose of pvalue * pvaluetype pvalues=|One of pvalue|List of pvalue listtype property= string * pvaluestype node= property listtype sequence= node listtype gametree=|Node of sequence * gametree list|Leaf of sequencetype collection= gametree listtype err=|Lexing_error of Stdlib.Lexing.position * string|Parsing_error of Stdlib.Lexing.position
Parsing
val of_string : string -> (collection, err) Rresult.resultval of_channel : Stdlib.in_channel -> (collection, err) Rresult.resultval of_file : string -> (collection, err) Rresult.result
Printing
val pp_property : Stdlib.Format.formatter -> property -> unitval pp_node : Stdlib.Format.formatter -> node -> unitval pp_sequence : Stdlib.Format.formatter -> sequence -> unitval pp_gametree : Stdlib.Format.formatter -> gametree -> unitval pp_collection : Stdlib.Format.formatter -> collection -> unit