diff options
| author | herbelin | 2003-09-06 19:12:08 +0000 |
|---|---|---|
| committer | herbelin | 2003-09-06 19:12:08 +0000 |
| commit | 95d4aef96fb7b490b188afe66e8345428e9706ee (patch) | |
| tree | 3990c1a6bfce095e941d756df5387b63e86e8353 /parsing | |
| parent | ef41c3d1f93e2fa82cbaa97adaa03852e8fcd7b8 (diff) | |
Paramétrisation vis à vis de existential_key
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@4321 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'parsing')
| -rw-r--r-- | parsing/ppconstr.ml | 3 | ||||
| -rw-r--r-- | parsing/termast.ml | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/parsing/ppconstr.ml b/parsing/ppconstr.ml index b3118f7e7b..7421460539 100644 --- a/parsing/ppconstr.ml +++ b/parsing/ppconstr.ml @@ -279,7 +279,10 @@ let rec pr inherited a = | COrderedCase (_,_,_,_,_) -> anomaly "malformed if or destructuring let" | CHole _ -> str "?", latom +(* | CEvar (_,n) -> str "?" ++ int n, latom +*) + | CEvar (_,n) -> str (Evd.string_of_existential n), latom | CPatVar (_,(_,p)) -> str "?" ++ pr_patvar p, latom | CSort (_,s) -> pr_sort s, latom | CCast (_,a,b) -> diff --git a/parsing/termast.ml b/parsing/termast.ml index 9cc66a37fe..b4914583e9 100644 --- a/parsing/termast.ml +++ b/parsing/termast.ml @@ -99,6 +99,11 @@ let ast_of_constant_ref sp = ope("CONST", [path_section dummy_loc sp]) let ast_of_existential_ref ev = +(* + let ev = + try int_of_string (string_of_id ev) + with _ -> warning "cannot find existential variable number"; 0 in +*) ope("EVAR", [num ev]) let ast_of_constructor_ref ((sp,tyi),n) = |
