X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fgrafite_engine%2FgrafiteEngine.ml;h=a41415fe7bbcbcacb1ec001c3e50e9877e4f1d36;hb=d58b48162ad53fb369d285e60a99f746a497ad89;hp=b3560150e0c9931496a5b087dd6fd4241b94e680;hpb=d072c3ea699cf33189d18d8431fda9750fc2eb93;p=helm.git diff --git a/helm/software/components/grafite_engine/grafiteEngine.ml b/helm/software/components/grafite_engine/grafiteEngine.ml index b3560150e..a41415fe7 100644 --- a/helm/software/components/grafite_engine/grafiteEngine.ml +++ b/helm/software/components/grafite_engine/grafiteEngine.ml @@ -586,6 +586,11 @@ let eval_ng_punct (_text, _prefix_len, punct) = let eval_ng_tac (text, prefix_len, tac) = match tac with | GrafiteAst.NApply (_loc, t) -> NTactics.apply_tac (text,prefix_len,t) + | GrafiteAst.NCases (_loc, what, where) -> + NTactics.cases_tac + ~what:(text,prefix_len,what) + ~where:(text,prefix_len,where) + | GrafiteAst.NCase1 (_loc,n) -> NTactics.case1_tac n | GrafiteAst.NChange (_loc, pat, ww) -> NTactics.change_tac ~where:(text,prefix_len,pat) ~with_what:(text,prefix_len,ww) @@ -595,6 +600,9 @@ let eval_ng_tac (text, prefix_len, tac) = ~where:(text,prefix_len,where) | GrafiteAst.NId _ -> (fun x -> x) | GrafiteAst.NIntro (_loc,n) -> NTactics.intro_tac n + | GrafiteAst.NRewrite (_loc,dir,what,where) -> + NTactics.rewrite_tac ~dir ~what:(text,prefix_len,what) + ~where:(text,prefix_len,where) ;; let rec eval_command = {ec_go = fun ~disambiguate_command opts status @@ -714,9 +722,9 @@ let rec eval_command = {ec_go = fun ~disambiguate_command opts status 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} } @@ -819,7 +827,7 @@ let rec eval_command = {ec_go = fun ~disambiguate_command opts 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 =