From 86f1ace55b6507671f51e52557db5caef7ad4393 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Thu, 24 Mar 2011 11:37:50 -0700 Subject: Teach creader about reading ty_float, and trim trailing whitespace. --- src/comp/front/creader.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/comp/front/creader.rs b/src/comp/front/creader.rs index 42bc5130..7212840c 100644 --- a/src/comp/front/creader.rs +++ b/src/comp/front/creader.rs @@ -75,6 +75,7 @@ impure fn parse_sty(@pstate st, str_def sd) -> ty.sty { case ('b') {ret ty.ty_bool;} case ('i') {ret ty.ty_int;} case ('u') {ret ty.ty_uint;} + case ('l') {ret ty.ty_float;} case ('M') { alt (next(st) as char) { case ('b') {ret ty.ty_machine(common.ty_u8);} @@ -104,7 +105,7 @@ impure fn parse_sty(@pstate st, str_def sd) -> ty.sty { } st.pos = st.pos + 1u; ret ty.ty_tag(sd(def), params); - } + } case ('@') {ret ty.ty_box(parse_mt(st, sd));} case ('V') {ret ty.ty_vec(parse_mt(st, sd));} case ('P') {ret ty.ty_port(parse_ty(st, sd));} -- cgit v1.2.3