module Cudf_parser:Parser for CUDF related documentssig
..end
type
cudf_parser
val from_in_channel : Pervasives.in_channel -> cudf_parser
val close : cudf_parser -> unit
exception Parse_error of int * string
"parse_*" functions offer plain syntax parsing, with no semantic
interpretation of what is being parsed. "load_*" functions offer
the latter, hence also checking for semantic constraints (such as
the lack of key duplication).
val parse : cudf_parser -> Cudf.package list * Cudf.request option
packages, Some req
if a complete CUDF (i.e., with
a request part) is found, otherwise return a pair package, None
if the request part is missing. Note that a document with no
request part is not a valid CUDF document.val load : cudf_parser -> Cudf.universe * Cudf.request option
val parse_from_file : string -> Cudf.package list * Cudf.request option
val load_from_file : string -> Cudf.universe * Cudf.request option
val parse_item : cudf_parser ->
[ `Package of Cudf.package | `Request of Cudf.request ]
val parse_stanza : cudf_parser -> (string * string) list