diff options
author | John Hodge <tpg@ucc.asn.au> | 2017-05-14 23:32:12 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2017-05-14 23:32:12 +0800 |
commit | 6b459cee4eec7f75388901e80af71993eb3a90b3 (patch) | |
tree | 31350c9ad6c120bcafd6065caa1d0532c18f42b5 | |
parent | 3a3f95d0c0b64ae2c5c702a50f6d26a35931bf48 (diff) | |
download | mrust-6b459cee4eec7f75388901e80af71993eb3a90b3.tar.gz |
Lex - Handle i128/u128 literals
-rw-r--r-- | src/parse/lex.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parse/lex.cpp b/src/parse/lex.cpp index 4cd9954f..71ccbfb2 100644 --- a/src/parse/lex.cpp +++ b/src/parse/lex.cpp @@ -463,11 +463,13 @@ Token Lexer::getTokenInt() else if(suffix == "i16") num_type = CORETYPE_I16; else if(suffix == "i32") num_type = CORETYPE_I32; else if(suffix == "i64") num_type = CORETYPE_I64; + else if(suffix == "i128") num_type = CORETYPE_I128; else if(suffix == "isize") num_type = CORETYPE_INT; else if(suffix == "u8") num_type = CORETYPE_U8; else if(suffix == "u16") num_type = CORETYPE_U16; else if(suffix == "u32") num_type = CORETYPE_U32; else if(suffix == "u64") num_type = CORETYPE_U64; + else if(suffix == "u128") num_type = CORETYPE_U128; else if(suffix == "usize") num_type = CORETYPE_UINT; else if(suffix == "f32") num_type = CORETYPE_F32; else if(suffix == "f64") num_type = CORETYPE_F64; |