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
#![deny(unused_must_use)]
#![deny(unreachable_patterns)]
#![allow(clippy::should_implement_trait)]
#![allow(clippy::new_without_default)]
#![allow(clippy::inherent_to_string)]
#[macro_use]
mod macros;
#[macro_use]
mod error;
mod compile;
mod eval;
mod interner;
mod omap;
pub mod prelude;
mod symbol;
mod template;
#[cfg(feature = "repl")]
pub mod repl;
pub use {
compile::{
compile,
lexer::scan,
parser::parse,
stmt::Stmt,
syntax::{Syntax, SyntaxTrait},
tag::Tag,
token::Token,
},
error::{line_and_col, print_error, Error, ErrorKind},
eval::{
args::Args,
builtin,
env::{eval, render, Env, Jump, Scope},
value::{self, Fn, Native, Object, Special, Value},
},
interner::Interner,
omap::OMap,
symbol::Symbol,
template::Template,
};
pub type Result<T> = std::result::Result<T, Error>;