diff options
| author | herbelin | 2003-11-19 15:35:37 +0000 |
|---|---|---|
| committer | herbelin | 2003-11-19 15:35:37 +0000 |
| commit | 0bec25a0f6e90429d59d20e42cacac3a9bee72a6 (patch) | |
| tree | 2f449388e2a852dd6865c87cc00a939cef85ce8e /contrib/correctness/psyntax.ml4 | |
| parent | cff24d313545efba6bd14116b83bd3fa0b7f44ff (diff) | |
Prise en compte renommages
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@4950 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'contrib/correctness/psyntax.ml4')
| -rw-r--r-- | contrib/correctness/psyntax.ml4 | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/contrib/correctness/psyntax.ml4 b/contrib/correctness/psyntax.ml4 index 221445b58d..47ee5d84b5 100644 --- a/contrib/correctness/psyntax.ml4 +++ b/contrib/correctness/psyntax.ml4 @@ -834,6 +834,8 @@ VERNAC COMMAND EXTEND ProgVariable -> [ global_variable ids t] END +let pr_id id = pr_id (Constrextern.v7_to_v8_id id) + (* Type printer *) let pr_reads = function @@ -913,7 +915,16 @@ let pr_variant (c1,c2) = with _ -> spc() ++ hov 0 (str "for" ++ spc () ++ Ppconstrnew.pr_constr c2)) let rec pr_desc = function - | Variable id -> pr_id id + | Variable id -> + (* Unsafe: should distinguish global names and bound vars *) + let vars = (* TODO *) Idset.empty in + let id = try + snd (repr_qualid + (snd (qualid_of_reference + (Constrextern.extern_reference + dummy_loc vars (Nametab.locate (make_short_qualid id)))))) + with _ -> id in + pr_id id | Acc id -> str "!" ++ pr_id id | Aff (id,p) -> pr_id id ++ spc() ++ str ":=" ++ spc() ++ pr_prog p | TabAcc (b,id,p) -> pr_id id ++ str "[" ++ pr_prog p ++ str "]" |
