rl_lang/interpreter/stdlib/debug/
mod.rs1mod assert;
4mod assert_approx_eq;
5mod assert_eq;
6mod assert_ge;
7mod assert_gt;
8mod assert_le;
9mod assert_lt;
10mod assert_ne;
11mod bench;
12pub mod common;
13mod dbg;
14mod panic;
15mod todo;
16mod type_of;
17mod unreachable;
18
19pub const KEYWORDS: &[&str] = &[
20 "assert",
21 "assert_eq",
22 "assert_ne",
23 "assert_lt",
24 "assert_le",
25 "assert_gt",
26 "assert_ge",
27 "assert_approx_eq",
28 "panic",
29 "unreachable",
30 "todo",
31 "dbg",
32 "type_of",
33 "bench",
34];
35
36pub fn module() -> crate::interpreter::native::Module {
37 use crate::interpreter::native::Module;
38 Module::new("debug")
39 .with_raw_function("assert", assert::func)
40 .with_raw_function("assert_eq", assert_eq::func)
41 .with_raw_function("assert_ne", assert_ne::func)
42 .with_raw_function("assert_lt", assert_lt::func)
43 .with_raw_function("assert_le", assert_le::func)
44 .with_raw_function("assert_gt", assert_gt::func)
45 .with_raw_function("assert_ge", assert_ge::func)
46 .with_raw_function("assert_approx_eq", assert_approx_eq::func)
47 .with_raw_function("panic", panic::func)
48 .with_raw_function("unreachable", unreachable::func)
49 .with_raw_function("todo", todo::func)
50 .with_function("dbg", dbg::func)
51 .with_function("type_of", type_of::func)
52 .with_function("bench", bench::func)
53}