about summary refs log tree commit diff
path: root/src/comp/front
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2011-03-24 11:37:50 -0700
committerGraydon Hoare <graydon@mozilla.com>2011-03-24 11:50:45 -0700
commit86f1ace55b6507671f51e52557db5caef7ad4393 (patch)
treeefa02cc01756f83f90372bcf8c7a6d9f34a3b094 /src/comp/front
parentf0706d8932fc78c5b72db08733122fffbe1c4a81 (diff)
downloadrust-86f1ace55b6507671f51e52557db5caef7ad4393.tar.gz
rust-86f1ace55b6507671f51e52557db5caef7ad4393.zip
Teach creader about reading ty_float, and trim trailing whitespace.
Diffstat (limited to 'src/comp/front')
-rw-r--r--src/comp/front/creader.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/comp/front/creader.rs b/src/comp/front/creader.rs
index 42bc5130406..7212840c9bd 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));}