diff options
| author | Lindsey Kuper <[email protected]> | 2011-03-23 14:52:22 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-03-23 16:01:29 -0700 |
| commit | 0b63512f4cb0aca1579b110d9104eeed4918a6eb (patch) | |
| tree | bf9014f6261f2b15db81eec7e1d34aa1d3de2cd3 /src/comp/front | |
| parent | build: Fix minor typo in "cp" output (diff) | |
| download | rust-0b63512f4cb0aca1579b110d9104eeed4918a6eb.tar.xz rust-0b63512f4cb0aca1579b110d9104eeed4918a6eb.zip | |
Support for 'float' in type signatures.
Diffstat (limited to 'src/comp/front')
| -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); } |