Test that evaluation returns the same results in syntax and IR.

This commit is contained in:
2023-04-07 17:59:25 -07:00
parent f701598e5d
commit 8dfcc67e51
10 changed files with 333 additions and 1 deletions

15
src/eval.rs Normal file
View 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),
}