aboutsummaryrefslogtreecommitdiffhomepage
path: root/printing
diff options
context:
space:
mode:
authorGravatar Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr>2016-09-15 19:21:45 +0200
committerGravatar Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr>2016-09-15 19:35:28 +0200
commit6f123367027055dbefd9aec9ab2a8bc62f6c32ed (patch)
tree150d49dde41052019d8728dee924d9d679b51161 /printing
parent72ac4b32ac26fdba751ae48568d28b4dbb8edd14 (diff)
Made Ppanotation Ltac-agnostic.
Diffstat (limited to 'printing')
-rw-r--r--printing/ppannotation.ml15
-rw-r--r--printing/ppannotation.mli9
2 files changed, 8 insertions, 16 deletions
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