aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ltac/pptactic.ml11
-rw-r--r--printing/ppannotation.ml15
-rw-r--r--printing/ppannotation.mli9
3 files changed, 14 insertions, 21 deletions
diff --git a/ltac/pptactic.ml b/ltac/pptactic.ml
index dc2676bf4..271ed12d5 100644
--- a/ltac/pptactic.ml
+++ b/ltac/pptactic.ml
@@ -1329,16 +1329,17 @@ module Richpp = struct
include Make (Ppconstr.Richpp) (struct
open Ppannotation
+ open Genarg
let do_not_tag _ x = x
let tag e s = Pp.tag (Pp.Tag.inj e tag) s
let tag_keyword = tag AKeyword
let tag_primitive = tag AKeyword
let tag_string = do_not_tag ()
- let tag_glob_tactic_expr e = tag (AGlobTacticExpr e)
- let tag_glob_atomic_tactic_expr a = tag (AGlobAtomicTacticExpr a)
- let tag_raw_tactic_expr e = tag (ARawTacticExpr e)
- let tag_raw_atomic_tactic_expr a = tag (ARawAtomicTacticExpr a)
- let tag_atomic_tactic_expr a = tag (AAtomicTacticExpr a)
+ let tag_glob_tactic_expr e = tag (AGlbGenArg (in_gen (glbwit wit_ltac) e))
+ let tag_glob_atomic_tactic_expr = do_not_tag
+ let tag_raw_tactic_expr e = tag (ARawGenArg (in_gen (rawwit wit_ltac) e))
+ let tag_raw_atomic_tactic_expr = do_not_tag
+ let tag_atomic_tactic_expr = do_not_tag
end)
end
diff --git a/printing/ppannotation.ml b/printing/ppannotation.ml
index 511f93569..24b4c1515 100644
--- a/printing/ppannotation.ml
+++ b/printing/ppannotation.ml
@@ -10,28 +10,23 @@ open Ppextend
open Constrexpr
open Vernacexpr
open Tacexpr
+open Genarg
type t =
| AKeyword
| AUnparsing of unparsing
| AConstrExpr of constr_expr
| AVernac of vernac_expr
- | AGlobTacticExpr of glob_tactic_expr
- | AGlobAtomicTacticExpr of glob_atomic_tactic_expr
- | ARawTacticExpr of raw_tactic_expr
- | ARawAtomicTacticExpr of raw_atomic_tactic_expr
- | AAtomicTacticExpr of atomic_tactic_expr
+ | AGlbGenArg of glob_generic_argument
+ | ARawGenArg of raw_generic_argument
let tag_of_annotation = function
| AKeyword -> "keyword"
| AUnparsing _ -> "unparsing"
| AConstrExpr _ -> "constr_expr"
| AVernac _ -> "vernac_expr"
- | AGlobTacticExpr _ -> "glob_tactic_expr"
- | AGlobAtomicTacticExpr _ -> "glob_atomic_tactic_expr"
- | ARawTacticExpr _ -> "raw_tactic_expr"
- | ARawAtomicTacticExpr _ -> "raw_atomic_tactic_expr"
- | AAtomicTacticExpr _ -> "atomic_tactic_expr"
+ | AGlbGenArg _ -> "glob_generic_argument"
+ | ARawGenArg _ -> "raw_generic_argument"
let attributes_of_annotation a =
[]
diff --git a/printing/ppannotation.mli b/printing/ppannotation.mli
index a0fef1a75..b0e0facef 100644
--- a/printing/ppannotation.mli
+++ b/printing/ppannotation.mli
@@ -12,18 +12,15 @@
open Ppextend
open Constrexpr
open Vernacexpr
-open Tacexpr
+open Genarg
type t =
| AKeyword
| AUnparsing of unparsing
| AConstrExpr of constr_expr
| AVernac of vernac_expr
- | AGlobTacticExpr of glob_tactic_expr
- | AGlobAtomicTacticExpr of glob_atomic_tactic_expr
- | ARawTacticExpr of raw_tactic_expr
- | ARawAtomicTacticExpr of raw_atomic_tactic_expr
- | AAtomicTacticExpr of atomic_tactic_expr
+ | AGlbGenArg of glob_generic_argument
+ | ARawGenArg of raw_generic_argument
val tag_of_annotation : t -> string