X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=src%2Fasta.mli;h=190f97920d6894347a87e38fbc2a370aaa983141;hb=c1b43e1dcdb3d0960dbc50db9f226d68ad30c16e;hp=6f592fbaa4f9121e0280b1c4c9e9105ee1621510;hpb=91c3b3585a018dd5f98949e4838ef3d6c5c120fc;p=tatoo.git diff --git a/src/asta.mli b/src/asta.mli index 6f592fb..190f979 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,8 +34,13 @@ 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 -(** Give the list of labels and formulae from transitions for a given state *) +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 empty : t (** The empty automaton *) @@ -46,8 +51,8 @@ val any_label : label val new_state : unit -> state (** Give a new state (different from all others states) *) -val add_tr : t -> transition -> unit -(** Add a transition to an asta *) +val add_tr : t -> transition -> bool -> unit +(** Add a query transition (recognizing transition if flag=false) to an asta *) val add_reco : t -> state -> unit (** Add a state to the recognizing states of an asta *) @@ -71,7 +76,7 @@ val top_states : t -> state list (** Give the list of top 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 *)