2021-12-17 09:07:13 +01:00
|
|
|
//! Module defining the AST (abstract syntax tree).
|
|
|
|
|
|
|
|
pub mod ast;
|
|
|
|
pub mod expr;
|
|
|
|
pub mod flags;
|
|
|
|
pub mod ident;
|
|
|
|
pub mod script_fn;
|
|
|
|
pub mod stmt;
|
|
|
|
|
|
|
|
pub use ast::{ASTNode, AST};
|
2021-12-17 09:32:34 +01:00
|
|
|
pub use expr::{BinaryExpr, CustomExpr, Expr, FnCallExpr, FnCallHashes};
|
2022-02-25 04:42:59 +01:00
|
|
|
pub use flags::{ASTFlags, FnAccess};
|
2021-12-17 09:07:13 +01:00
|
|
|
pub use ident::Ident;
|
2022-01-30 10:27:13 +01:00
|
|
|
#[cfg(not(feature = "no_module"))]
|
|
|
|
#[cfg(not(feature = "no_function"))]
|
|
|
|
pub use script_fn::EncapsulatedEnviron;
|
2021-12-17 09:07:13 +01:00
|
|
|
#[cfg(not(feature = "no_function"))]
|
|
|
|
pub use script_fn::{ScriptFnDef, ScriptFnMetadata};
|
2022-02-16 05:57:26 +01:00
|
|
|
pub use stmt::{
|
|
|
|
ConditionalStmtBlock, OpAssignment, Stmt, StmtBlock, StmtBlockContainer, SwitchCases,
|
|
|
|
TryCatchBlock,
|
|
|
|
};
|
2021-12-17 09:07:13 +01:00
|
|
|
|
2021-12-17 09:32:34 +01:00
|
|
|
#[cfg(not(feature = "no_float"))]
|
|
|
|
pub use expr::FloatWrapper;
|
|
|
|
|
2021-12-17 09:07:13 +01:00
|
|
|
#[cfg(feature = "no_function")]
|
|
|
|
pub struct ScriptFnDef;
|