bug fixes and performance improvements

This commit is contained in:
2023-05-07 22:35:38 +01:00
parent f3ce910f66
commit a604e40bad
167 changed files with 5965 additions and 4229 deletions

19
src/external/std.rs vendored
View File

@@ -1,6 +1,5 @@
use std::collections::HashMap;
use crate::project::{map_loader, Loader};
use crate::pipeline::ConstTree;
use crate::interner::Interner;
use super::bool::bool;
use super::cpsio::cpsio;
@@ -8,12 +7,10 @@ use super::conv::conv;
use super::str::str;
use super::num::num;
pub fn std() -> impl Loader {
map_loader(HashMap::from([
("cpsio", cpsio().boxed()),
("conv", conv().boxed()),
("bool", bool().boxed()),
("str", str().boxed()),
("num", num().boxed()),
]))
pub fn std(i: &Interner) -> ConstTree {
cpsio(i)
+ conv(i)
+ bool(i)
+ str(i)
+ num(i)
}