summaryrefslogtreecommitdiff
path: root/src/eval
diff options
context:
space:
mode:
authorMartin Haug <mhaug@live.de>2021-05-29 12:25:10 +0200
committerLaurenz <laurmaedje@gmail.com>2021-05-31 22:33:40 +0200
commit9f77f09aacd1fb0fd6138a6d16ed2755f6bfae3f (patch)
treeeba4a1609f178b3f2e6838ca9ee3c013e420621f /src/eval
parent0bfee5b7772338fd39bbf708d3e31ea7bcec859b (diff)
Parse import and include expressions
Co-Authored-By: Laurenz <laurmaedje@gmail.com>
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 d841dbae..0af9dd6b 100644
--- a/src/eval/mod.rs
+++ b/src/eval/mod.rs
@@ -146,6 +146,8 @@ impl Eval for Expr {
Self::If(ref v) => v.eval(ctx),
Self::While(ref v) => v.eval(ctx),
Self::For(ref v) => v.eval(ctx),
+ Self::Import(ref v) => v.eval(ctx),
+ Self::Include(ref v) => v.eval(ctx),
}
}
}
@@ -565,3 +567,19 @@ impl Eval for ForExpr {
}
}
}
+
+impl Eval for ImportExpr {
+ type Output = Value;
+
+ fn eval(&self, _: &mut EvalContext) -> Self::Output {
+ todo!()
+ }
+}
+
+impl Eval for IncludeExpr {
+ type Output = Value;
+
+ fn eval(&self, _: &mut EvalContext) -> Self::Output {
+ todo!()
+ }
+}