Test that evaluation returns the same results in syntax and IR.
This commit is contained in:
15
src/eval.rs
Normal file
15
src/eval.rs
Normal file
@@ -0,0 +1,15 @@
|
||||
mod env;
|
||||
mod primop;
|
||||
mod value;
|
||||
|
||||
pub use env::{EvalEnvironment, LookupError};
|
||||
pub use primop::PrimOpError;
|
||||
pub use value::Value;
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, thiserror::Error)]
|
||||
pub enum EvalError {
|
||||
#[error(transparent)]
|
||||
Lookup(#[from] LookupError),
|
||||
#[error(transparent)]
|
||||
PrimOp(#[from] PrimOpError),
|
||||
}
|
||||
Reference in New Issue
Block a user