package goblint
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=2f4f2e25b765452f0e336941f35f6cb396d7c213a2d347abe5d35febc5159b1f
sha512=e96af4cad91f6985c8db93c194925853e96cad0ec1a0d9f4d32bbe16d3e5fa1e305f54be02839f21ba89ad2af0c2d5d7aa819ade221ce097dc4dbd0fcd8c8500
doc/goblint.lib/Goblint_lib/GobYaml/index.html
Module Goblint_lib.GobYaml
include module type of struct include Yaml.Util end
An exception raised when the wrong type of yaml value is passed to a utility function.
val keys : Yaml.value -> string list Yaml.reskeys obj returns the keys of the object value or an error if the wrong type of value is given as an argument.
val keys_exn : Yaml.value -> string listkeys_exn obj is the same as keys except it raises an exception.
val values : Yaml.value -> Yaml.value list Yaml.resvalues obj returns the values of the object value or an error if the wrong type of value is given as an argument.
val values_exn : Yaml.value -> Yaml.value listvalues_exn obj is the same as values except it raises an exception.
val combine : Yaml.value -> Yaml.value -> Yaml.value Yaml.rescombine a b combines the key-value pairs of the two objects or returns an error if the wrong type of value is given as an argument.
val combine_exn : Yaml.value -> Yaml.value -> Yaml.valuecombines_exn a b is the same as combines except it raises an exception.
val find_exn : string -> Yaml.value -> Yaml.value optionfind_exn s obj is the same as find except it raises an exception.
val map : (Yaml.value -> Yaml.value) -> Yaml.value -> Yaml.value Yaml.resmap f arr applies f to every value in arr, an error is retured if the wrong type of value is given.
val map_exn : (Yaml.value -> Yaml.value) -> Yaml.value -> Yaml.valuemap_exn f obj is the same as map except it raises an exception.
val filter : (Yaml.value -> bool) -> Yaml.value -> Yaml.value Yaml.resfilter f arr filters out values in arr using f, an error is retured if the wrong type of value is given.
val filter_exn : (Yaml.value -> bool) -> Yaml.value -> Yaml.valuefilter_exn p obj is the same as filter except it raises an exception.
val to_string : Yaml.value -> string Yaml.resto_string v tries to convert v to a string if the underlying value is a string.
val to_string_exn : Yaml.value -> stringto_string_exn v is the same as to_string except it raises an exception.
val to_bool : Yaml.value -> bool Yaml.resto_bool v tries to convert v to a boolean if the underlying value is a boolean.
val to_bool_exn : Yaml.value -> boolto_bool_exn v is the same as to_bool except it raises an exception.
val to_float : Yaml.value -> float Yaml.resto_float v tries to convert v to a float if the underlying value is a float.
val to_float_exn : Yaml.value -> floatto_float_exn v is the same as to_float except it raises an exception.
val string : string -> Yaml.valueMake a value from a string.
val bool : bool -> Yaml.valueMake a value from a boolean.
val float : float -> Yaml.valueMake a value from a float.
val obj : (string * Yaml.value) list -> Yaml.valueMake a value from an association list.
val find : string -> Yaml.value -> (Yaml.value, [> `Msg of string ]) resultval to_int : Yaml.value -> (int, [ `Msg of string ]) resultval list : [> `A of 'a ] -> ('a, [> `Msg of string ]) resultval entries : [> `O of 'a ] -> ('a, [> `Msg of string ]) result