1#[cfg(test)]
2mod tests;
3
4pub type Int = i64;
5
6mod expression;
7
8pub use expression::builtin::Builtin;
9pub use expression::eval;
10pub use expression::{Expression, SliceParams};
11mod env;
15pub use env::*;
16
17mod errors;
18pub use errors::LmError;
19pub use errors::error_runtime::*;
20pub use errors::error_syntax::*;
21
22mod parser;
23pub use parser::*;
24
25mod tokens;
26pub use tokens::{Token, TokenKind};
27
28mod tokenizer;
29pub use tokenizer::*;
30
31pub mod repl;
32
33pub mod runtime;
34pub use runtime::{parse, parse_and_eval};
35
36pub mod syntax;
37pub use syntax::highlight;
38
39pub mod ai;
40pub mod cmdhelper;
41pub mod prompt;
42
43pub mod modules;
44pub use modules::get_builtin;
45
46pub mod keyhandler;
47pub const VERSION: &str = env!("CARGO_PKG_VERSION");
51
52pub static mut PRINT_DIRECT: bool = true;
54pub static mut MAX_RUNTIME_RECURSION: usize = 800;
56pub static mut MAX_SYNTAX_RECURSION: usize = 100;