summaryrefslogtreecommitdiff
path: root/src/eval
diff options
context:
space:
mode:
Diffstat (limited to 'src/eval')
-rw-r--r--src/eval/mod.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/eval/mod.rs b/src/eval/mod.rs
index 58400f5a..2023004f 100644
--- a/src/eval/mod.rs
+++ b/src/eval/mod.rs
@@ -383,6 +383,8 @@ impl Eval for Expr {
Self::Binary(v) => v.eval(ctx),
Self::Let(v) => v.eval(ctx),
Self::Set(v) => v.eval(ctx),
+ Self::Show(v) => v.eval(ctx),
+ Self::Wrap(v) => v.eval(ctx),
Self::If(v) => v.eval(ctx),
Self::While(v) => v.eval(ctx),
Self::For(v) => v.eval(ctx),
@@ -759,6 +761,22 @@ impl Eval for SetExpr {
}
}
+impl Eval for ShowExpr {
+ type Output = Value;
+
+ fn eval(&self, _: &mut EvalContext) -> TypResult<Self::Output> {
+ Err("show rules are not yet implemented").at(self.span())
+ }
+}
+
+impl Eval for WrapExpr {
+ type Output = Value;
+
+ fn eval(&self, _: &mut EvalContext) -> TypResult<Self::Output> {
+ Err("wrap is not yet implemented").at(self.span())
+ }
+}
+
impl Eval for IfExpr {
type Output = Value;