diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-01-28 20:02:42 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-01-28 20:02:42 +0100 |
| commit | 76b1d4a93f6d045901f17db46d82a97c9f407703 (patch) | |
| tree | f851460a038a4c543e3900352ec1a2903b6c9849 /src/eval/mod.rs | |
| parent | 2d97d406aced1f1ab7d3bc459e31bb0eff92b892 (diff) | |
Parse `show` and `wrap` expressions
Diffstat (limited to 'src/eval/mod.rs')
| -rw-r--r-- | src/eval/mod.rs | 18 |
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; |
