(* *)
(* TAToo *)
(* *)
-(* ? *)
+(* Lucca Hirschi, ? *)
(* ? *)
(* *)
(* Copyright 2010-2012 Université Paris-Sud and Centre National de la *)
let st (st,la,f) = st
let la (st,la,f) = la
let fo (st,la,f) = f
+ let print fmt (st,la,f) =
+ Format.fprintf fmt "(%a,%s,%a)"
+ State.print st
+ "TODO la"
+ Formula.print f
end
module SetT =
end
type t = {
- reco : StateSet.t;
- selec : StateSet.t;
- bottom : StateSet.t;
- top : StateSet.t;
- trans : SetT.t;
+ mutable reco : StateSet.t;
+ mutable selec : StateSet.t;
+ mutable bottom : StateSet.t;
+ mutable top : StateSet.t;
+ mutable trans : SetT.t;
}
exception Not_found_transition
| (a,s,l) :: tl -> (s,l) :: (remove_states tl) in
remove_states (SetT.elements (SetT.filter filter asta.trans))
-let print fmt asta = ()
+
+let print fmt asta =
+ let pp = Format.fprintf fmt in
+ pp "Recognizing states: ";
+ StateSet.print fmt asta.reco;
+ pp "\nSelecting states: ";
+ StateSet.print fmt asta.selec;
+ pp "\nBottom states: ";
+ StateSet.print fmt asta.bottom;
+ pp "\nTop states: ";
+ StateSet.print fmt asta.top;
+ pp "\nTransitions: \n";
+ Format.fprintf fmt "{@[<hov n> %a @]}" (* todo: check boxes *)
+ (Pretty.print_list ~sep:"@, " (Transition.print))
+ (SetT.elements (asta.trans))
+
let to_file out asta = ()