diff options
| author | herbelin | 2002-11-14 18:37:54 +0000 |
|---|---|---|
| committer | herbelin | 2002-11-14 18:37:54 +0000 |
| commit | e88e0b2140bdd2d194a52bc09f8338b5667d0f92 (patch) | |
| tree | 67ca22f77ddb98725456e5f9a0b5ad613ae28da5 /lib | |
| parent | e4efb857fa9053c41e4c030256bd17de7e24542f (diff) | |
Réforme de l'interprétation des termes :
- Le parsing se fait maintenant via "constr_expr" au lieu de "Coqast.t"
- "Coqast.t" reste pour l'instant pour le pretty-printing. Un deuxième
pretty-printer dans ppconstr.ml est basé sur "constr_expr".
- Nouveau répertoire "interp" qui hérite de la partie interprétation qui
se trouvait avant dans "parsing" (constrintern.ml remplace astterm.ml;
constrextern.ml est l'équivalent de termast.ml pour le nouveau
printer; topconstr.ml; contient la définition de "constr_expr";
modintern.ml remplace astmod.ml)
- Libnames.reference tend à remplacer Libnames.qualid
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@3235 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/bignat.ml | 9 | ||||
| -rw-r--r-- | lib/bignat.mli | 6 | ||||
| -rw-r--r-- | lib/util.ml | 1 | ||||
| -rw-r--r-- | lib/util.mli | 1 |
4 files changed, 17 insertions, 0 deletions
diff --git a/lib/bignat.ml b/lib/bignat.ml index 7859a780df..0cbd7bd54a 100644 --- a/lib/bignat.ml +++ b/lib/bignat.ml @@ -8,6 +8,10 @@ (* $Id$ *) +(*i*) +open Pp +(*i*) + (* Arbitrary big natural numbers *) type bignat = int array @@ -101,3 +105,8 @@ let less_than m n = (um < un) || (um = un && lt 0) type bigint = POS of bignat | NEG of bignat + +let pr_bigint = function + | POS n -> str (to_string n) + | NEG n -> str "-" ++ str (to_string n) + diff --git a/lib/bignat.mli b/lib/bignat.mli index 173d43e4ca..4d45d2ba2b 100644 --- a/lib/bignat.mli +++ b/lib/bignat.mli @@ -8,6 +8,10 @@ (* $Id$ *) +(*i*) +open Pp +(*i*) + (* Arbitrary big natural numbers *) type bignat @@ -27,3 +31,5 @@ val mult_2 : bignat -> bignat val less_than : bignat -> bignat -> bool type bigint = POS of bignat | NEG of bignat + +val pr_bigint : bigint -> std_ppcmds diff --git a/lib/util.ml b/lib/util.ml index 689f12558d..a8dd17e8f2 100644 --- a/lib/util.ml +++ b/lib/util.ml @@ -29,6 +29,7 @@ let dummy_loc = (0,0) let anomaly_loc (loc,s,strm) = Stdpp.raise_with_loc loc (Anomaly (s,strm)) let user_err_loc (loc,s,strm) = Stdpp.raise_with_loc loc (UserError (s,strm)) let invalid_arg_loc (loc,s) = Stdpp.raise_with_loc loc (Invalid_argument s) +let join_loc (deb1,_) (_,fin2) = (deb1,fin2) (* Characters *) diff --git a/lib/util.mli b/lib/util.mli index 068ea256f5..d7194e389d 100644 --- a/lib/util.mli +++ b/lib/util.mli @@ -39,6 +39,7 @@ val dummy_loc : loc val anomaly_loc : loc * string * std_ppcmds -> 'a val user_err_loc : loc * string * std_ppcmds -> 'a val invalid_arg_loc : loc * string -> 'a +val join_loc : loc -> loc -> loc (*s Chars. *) |
