package goblint

  1. Overview
  2. Docs
Static analysis framework for C

Install

Dune Dependency

Authors

Maintainers

Sources

goblint-2.1.0.tbz
sha256=bfc412ec2e447eaef6f4f83892e3511ebf305593cb00561c1406be3ae8bf48e9
sha512=5f2a162e5f36bffafc9836b0d18b5b2808cecfa6bf68f83bb7d1e8b9947ac74cf07776eb09274b4b29d55c897a45a10768f0d9ed25810cf6ba2409c525e4cd4d

doc/goblint.lib/Goblint_lib/GobYaml/index.html

Module Goblint_lib.GobYaml

include module type of struct include Yaml.Util end
exception Value_error of string

An exception raised when the wrong type of yaml value is passed to a utility function.

val keys : Yaml.value -> string list Yaml.res

keys 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 list

keys_exn obj is the same as keys except it raises an exception.

val values : Yaml.value -> Yaml.value list Yaml.res

values 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 list

values_exn obj is the same as values except it raises an exception.

combine 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.value

combines_exn a b is the same as combines except it raises an exception.

val find_exn : string -> Yaml.value -> Yaml.value option

find_exn s obj is the same as find except it raises an exception.

map 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.value

map_exn f obj is the same as map except it raises an exception.

val filter : (Yaml.value -> bool) -> Yaml.value -> Yaml.value Yaml.res

filter 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.value

filter_exn p obj is the same as filter except it raises an exception.

val to_string : Yaml.value -> string Yaml.res

to_string v tries to convert v to a string if the underlying value is a string.

val to_string_exn : Yaml.value -> string

to_string_exn v is the same as to_string except it raises an exception.

val to_bool : Yaml.value -> bool Yaml.res

to_bool v tries to convert v to a boolean if the underlying value is a boolean.

val to_bool_exn : Yaml.value -> bool

to_bool_exn v is the same as to_bool except it raises an exception.

val to_float : Yaml.value -> float Yaml.res

to_float v tries to convert v to a float if the underlying value is a float.

val to_float_exn : Yaml.value -> float

to_float_exn v is the same as to_float except it raises an exception.

val string : string -> Yaml.value

Make a value from a string.

val bool : bool -> Yaml.value

Make a value from a boolean.

val float : float -> Yaml.value

Make a value from a float.

val obj : (string * Yaml.value) list -> Yaml.value

Make a value from an association list.

include module type of struct include GobResult.Syntax end
val (let+) : ('a, 'b) result -> ('a -> 'c) -> ('c, 'b) result
val (and+) : ('a, 'b) result -> ('c, 'b) result -> ('a * 'c, 'b) result
val (let*) : ('a, 'b) result -> ('a -> ('c, 'b) result) -> ('c, 'b) result
val (and*) : ('a, 'b) result -> ('c, 'b) result -> ('a * 'c, 'b) result
val (>>=) : ('a, 'b) result -> ('a -> ('c, 'b) result) -> ('c, 'b) result
val option_map : ('a -> ('b, 'e) result) -> 'a option -> ('b option, 'e) result
val list_map : ('a -> ('b, 'e) result) -> 'a list -> ('b list, 'e) result
val find : string -> Yaml.value -> (Yaml.value, [> `Msg of string ]) result
val to_int : Yaml.value -> (int, [ `Msg of string ]) result
val list : [> `A of 'a ] -> ('a, [> `Msg of string ]) result
val entries : [> `O of 'a ] -> ('a, [> `Msg of string ]) result
OCaml

Innovation. Community. Security.