X-Git-Url: http://git.nguyen.vg/gitweb/?p=tatoo.git;a=blobdiff_plain;f=src%2Fformula.mli;h=04b36622949e4f0442179ae62f280e7609d8c475;hp=9b2659f310575a5f1cb0b5b967c57057b3fcb472;hb=c951f1d4b8f4264acb0b5910dc544ad3a6ceebab;hpb=cb29d45b3a79233581292a2ef172151b1ff489cb diff --git a/src/formula.mli b/src/formula.mli index 9b2659f..04b3662 100644 --- a/src/formula.mli +++ b/src/formula.mli @@ -15,7 +15,8 @@ (** Implementation of hashconsed Boolean formulae *) -type move = [ `Left |`Right ] +type move = [ `Left | `Right | `Epsilon | `Up1 | `Up2 ] + (** Direction for automata predicates *) type 'formula expr = @@ -23,8 +24,7 @@ type 'formula expr = | True | Or of 'formula * 'formula | And of 'formula * 'formula - | Move of (move * bool * State.t) - | Label of QNameSet.t + | Move of move * bool * State.t (** View of the internal representation of a formula, used for pattern matching *) @@ -52,9 +52,6 @@ val expr : t -> t expr val compare : t -> t -> int (** Comparison of formulae *) -val size : t -> int -(** Syntactic size of the formula *) - val print : Format.formatter -> t -> unit (** Pretty printer *) @@ -82,14 +79,3 @@ val and_ : t -> t -> t val of_bool : bool -> t (** Convert an ocaml Boolean value to a formula *) - -module Infix : sig - val ( +| ) : t -> t -> t - val ( *& ) : t -> t -> t - val ( *+ ) : move -> StateSet.elt -> t - val ( *- ) : move -> StateSet.elt -> t -end -(** Module to facilitate infix notations of formulae. - Just [open Formla.Infix] and write: - [let f = `Left *+ q1 +| `Right *+ q2 in ...] -*)