aboutsummaryrefslogtreecommitdiffhomepage
path: root/printing/ppannotation.ml
blob: 726c0ffcf1f82966063b78644d2de8f50275cde5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
(************************************************************************)
(*  v      *   The Coq Proof Assistant  /  The Coq Development Team     *)
(* <O___,, *   INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2016     *)
(*   \VV/  **************************************************************)
(*    //   *      This file is distributed under the terms of the       *)
(*         *       GNU Lesser General Public License Version 2.1        *)
(************************************************************************)

open Ppextend
open Constrexpr
open Vernacexpr
open Genarg

type t =
  | AKeyword
  | AUnparsing            of unparsing
  | AConstrExpr           of constr_expr
  | AVernac               of vernac_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"
  | AGlbGenArg _            -> "glob_generic_argument"
  | ARawGenArg _            -> "raw_generic_argument"

let attributes_of_annotation a =
  []

let tag = Pp.Tag.create "ppannotation"