rhai/src/ast/mod.rs

29 lines
753 B
Rust
Raw Normal View History

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-26 10:41:27 +01:00
pub use flags::{ASTFlags, FnAccess};
2021-12-17 09:07:13 +01:00
pub use ident::Ident;
#[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"))]
2022-02-26 10:41:27 +01:00
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;