runtime: change typenames to use . for namespaces

This commit is contained in:
Michael Sippel 2024-10-01 14:49:20 +02:00
parent 7cc47f05c5
commit bacb3cf519
Signed by: senvas
GPG key ID: F96CF119C34B64A6

View file

@ -55,8 +55,8 @@ pub fn init_runtime(linker: &mut Linker) -> Arc<RwLock<Scope>> {
"i+",
vec![],
vec![
"_2^64~machine::UInt64~machine::Word",
"_2^64~machine::UInt64~machine::Word",
"_2^64~machine.UInt64~machine.Word",
"_2^64~machine.UInt64~machine.Word",
],
vec!["_2^64~machine::UInt64~machine::Word"],
);
@ -64,8 +64,8 @@ pub fn init_runtime(linker: &mut Linker) -> Arc<RwLock<Scope>> {
"i-",
vec![],
vec![
"_2^64~machine::UInt64~machine::Word",
"_2^64~machine::UInt64~machine::Word",
"_2^64~machine.UInt64~machine.Word",
"_2^64~machine.UInt64~machine.Word",
],
vec!["_2^64~machine::UInt64~machine::Word"],
);
@ -73,17 +73,17 @@ pub fn init_runtime(linker: &mut Linker) -> Arc<RwLock<Scope>> {
"i*",
vec![],
vec![
"_2^64~machine::UInt64~machine::Word",
"_2^64~machine::UInt64~machine::Word",
"_2^64~machine.UInt64~machine.Word",
"_2^64~machine.UInt64~machine.Word",
],
vec!["_2^64~machine::UInt64~machine::Word"],
vec!["_2^64~machine.UInt64~machine.Word"],
);
symbols.write().unwrap().declare_proc_parse(
"i/",
vec![],
vec![
"_2^64~machine::UInt64~machine::Word",
"_2^64~machine::UInt64~machine::Word",
"_2^64~machine.UInt64~machine.Word",
"_2^64~machine.UInt64~machine.Word",
],
vec!["_2^64~machine::UInt64~machine::Word"],
);
@ -91,60 +91,60 @@ pub fn init_runtime(linker: &mut Linker) -> Arc<RwLock<Scope>> {
"i%",
vec![],
vec![
"_2^64~machine::UInt64~machine::Word",
"_2^64~machine::UInt64~machine::Word",
"_2^64~machine.UInt64~machine.Word",
"_2^64~machine.UInt64~machine.Word",
],
vec!["_2^64~machine::UInt64~machine::Word"],
vec!["_2^64~machine.UInt64~machine.Word"],
);
symbols.write().unwrap().declare_proc_parse(
"f+",
vec![],
vec![
"~machine::f64~machine::Word",
"~machine::f64~machine::Word",
"~machine.f64~machine.Word",
"~machine.f64~machine.Word",
],
vec!["~machine::f64~machine::Word"],
vec!["~machine.f64~machine.Word"],
);
symbols.write().unwrap().declare_proc_parse(
"f-",
vec![],
vec![
"~machine::f64~machine::Word",
"~machine::f64~machine::Word",
"~machine.f64~machine.Word",
"~machine.f64~machine.Word",
],
vec!["~machine::f64~machine::Word"],
vec!["~machine.f64~machine.Word"],
);
symbols.write().unwrap().declare_proc_parse(
"f*",
vec![],
vec![
"~machine::f64~machine::Word",
"~machine::f64~machine::Word",
"~machine.f64~machine.Word",
"~machine.f64~machine.Word",
],
vec!["~machine::f64~machine::Word"],
vec!["~machine.f64~machine.Word"],
);
symbols.write().unwrap().declare_proc_parse(
"f/",
vec![],
vec![
"~machine::f64~machine::Word",
"~machine::f64~machine::Word",
"~machine.f64~machine.Word",
"~machine.f64~machine.Word",
],
vec!["~machine::f64~machine::Word"],
vec!["~machine.f64~machine.Word"],
);
symbols.write().unwrap().declare_proc_parse(
"f%",
vec![],
vec![
"~machine::f64~machine::Word",
"~machine::f64~machine::Word",
"~machine.f64~machine.Word",
"~machine.f64~machine.Word",
],
vec!["~machine::f64~machine::Word"],
vec!["~machine.f64~machine.Word"],
);
linker.add_procedure("i+", tisc::Assembler::new().inst(tisc::VM_Instruction::IntAdd).build());
@ -199,8 +199,8 @@ pub fn init_runtime(linker: &mut Linker) -> Arc<RwLock<Scope>> {
symbols.write().unwrap().declare_proc_parse(
"@",
vec![],
vec!["<MutRef T~machine::Word>~machine::Address~machine::Word"],
vec!["T~machine::Word"],
vec!["<MutRef T~machine.Word>~machine.Address~machine.Word"],
vec!["T~machine.Word"],
);
/* Store to memory
*/
@ -208,8 +208,8 @@ pub fn init_runtime(linker: &mut Linker) -> Arc<RwLock<Scope>> {
"!",
vec![],
vec![
"<MutRef T~machine::Word>~machine::Address~machine::Word",
"T~machine::Word",
"<MutRef T~machine.Word>~machine.Address~machine.Word",
"T~machine.Word",
],
vec![],
);