]> matita.cs.unibo.it Git - helm.git/blobdiff - components/grafite_parser/grafiteParser.ml
elim tactic: now takes a pattern instead of just a term
[helm.git] / components / grafite_parser / grafiteParser.ml
index 3653c46069adc15ff3a2be2aa7edc7ca9693ea1f..dac05d7bdd056d83d146bbef82e03d886efc6742 100644 (file)
@@ -164,8 +164,12 @@ EXTEND
     | IDENT "destruct"; t = tactic_term ->
         GrafiteAst.Destruct (loc, t)
     | IDENT "elim"; what = tactic_term; using = using;
+       (num, idents) = intros_spec ->
+       let pattern = Some what, [], Some Ast.UserInput in
+       GrafiteAst.Elim (loc, pattern, using, num, idents)
+    | IDENT "elim"; pattern = pattern_spec; using = using;
       (num, idents) = intros_spec ->
-       GrafiteAst.Elim (loc, what, using, num, idents)
+       GrafiteAst.Elim (loc, pattern, using, num, idents)    
     | IDENT "elimType"; what = tactic_term; using = using;
       (num, idents) = intros_spec ->
        GrafiteAst.ElimType (loc, what, using, num, idents)