diff options
Diffstat (limited to 'src/comp/front/parser.rs')
| -rw-r--r-- | src/comp/front/parser.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |