forked from katzen-cafe/iowo
15 lines
352 B
Rust
15 lines
352 B
Rust
|
use self::namespace::{GlobalNamespace, TypeDef};
|
||
|
|
||
|
pub mod namespace;
|
||
|
|
||
|
pub fn initialise_globals() -> GlobalNamespace {
|
||
|
let mut ns = GlobalNamespace::init();
|
||
|
|
||
|
let numeric = ns.register_trait("Numeric").unwrap();
|
||
|
|
||
|
ns.register_type("integer").unwrap().add_trait(&numeric);
|
||
|
ns.register_type("float").unwrap().add_trait(&numeric);
|
||
|
|
||
|
ns
|
||
|
}
|