1
0
dust/src/abstract_tree/mod.rs

19 lines
423 B
Rust
Raw Normal View History

2024-02-25 18:49:26 +00:00
pub mod assignment;
pub mod block;
pub mod identifier;
pub mod logic;
pub mod r#loop;
pub mod statement;
pub mod value;
pub use self::{
assignment::Assignment, block::Block, identifier::Identifier, logic::Logic, r#loop::Loop,
statement::Statement, value::Value,
};
use crate::{context::Context, error::RuntimeError};
pub trait AbstractTree {
fn run(self, context: &Context) -> Result<Value, RuntimeError>;
}