clover_std/
lib.rs

1use clover::State;
2use clover::helper::make_reference;
3
4mod io;
5mod random;
6mod math;
7mod helper;
8
9
10pub fn clover_std_inject_to(state: &mut State) {
11    state.add_native_function("print", io::print);
12
13    state.add_native_model("IO", make_reference(io::IO {}));
14    state.add_native_model("Random", make_reference(random::Random {}));
15    state.add_native_model("Math", make_reference(math::Math {}));
16}