From 0b63512f4cb0aca1579b110d9104eeed4918a6eb Mon Sep 17 00:00:00 2001 From: Lindsey Kuper Date: Wed, 23 Mar 2011 14:52:22 -0700 Subject: Support for 'float' in type signatures. --- src/comp/front/parser.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/comp/front') diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs index 9e13e706..063bc0e1 100644 --- a/src/comp/front/parser.rs +++ b/src/comp/front/parser.rs @@ -349,6 +349,7 @@ impure fn parse_ty(parser p) -> @ast.ty { case (token.BOOL) { p.bump(); t = ast.ty_bool; } case (token.INT) { p.bump(); t = ast.ty_int; } case (token.UINT) { p.bump(); t = ast.ty_uint; } + case (token.FLOAT) { p.bump(); t = ast.ty_float; } case (token.STR) { p.bump(); t = ast.ty_str; } case (token.CHAR) { p.bump(); t = ast.ty_char; } case (token.MACH(?tm)) { p.bump(); t = ast.ty_machine(tm); } -- cgit v1.2.3