/[svn]/types/builtin.ml
ViewVC logotype

Contents of /types/builtin.ml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 237 - (show annotations)
Tue Jul 10 17:18:04 2007 UTC (5 years, 11 months ago) by abate
File size: 676 byte(s)
[r2003-03-14 16:14:17 by cvscast] Empty log message

Original author: cvscast
Date: 2003-03-14 16:15:14+00:00
1 let intstr =
2 Sequence.plus (Types.char (Chars.char_class
3 (Chars.mk_char '0')
4 (Chars.mk_char '9')
5 )
6 )
7
8 let true_atom = Atoms.mk "true"
9 let false_atom = Atoms.mk "false"
10 let true_type = Types.atom (Atoms.atom true_atom)
11 let false_type = Types.atom (Atoms.atom false_atom)
12
13 let bool = Types.cup true_type false_type
14
15 let types =
16 [
17 "Empty", Types.empty;
18 "Any", Types.any;
19 "Int", Types.Int.any;
20 "Char", Types.char Chars.any;
21 "Atom", Types.atom Atoms.any;
22 "Pair", Types.Product.any;
23 "Arrow", Types.Arrow.any;
24 "Record", Types.Record.any;
25 "String", Sequence.string;
26 "Bool", bool
27 ];

CVS Admin">CVS Admin
ViewVC Help
Powered by ViewVC 1.1.5