let mode = ref default_mode
+(* let pp_tactical = TacticAstPp.pp_tactical *)
+
+let pp_tactical = TacticAst2Box.tacticalPp
+
+
let _ =
try
match Sys.argv.(1) with
print_endline (TacticAstPp.pp_tactic term)
| `Tactical ->
let term = CicTextualParser2.parse_tactical istream in
- print_endline (TacticAstPp.pp_tactical term)
+ print_endline (pp_tactical term)
| `Alias ->
let env = CicTextualParser2.EnvironmentP3.of_string line in
print_endline (CicTextualParser2.EnvironmentP3.to_string env));
flush stdout
with
+ | CicTextualParser2.Parse_error msg -> prerr_endline msg
+(*
| Stdpp.Exc_located ((p_start, p_end), exn) ->
prerr_endline (Printf.sprintf "Exception at character %d-%d: %s"
p_start p_end (Printexc.to_string exn))
+*)
done
with End_of_file ->
close_in ic