diff options
| author | herbelin | 2006-01-28 23:07:59 +0000 |
|---|---|---|
| committer | herbelin | 2006-01-28 23:07:59 +0000 |
| commit | 35180e3a927d4450406ebeb0e89fdcde1341650a (patch) | |
| tree | 7fe926a33569320b25c1fa972904354b067061ea /parsing | |
| parent | adadd8db0e9eb1e5161057a7064426b84a3d2605 (diff) | |
Réorganisation de la structure interne des types de déclarations (decl_kinds)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@7941 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'parsing')
| -rw-r--r-- | parsing/ppvernac.ml | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/parsing/ppvernac.ml b/parsing/ppvernac.ml index 378417a124..e7fc0e01ff 100644 --- a/parsing/ppvernac.ml +++ b/parsing/ppvernac.ml @@ -323,11 +323,7 @@ let pr_ne_params_list pr_c l = prlist_with_sep pr_semicolon (pr_params pr_c) *) -let pr_thm_token = function - | Theorem -> str"Theorem" - | Lemma -> str"Lemma" - | Fact -> str"Fact" - | Remark -> str"Remark" +let pr_thm_token k = str (string_of_theorem_kind k) let pr_syntax_modifier = function | SetItemLevel (l,NextLevel) -> @@ -481,18 +477,7 @@ let rec pr_vernac = function (* Gallina *) | VernacDefinition (d,id,b,f) -> (* A verifier... *) - let pr_def_token = function - | Local, Coercion -> str"Coercion Local" - | Global, Coercion -> str"Coercion" - | Local, Definition _ -> str"Let" - | Global, Definition b -> - if b then str"Boxed Definition" - else str"Definition" - | Local, SubClass -> str"Local SubClass" - | Global, SubClass -> str"SubClass" - | Global, CanonicalStructure -> str"Canonical Structure" - | Local, CanonicalStructure -> - anomaly "Don't know how to translate a local canonical structure" in + let pr_def_token dk = str (string_of_definition_kind dk) in let pr_reduce = function | None -> mt() | Some r -> |
