Module Path_glob.Formula
type 'a t
=
|
And of 'a t list
|
Or of 'a t list
|
Not of 'a t
|
Atom of 'a
|
True
|
False
Public type for generic propositional formulas. An empty conjunction
And[]
is true and an empty disjunctionOr[]
is false.
val eval : ('a -> bool) -> 'a t -> bool
eval g f
evaluates the formulaf
using the values returned byg
for the atoms.
val iter : ('a -> unit) -> 'a t -> unit
iter g f
callsg
over every atom off
.