Module Kaitai.Parse

exception Error of string
val empty_doc : Types.DocSpec.t
val mapping : [> `O of 'a ] -> 'b
val scalar : [> `Scalar of Yaml.scalar ] -> string
val bool : [> `Scalar of Yaml.scalar ] -> bool
val sequence : [> `A of Yaml.sequence ] -> Yaml.yaml list
val find_key_opt : Yaml.mapping -> Stdlib.String.t -> Yaml.yaml option
val find_key : Yaml.mapping -> Stdlib.String.t -> Yaml.yaml
val keys : Yaml.mapping -> (string -> Yaml.yaml -> 'a) -> 'b list
val doc : Yaml.mapping -> Types.DocSpec.t
val expression : [> `Scalar of Yaml.scalar ] -> Types.Ast.t
val dataType : [> `Scalar of Yaml.scalar ] -> 'a -> Types.DataType.t
val seq : [> `O of Yaml.mapping ] -> Types.AttrSpec.t
val instanceSpec : string -> [> `O of Yaml.mapping ] -> Types.InstanceSpec.t
val enumValueSpec : [> `O of Yaml.mapping | `Scalar of Yaml.scalar ] -> Types.EnumValueSpec.t
val enumSpec : [> `O of Yaml.mapping ] -> Types.EnumSpec.t
val endian : [> `Scalar of Yaml.scalar ] -> [> `BE | `LE ]
val bitendian : [> `Scalar of Yaml.scalar ] -> Types.BitEndianness.t
val meta : [> `O of Yaml.mapping ] -> Types.MetaSpec.t
val classSpec : string option -> Yaml.yaml -> Types.ClassSpec.t
val parse : ?file:string -> string -> Types.ClassSpec.t