From 4da48b01f420d8eccf6dcb2fea11bb4d9f8d8a86 Mon Sep 17 00:00:00 2001 From: herbelin Date: Wed, 21 May 2003 22:38:38 +0000 Subject: Suppression définitive de lmatch et or_metanum dans tacinterp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@4054 85f007b7-540e-0410-9357-904b9bb8a0f7 --- parsing/g_tacticnew.ml4 | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) (limited to 'parsing/g_tacticnew.ml4') diff --git a/parsing/g_tacticnew.ml4 b/parsing/g_tacticnew.ml4 index b299a3368..40a292ca1 100644 --- a/parsing/g_tacticnew.ml4 +++ b/parsing/g_tacticnew.ml4 @@ -95,16 +95,6 @@ GEXTEND Gram [ [ a0 = autoarg_depth; l = autoarg_adding; a2 = autoarg_destructing; a3 = autoarg_usingTDB -> (a0,l,a2,a3) ] ] ; - (* Either an hypothesis or a ltac ref (variable or pattern patvar) *) - id_or_ltac_ref: - [ [ id = base_ident -> AN id -(* | "?"; n = natural -> MetaNum (loc,Pattern.patvar_of_int n) *) ] ] - ; - (* Either a global ref or a ltac ref (variable or pattern patvar) *) - global_or_ltac_ref: - [ [ qid = global -> AN qid -(* | "?"; n = natural -> MetaNum (loc,Pattern.patvar_of_int n) *) ] ] - ; (* An identifier or a quotation meta-variable *) id_or_meta: [ [ id = identref -> AI id @@ -186,15 +176,15 @@ GEXTEND Gram [ [ "with"; bl = binding_list -> bl | -> NoBindings ] ] ; unfold_occ: - [ [ nl = LIST0 integer; c = global_or_ltac_ref -> (nl,c) ] ] + [ [ nl = LIST0 integer; c = global -> (nl,c) ] ] ; red_flag: [ [ IDENT "beta" -> FBeta | IDENT "delta" -> FDeltaBut [] | IDENT "iota" -> FIota | IDENT "zeta" -> FZeta - | IDENT "delta"; "["; idl = LIST1 global_or_ltac_ref; "]" -> FConst idl - | IDENT "delta"; "-"; "["; idl = LIST1 global_or_ltac_ref; "]" -> FDeltaBut idl + | IDENT "delta"; "["; idl = LIST1 global; "]" -> FConst idl + | IDENT "delta"; "-"; "["; idl = LIST1 global; "]" -> FDeltaBut idl ] ] ; red_tactic: @@ -310,7 +300,7 @@ GEXTEND Gram ids = with_names -> TacNewDestruct (c,el,ids) | IDENT "decompose"; IDENT "record" ; c = lconstr -> TacDecomposeAnd c | IDENT "decompose"; IDENT "sum"; c = lconstr -> TacDecomposeOr c - | IDENT "decompose"; "["; l = LIST1 global_or_ltac_ref; "]"; c = lconstr + | IDENT "decompose"; "["; l = LIST1 global; "]"; c = lconstr -> TacDecompose (l,c) (* Automation tactic *) @@ -326,11 +316,11 @@ GEXTEND Gram TacDAuto (n, p) (* Context management *) - | IDENT "clear"; l = LIST1 id_or_ltac_ref -> TacClear l - | IDENT "clearbody"; l = LIST1 id_or_ltac_ref -> TacClearBody l - | IDENT "move"; id1 = identref; IDENT "after"; id2 = identref -> + | IDENT "clear"; l = LIST1 id_or_meta -> TacClear l + | IDENT "clearbody"; l = LIST1 id_or_meta -> TacClearBody l + | IDENT "move"; id1 = id_or_meta; IDENT "after"; id2 = id_or_meta -> TacMove (true,id1,id2) - | IDENT "rename"; id1 = identref; IDENT "into"; id2 = identref -> + | IDENT "rename"; id1 = id_or_meta; IDENT "into"; id2 = id_or_meta -> TacRename (id1,id2) (* Constructors *) -- cgit v1.2.3