Dynamic values
#
| Unit
| (* | unit | *) |
#
| Int of int64
| (* | integers | *) |
#
| Bool of bool
| (* | booleans | *) |
#
| Float of float
| (* | floating-points numbers | *) |
#
| String of string
| (* | strings | *) |
(* | collection of values of the same type (as lists or arrays) | *) | |
(* | Cartesian product | *) | |
(* | records or objects | *) | |
(* | variants | *) | |
#
| Null
| (* | empty value for option type | *) |
(* | values for option type | *) | |
#
| Arrow of string
| (* | arrows; value is marshaled using Marshal.to_string | *) |
(* | Recursive value (i.e. cyclic values) | *) | |
#
| Var of (string * int64)
| (* | Fix-point variable for recursive value | *) |
(* | values for type variables | *) |
free_vars v
returns the free variables inside v
. If v
is obtained using value_of_t
then this
list should be empty
of_string str
returns the value which had been pretty-printed to str
. Raises Parse_error if str
has
not a valid format.