]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/matita/matitaEngine.ml
It is now possible to declare new aliases using the old syntax
[helm.git] / helm / software / matita / matitaEngine.ml
index 75c3ebafc5d946b3540157992874b14853c14283..cf8d6860b14608d60ef443ce01919a03c1483f8c 100644 (file)
@@ -81,7 +81,7 @@ let eval_ast ?do_heavy_checks lexicon_status
    ~disambiguate_command:(wrap (disambiguate_command lexicon_status_ref))
    ~disambiguate_macro:(wrap (disambiguate_macro lexicon_status_ref))
    ?do_heavy_checks grafite_status (text,prefix_len,ast) in
- let lexicon_status =
+ let new_lexicon_status =
   if !changed_lexicon then
    !lexicon_status_ref
   else
@@ -90,7 +90,7 @@ let eval_ast ?do_heavy_checks lexicon_status
    | GrafiteTypes.ProofMode s -> s.NTacStatus.istatus.NTacStatus.lstatus
  in
  let new_lexicon_status =
-  LexiconSync.add_aliases_for_objs lexicon_status new_objs in
+  LexiconSync.add_aliases_for_objs new_lexicon_status new_objs in
  let new_aliases =
   LexiconSync.alias_diff ~from:lexicon_status new_lexicon_status in
  let _,intermediate_states = 
@@ -119,7 +119,7 @@ let eval_ast ?do_heavy_checks lexicon_status
   ((new_grafite_status,new_lexicon_status),None)::intermediate_states
 
 exception TryingToAdd of string
-exception EnrichedWithLexiconStatus of exn * LexiconEngine.status
+exception EnrichedWithStatus of exn * LexiconEngine.status * GrafiteTypes.status
 
 let out = ref ignore 
 
@@ -173,7 +173,7 @@ let eval_from_stream ~first_statement_only ~include_paths
              watch_statuses lexicon_status grafite_status ;
              false, lexicon_status, grafite_status, (new_statuses @ statuses))
    with exn when not matita_debug ->
-     raise (EnrichedWithLexiconStatus (exn, lexicon_status))
+     raise (EnrichedWithStatus (exn, lexicon_status, grafite_status))
   in
   if stop then s else loop l g s
  in