Define Evaluator trait
This commit is contained in:
1 parent
9d49015fdb
commit
c2cab32c58
2 files changed
+7
No files matched your search
@@ -0,0 +1,6 @@
|
||||
pub trait Evaluator {
|
||||
type Expr;
|
||||
type Error;
|
||||
|
||||
fn eval(&mut self, input: Self::Expr) -> Result<Self::Expr, Self::Error>;
|
||||
}
|
||||
@@ -5,3 +5,4 @@ pub mod binding;
|
||||
pub mod lex;
|
||||
pub mod parse;
|
||||
pub mod print;
|
||||
pub mod eval;
|
||||
Reference in new issue
Block a user