Refactor code base and split into more module files.

This commit is contained in:
Stephen Chung
2020-05-05 12:24:13 +08:00
parent 143861747d
commit c03b162b7e
8 changed files with 186 additions and 143 deletions

View File

@@ -76,6 +76,7 @@ mod error;
mod fn_call;
mod fn_func;
mod fn_register;
mod module;
mod optimize;
pub mod packages;
mod parser;
@@ -83,9 +84,10 @@ mod result;
mod scope;
mod stdlib;
mod token;
mod utils;
pub use any::Dynamic;
pub use engine::{calc_fn_spec as calc_fn_hash, Engine};
pub use engine::Engine;
pub use error::{ParseError, ParseErrorType};
pub use fn_call::FuncArgs;
pub use fn_register::{RegisterDynamicFn, RegisterFn, RegisterResultFn};
@@ -93,6 +95,7 @@ pub use parser::{AST, INT};
pub use result::EvalAltResult;
pub use scope::Scope;
pub use token::Position;
pub use utils::calc_fn_spec as calc_fn_hash;
#[cfg(not(feature = "no_function"))]
pub use fn_func::Func;