Basic Implementation of Plugins and Plugin Functions

This commit is contained in:
jhwgh1968
2020-06-02 21:44:26 -05:00
parent a5d8ce2e49
commit 27b8f9929d
5 changed files with 153 additions and 33 deletions

View File

@@ -75,10 +75,14 @@ mod engine;
mod error;
mod fn_call;
mod fn_func;
mod fn_native;
pub mod fn_native;
mod fn_register;
mod module;
mod optimize;
#[cfg(not(feature = "no_module"))]
pub mod plugin;
#[cfg(feature = "no_module")]
mod plugin;
pub mod packages;
mod parser;
mod result;
@@ -91,9 +95,8 @@ mod utils;
pub use any::Dynamic;
pub use engine::Engine;
pub use error::{ParseError, ParseErrorType};
#[cfg(feature = "plugins")]
pub use fn_register::{Plugin, RegisterPlugin};
pub use fn_register::{RegisterFn, RegisterResultFn};
pub use fn_register::RegisterPlugin;
pub use module::Module;
pub use parser::{ImmutableString, AST, INT};
pub use result::EvalAltResult;