Add comma to interpreter

This commit is contained in:
ala89 2023-12-15 14:13:10 +01:00
parent eb29c03359
commit eafb9c1d5d

View File

@ -46,6 +46,7 @@ EvalResult eval(Node &ast, Memory &memory) {
if (holds_alternative<InnerNode>(ast)) {
InnerNode node = get<InnerNode>(ast);
switch (node.type) {
case NodeType::Comma:
case NodeType::Prog:
eval(node.children[0], memory);
return eval(node.children[1], memory);