fromCodePoint

This commit is contained in:
Andrew Morris
2023-03-13 14:25:55 +11:00
parent 11e77f36bd
commit 253b06141c
9 changed files with 138 additions and 18 deletions

View File

@@ -747,13 +747,16 @@ impl<'a> AssemblyParser<'a> {
}
fn assemble_builtin(&mut self) -> Builtin {
match self.parse_one_of(&["$Math", "$Debug"]).as_str() {
match self.parse_one_of(&["$Math", "$Debug", "$String"]).as_str() {
"$Math" => Builtin {
name: "Math".to_string(),
},
"$Debug" => Builtin {
name: "Debug".to_string(),
},
"$String" => Builtin {
name: "String".to_string(),
},
_ => panic!("Shouldn't happen"),
}
}