Module Eval
Term evaluator
- author
- Christoph Sticksel
type value=|ValBool of bool|ValNum of Numeral.t|ValDec of Decimal.t|ValTerm of Term.tType of value of a term
val pp_print_value : Stdlib.Format.formatter -> value -> unitval bool_of_value : value -> boolCast a value to a Boolean, raise
Invalid_argumentif value is not a Boolean
val num_of_value : value -> Numeral.tCast a value to an integer, raise
Invalid_argumentif value is not an integer
val dec_of_value : value -> Decimal.tCast a value to a float, raise
Invalid_argumentif value is not a float
val term_of_value : value -> Term.tCast a value to a term, raise
Invalid_argumentif value is unknown
val value_is_unknown : value -> boolCheck if the value is unknown