Skip to main content

rl_lang/interpreter/stdlib/rl/
mod.rs

1//! `std::rl`
2
3mod check;
4mod eval;
5mod eval_isolated;
6mod lex;
7mod rl_version;
8mod source_name;
9
10use crate::interpreter::native::Module;
11
12pub const KEYWORDS: &[&str] = &[
13    "lex",
14    "eval",
15    "eval_isolated",
16    "check",
17    "rl_version",
18    "source_name",
19];
20
21pub fn module() -> Module {
22    Module::new("rl")
23        .with_function("lex", lex::func)
24        .with_function("eval", eval::func)
25        .with_function("eval_isolated", eval_isolated::func)
26        .with_function("check", check::func)
27        .with_function("rl_version", rl_version::func)
28        .with_function("source_name", source_name::func)
29}