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
/*
 * smartcalc v1.0.8
 * Copyright (c) Erhan BARIS (Ruslan Ognyanov Asenov)
 * Licensed under the GNU General Public License v2.0.
 */

#![no_std]
extern crate alloc;
extern crate lazy_static;
extern crate log;

pub const VERSION: &str = env!("CARGO_PKG_VERSION");

#[cfg(all(not(target_arch = "wasm32"), not(test)))]
extern crate libc_print;

pub(crate) mod types;
pub(crate) mod tokinizer;
pub(crate) mod syntax;
pub(crate) mod compiler;
pub(crate) mod constants;
pub(crate) mod tools;
pub(crate) mod logger;
pub(crate) mod formatter;
pub(crate) mod token;
pub(crate) mod config;
pub(crate) mod smartcalc;
pub(crate) mod variable;
pub(crate) mod session;

#[cfg(test)]
mod tests;

pub use smartcalc::SmartCalc;
pub use session::Session;
pub use config::SmartCalcConfig;
pub use types::SmartCalcAstType;
pub use types::FieldType;
pub use compiler::DataItem;
pub use token::ui_token::UiToken;
pub use token::ui_token::UiTokenType;
pub use smartcalc::RuleTrait;
pub use types::TokenType;
pub use types::NumberType;
pub use types::TimeOffset;