let eval_ast ~include_paths ?do_heavy_checks status (text,prefix_len,ast) =
let baseuri = status#baseuri in
+ (*
let new_aliases,new_status =
GrafiteDisambiguate.eval_with_new_aliases status
(fun status ->
GrafiteEngine.eval_ast ~include_paths ?do_heavy_checks status
(text,prefix_len,ast)) in
+ *)
+ let new_status =
+ GrafiteEngine.eval_ast ~include_paths ?do_heavy_checks status
+ (text,prefix_len,ast) in
+ (*
let _,intermediate_states =
List.fold_left
(fun (status,acc) (k,value) ->
) (status,[]) new_aliases (* WARNING: this must be the old status! *)
in
(new_status,None)::intermediate_states
+ *)
+ [new_status,None]
;;
let baseuri_of_script ~include_paths fname =
HLog.message
(sprintf "execution of %s completed in %s." fname (hou^min^sec));
pp_times fname true big_bang big_bang_u big_bang_s;
+ (* XXX: update script -- currently to stdout *)
+ let origbuf = Ulexing.from_utf8_channel (open_in fname) in
+ let outfile = open_out (fname ^ ".mad") in
+ let interpr = GrafiteDisambiguate.get_interpr status#disambiguate_db in
+ ignore (SmallLexer.mk_small_printer interpr outfile origbuf);
+ close_out outfile;
asserted
(* MATITA 1.0: debbo fare time_travel sulla ng_library?
LexiconSync.time_travel
*))
with
(* all exceptions should be wrapped to allow lexicon-undo (LS.time_travel) *)
- | exn when not matita_debug ->
+ | exn when not matita_debug ->
(* MATITA 1.0: debbo fare time_travel sulla ng_library?
LexiconSync.time_travel ~present:lexicon ~past:initial_lexicon_status;
* *)