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;
|
2022-03-05 10:57:23 +01:00
|
|
|
pub mod namespace;
|
2021-12-17 09:07:13 +01:00
|
|
|
pub mod script_fn;
|
|
|
|
pub mod stmt;
|
|
|
|
|
|
|
|
pub use ast::{ASTNode, AST};
|
2022-07-05 16:59:03 +02:00
|
|
|
#[cfg(not(feature = "no_custom_syntax"))]
|
|
|
|
pub use expr::CustomExpr;
|
|
|
|
pub use expr::{BinaryExpr, 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;
|
2022-01-30 10:27:13 +01:00
|
|
|
#[cfg(not(feature = "no_module"))]
|
2022-03-05 10:57:23 +01:00
|
|
|
pub use namespace::Namespace;
|
|
|
|
#[cfg(not(feature = "no_module"))]
|
2022-01-30 10:27:13 +01:00
|
|
|
#[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::{
|
2022-07-19 07:33:53 +02:00
|
|
|
CaseBlocksList, ConditionalExpr, OpAssignment, RangeCase, Stmt, StmtBlock, StmtBlockContainer,
|
|
|
|
SwitchCasesCollection, TryCatchBlock,
|
2022-02-16 05:57:26 +01:00
|
|
|
};
|
2021-12-17 09:07:13 +01:00
|
|
|
|
2022-06-05 13:35:18 +02:00
|
|
|
/// _(internals)_ Placeholder for a script-defined function.
|
|
|
|
/// Exported under the `internals` feature only.
|
2021-12-17 09:07:13 +01:00
|
|
|
#[cfg(feature = "no_function")]
|
2022-06-05 13:35:18 +02:00
|
|
|
pub type ScriptFnDef = ();
|