X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=src%2Fasta.mli;h=3fd98866fda59723cae6cda15afa203933eded4e;hb=5e7268fb95cdc7e56fe24f324a710550ade3d851;hp=3f25edc981d11a9457e32af3506b28e65947b2d5;hpb=7f20d23e406e81e6e7271d2621cb868d9fe63aae;p=tatoo.git diff --git a/src/asta.mli b/src/asta.mli index 3f25edc..3fd9886 100644 --- a/src/asta.mli +++ b/src/asta.mli @@ -2,8 +2,8 @@ (* *) (* TAToo *) (* *) -(* Lucca Hirschi, ? *) -(* ? *) +(* Lucca Hirschi, LRI UMR8623 *) +(* Université Paris-Sud & CNRS *) (* *) (* Copyright 2010-2012 Université Paris-Sud and Centre National de la *) (* Recherche Scientifique. All rights reserved. This file is *) @@ -34,10 +34,18 @@ type t val transition : t -> state -> label -> formula (** Give the formula which must hold for a current state and label *) -val transitions : t -> state -> ((label*formula) list)*((label*formula) list) +val transitions : t -> state -> (label*formula) list * (label*formula) list (** Give the list of labels and formulae from queries and recognizing transitions for a given state *) +val transitions_lab : t -> QName.t -> (state*formula) list *(state*formula) list +(** Give the list of states and formulae from queries and recognizing + transitions for a given tag *) + +val transitions_st_lab : t -> state -> QName.t -> formula list * formula list +(** Give the list of formulae from queries and recognizing transitions for a + given state and tag *) + val empty : t (** The empty automaton *) @@ -71,8 +79,17 @@ val init_top : t -> unit val top_states : t -> state list (** Give the list of top states of an ASTA *) +val top_states_s : t -> StateSet.t +(** Give the set of top states of an ASTA *) + +val bot_states_s : t -> StateSet.t +(** Give the set of bottom states of an ASTA *) + +val selec_states : t -> StateSet.t +(** Give the list of selecting states of an ASTA *) + val print : Format.formatter -> t -> unit -(** Describe the automaton as text *) +(** Pretty printer *) val to_file : out_channel -> t -> unit (** Outputs the description of the automaton on the given out_channel *)