Define Evaluator trait

This commit is contained in:
cdo committed 2026-09-26 10:25:59 +01:00
1 parent 9d49015fdb
commit c2cab32c58
2 files changed
+7

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
pub trait Evaluator {
type Expr;
type Error;
fn eval(&mut self, input: Self::Expr) -> Result<Self::Expr, Self::Error>;
}
+1
View File
@@ -5,3 +5,4 @@ pub mod binding;
pub mod lex;
pub mod parse;
pub mod print;
pub mod eval;