summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 471d164..4c0402b 100644
--- a/eval.c
+++ b/eval.c
@@ -483,8 +483,12 @@ static bool eval_set(Evaluator *ev, Expression *set, Value *to) {
} break;
default: break;
}
+ break;
case EXPR_TUPLE:
- /* TODO */
+ for (size_t i = 0; i < arr_len(set->tuple); i++) {
+ if (!eval_set(ev, &set->tuple[i], &to->tuple[i]))
+ return false;
+ }
break;
default:
assert(0);