prerr_endline ("nuovo lemma: " ^ NCicPp.ppmetasenv ~subst:nsubst nmenv);
{ status with
GrafiteTypes.ng_status =
- GrafiteTypes.ProofMode { NTactics.gstatus = ninitial_stack;
+ GrafiteTypes.ProofMode { NTacStatus.gstatus = ninitial_stack;
istatus = {
- NTactics.pstatus =
+ NTacStatus.pstatus =
NUri.uri_of_string suri, 0, nmenv, nsubst,
(NCic.Constant ([],"",Some nbo,nty,(`Provided,`Definition,`Regular)));
lstatus = nlexicon_status} }
| GrafiteTypes.ProofMode nstatus ->
let nstatus = eval_ng_tac (text,prefix_len,tac) nstatus in
let nstatus = eval_ng_punct (text,prefix_len,punct) nstatus in
- NTactics.pp_tac_status nstatus;
+ NTacStatus.pp_tac_status nstatus;
{ status with GrafiteTypes.ng_status = GrafiteTypes.ProofMode nstatus }, [])
| GrafiteAst.NonPunctuationTactical (_, tac, punct) ->
let status =
* engine. No status entering/exiting the engine could be in it. *)
type ng_status =
- | ProofMode of NTactics.tac_status
+ | ProofMode of NTacStatus.tac_status
| CommandMode of LexiconEngine.status
type status = {
| Intermediate of Cic.metasenv
type ng_status =
- | ProofMode of NTactics.tac_status
+ | ProofMode of NTacStatus.tac_status
| CommandMode of LexiconEngine.status
type status = {
lowtac_status -> cic_term -> ast_term option * NCic.term ->
lowtac_status * cic_term
+val pp_tac_status: tac_status -> unit
+
(* end *)
| GrafiteTypes.ProofMode s ->
{ grafite_status with GrafiteTypes.ng_status =
GrafiteTypes.ProofMode
- { s with NTactics.istatus = { s.NTactics.istatus with NTactics.lstatus = lexicon_status }}}
+ { s with NTacStatus.istatus = { s.NTacStatus.istatus with NTacStatus.lstatus = lexicon_status }}}
in
let new_grafite_status,new_objs =
GrafiteEngine.eval_ast
else
match new_grafite_status.GrafiteTypes.ng_status with
| GrafiteTypes.CommandMode l -> l
- | GrafiteTypes.ProofMode s -> s.NTactics.istatus.NTactics.lstatus
+ | GrafiteTypes.ProofMode s -> s.NTacStatus.istatus.NTacStatus.lstatus
in
let new_lexicon_status =
LexiconSync.add_aliases_for_objs lexicon_status new_objs in
None, ("Disambiguation choice not found: " ^ Lazy.force msg)
| MatitaEngine.EnrichedWithLexiconStatus (exn,_) ->
None, "EnrichedWithLexiconStatus "^snd(to_string exn)
+ | NTacStatus.Error msg ->
+ None, "NTactic error: " ^ Lazy.force msg
| MultiPassDisambiguator.DisambiguationError (offset,errorll) ->
let loc =
match errorll with