Add machine-dependent 'float' type.

This commit is contained in:
Graydon Hoare
2010-07-01 09:35:48 -07:00
parent afc0dc8bfc
commit cb04275afa
3 changed files with 21 additions and 4 deletions

View File

@@ -79,6 +79,7 @@
("int", INT);
("uint", UINT);
("float", FLOAT);
("char", CHAR);
("str", STR);

View File

@@ -118,6 +118,7 @@ type token =
| BOOL
| INT
| UINT
| FLOAT
| CHAR
| STR
| MACH of Common.ty_mach
@@ -267,6 +268,7 @@ let rec string_of_tok t =
| BOOL -> "bool"
| INT -> "int"
| UINT -> "uint"
| FLOAT -> "float"
| CHAR -> "char"
| STR -> "str"
| MACH m -> Common.string_of_ty_mach m