diff options
Diffstat (limited to 'src/comp/front/token.rs')
| -rw-r--r-- | src/comp/front/token.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/comp/front/token.rs b/src/comp/front/token.rs index 62c6406a..a1fb1cd0 100644 --- a/src/comp/front/token.rs +++ b/src/comp/front/token.rs @@ -126,6 +126,7 @@ tag token { LIT_INT(int); LIT_UINT(uint); LIT_MACH_INT(ty_mach, int); + LIT_FLOAT(str); LIT_STR(str); LIT_CHAR(char); LIT_BOOL(bool); @@ -295,7 +296,7 @@ fn to_str(token t) -> str { ret _int.to_str(i, 10u) + "_" + ty_mach_to_str(tm); } - + case (LIT_FLOAT(?s)) { ret s; } case (LIT_STR(?s)) { // FIXME: escape. ret "\"" + s + "\""; |