1
0
dust/src/abstract_tree/block.rs

21 lines
408 B
Rust
Raw Normal View History

2024-02-25 18:49:26 +00:00
use crate::{context::Context, error::RuntimeError};
use super::{AbstractTree, Statement, Value};
#[derive(Clone, Debug, PartialEq)]
pub struct Block {
statements: Vec<Statement>,
}
impl Block {
pub fn new(statements: Vec<Statement>) -> Self {
Self { statements }
}
}
impl AbstractTree for Block {
fn run(self, _: &Context) -> Result<Value, RuntimeError> {
todo!()
}
}