aboutsummaryrefslogtreecommitdiffhomepage
path: root/parsing
diff options
context:
space:
mode:
authorGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2000-12-14 15:26:22 +0000
committerGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2000-12-14 15:26:22 +0000
commit91ff87e1e60e13bf95784a794b86e6d2661be7c7 (patch)
tree1e174d2bc243f660a50da50f8f1605954519f459 /parsing
parente4dd5d40cf0da9b0b692274508da244ba4288f5a (diff)
Évaluation forcée des objets mis dans les streams
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@1107 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'parsing')
-rw-r--r--parsing/printer.ml13
1 files changed, 10 insertions, 3 deletions
diff --git a/parsing/printer.ml b/parsing/printer.ml
index 79dbad6e0..ac8cc92f1 100644
--- a/parsing/printer.ml
+++ b/parsing/printer.ml
@@ -154,14 +154,21 @@ and default_tacpr = function
let pr_var_decl env (id,c,typ) =
let pbody = match c with
| None -> [< >]
- | Some c -> [< 'sTR" := "; prterm_env env c >] in
- let ptyp = [< 'sTR" : "; prtype_env env typ >] in
+ | Some c ->
+ (* Force evaluation *)
+ let pb = prterm_env env c in
+ [< 'sTR" := "; pb >] in
+ let pt = prtype_env env typ in
+ let ptyp = [< 'sTR" : "; pt >] in
[< pr_id id ; hOV 0 [< pbody; ptyp >] >]
let pr_rel_decl env (na,c,typ) =
let pbody = match c with
| None -> [< >]
- | Some c -> [< 'sTR" :="; 'sPC; prterm_env env c >] in
+ | Some c ->
+ (* Force evaluation *)
+ let pb = prterm_env env c in
+ [< 'sTR" :="; 'sPC; pb >] in
let ptyp = prtype_env env typ in
match na with
| Anonymous -> [< 'sTR"<>" ; 'sPC; pbody; 'sTR" :"; 'sPC; ptyp >]