-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathrust_core.rs
83 lines (66 loc) · 1.66 KB
/
rust_core.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
// This module will hold core function and macro primitives that aren't special cases
// (like the quote macro, or let), and can't be implemented in clojure itself
// language core functions
pub(crate) mod eval;
pub use self::eval::*;
// macros
pub(crate) mod do_macro;
pub use self::do_macro::*;
// namespacing
pub(crate) mod ns;
pub use self::ns::*;
pub(crate) mod refer;
pub use self::refer::*;
// arithmetics
pub(crate) mod _plus_;
pub use self::_plus_::*;
pub(crate) mod _subtract_;
pub use self::_subtract_::*;
pub(crate) mod _divide_;
pub use self::_divide_::*;
pub(crate) mod _multiply_;
pub use self::_multiply_::*;
pub(crate) mod rand;
pub use self::rand::*;
pub(crate) mod rand_int;
pub use self::rand_int::*;
// string
pub(crate) mod str;
pub use self::str::*;
// operations on collections
pub(crate) mod nth;
pub use self::nth::*;
pub(crate) mod concat;
pub use self::concat::*;
pub(crate) mod assoc;
pub use self::assoc::*;
pub(crate) mod get;
pub use self::get::*;
pub(crate) mod map;
pub use self::map::*;
pub(crate) mod cons;
pub use self::cons::*;
pub(crate) mod more;
pub use self::more::*;
pub(crate) mod first;
pub use self::first::*;
pub(crate) mod second;
pub use self::second::*;
// input and output
pub(crate) mod system_newline;
pub use self::system_newline::*;
pub(crate) mod flush_stdout;
pub use self::flush_stdout::*;
pub(crate) mod print_string;
pub use self::print_string::*;
pub(crate) mod string_print;
pub use self::string_print::*;
pub(crate) mod read_line;
pub use self::read_line::*;
// other
pub(crate) mod slurp;
pub use self::slurp::*;
pub(crate) mod load_file;
pub use self::load_file::*;
pub(crate) mod equals;
pub use self::equals::*;