diff options
-rw-r--r-- | src/evaluator.zig | 3 | ||||
-rw-r--r-- | todo/3.src | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/evaluator.zig b/src/evaluator.zig index e8e1bc5..f8bb052 100644 --- a/src/evaluator.zig +++ b/src/evaluator.zig @@ -90,7 +90,8 @@ pub const Evaluator = struct { std.debug.print("Identifier {any} not found\n", .{identifier.name}); return EvaluatorError.EvaluationError; }; - return try self.get_expression_value(expression.?); + + return try self.get_expression_value(expression orelse return EvaluatorError.EvaluationError); }, }; } diff --git a/todo/3.src b/todo/3.src deleted file mode 100644 index 29ade8c..0000000 --- a/todo/3.src +++ /dev/null @@ -1 +0,0 @@ -let x = x; |