From eafb9c1d5d8f44d5ba511922c08725a1a440c74e Mon Sep 17 00:00:00 2001 From: ala89 Date: Fri, 15 Dec 2023 14:13:10 +0100 Subject: [PATCH] Add comma to interpreter --- src/interpreter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/interpreter.cpp b/src/interpreter.cpp index 37303fe..5243ac9 100644 --- a/src/interpreter.cpp +++ b/src/interpreter.cpp @@ -46,6 +46,7 @@ EvalResult eval(Node &ast, Memory &memory) { if (holds_alternative(ast)) { InnerNode node = get(ast); switch (node.type) { + case NodeType::Comma: case NodeType::Prog: eval(node.children[0], memory); return eval(node.children[1], memory);