feat: add the rest of the num types for Str conversion

This commit is contained in:
rvcas 2021-12-06 23:24:02 -05:00
parent e587e20de2
commit b7d48b2fe1
7 changed files with 395 additions and 45 deletions

View file

@ -72,7 +72,16 @@ pub fn builtin_defs_map(symbol: Symbol, var_store: &mut VarStore) -> Option<Def>
STR_TO_F64 => str_to_num,
STR_TO_F32 => str_to_num,
STR_TO_NAT => str_to_num,
STR_TO_U128 => str_to_num,
STR_TO_I128 => str_to_num,
STR_TO_U64 => str_to_num,
STR_TO_I64 => str_to_num,
STR_TO_U32 => str_to_num,
STR_TO_I32 => str_to_num,
STR_TO_U16 => str_to_num,
STR_TO_I16 => str_to_num,
STR_TO_U8 => str_to_num,
STR_TO_I8 => str_to_num,
LIST_LEN => list_len,
LIST_GET => list_get,
LIST_SET => list_set,