eval_function status is cb
with
| MatitaEngine.Drop
+ | End_of_file
| CicNotationParser.Parse_error _ as exn -> raise exn
| exn ->
MatitaLog.error (MatitaExcPp.to_string exn);
| MatitaEngine.Drop -> pp_ocaml_mode ()
| Sys.Break -> MatitaLog.error "user break!"; interactive_loop ()
| MatitaTypes.Command_error _ -> interactive_loop ()
+ | End_of_file ->
+ print_newline ();
+ clean_exit (Some 0)
| CicNotationParser.Parse_error (floc,err) ->
- (* check for EOI *)
- if Stream.peek str = None then
- begin
- print_newline ();
- clean_exit (Some 0)
- end
- else
- let (x, y) = CicNotationPt.loc_of_floc floc in
- MatitaLog.error (sprintf "Parse error at %d-%d: %s" x y err);
- interactive_loop ()
+ let (x, y) = CicNotationPt.loc_of_floc floc in
+ MatitaLog.error (sprintf "Parse error at %d-%d: %s" x y err);
+ interactive_loop ()
| exn -> MatitaLog.error (Printexc.to_string exn); interactive_loop ()
let go () =