1
0
dust/src/abstract_tree/logic.rs

23 lines
569 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 enum Logic {
Equal(Statement, Statement),
NotEqual(Statement, Statement),
Greater(Statement, Statement),
Less(Statement, Statement),
GreaterOrEqual(Statement, Statement),
LessOrEqual(Statement, Statement),
And(Statement, Statement),
Or(Statement, Statement),
Not(Statement),
}
impl AbstractTree for Logic {
fn run(self, _: &Context) -> Result<Value, RuntimeError> {
todo!()
}
}