diff options
| author | Regis-Gianas | 2014-11-04 12:05:53 +0100 |
|---|---|---|
| committer | Regis-Gianas | 2014-11-04 22:51:36 +0100 |
| commit | d6b6deb1cb02dca80349aa30221ea8569e72d9da (patch) | |
| tree | 3749d972a8257aa7db77134f0f420bbd9f18a372 /printing/ppannotation.ml | |
| parent | 970725685ee7ecb03fa071e94695988f2b14bd90 (diff) | |
printing/RichPrinter: New API for rich pretty-printing.
printing/Ppannotation: Define the projection of annotations into XML attributes.
lib/richPp: Implements valid entities escaping.
Diffstat (limited to 'printing/ppannotation.ml')
| -rw-r--r-- | printing/ppannotation.ml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/printing/ppannotation.ml b/printing/ppannotation.ml index 3274a7bdcf..b739dcaeb9 100644 --- a/printing/ppannotation.ml +++ b/printing/ppannotation.ml @@ -14,3 +14,11 @@ type t = | AUnparsing of unparsing | AConstrExpr of constr_expr | AVernac of vernac_expr + +let tag_of_annotation = function + | AUnparsing _ -> "unparsing" + | AConstrExpr _ -> "constr_expr" + | AVernac _ -> "vernac_expr" + +let attributes_of_annotation a = + [] |
