From dc9b7f961d1c5f39a07085c9dbad8d94bbacde70 Mon Sep 17 00:00:00 2001 From: peter Date: Sat, 22 Aug 2026 17:25:54 +0000 Subject: Small set of changes to make the tests pass - meaning the scanner understands the code, not much else FossilOrigin-Name: d21c4a18581a61da466c0fbfdf73881bec55ea01091ef67abda1d10e17f8d358 --- src/lib/eval.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'src/lib/eval.c') diff --git a/src/lib/eval.c b/src/lib/eval.c index 07bbedd..f0cdc55 100644 --- a/src/lib/eval.c +++ b/src/lib/eval.c @@ -3,7 +3,17 @@ struct aplwc_value * eval_line(struct aplwc_line *line) { - assert(line->aplwc->last_error == APLWC_OK); - line->aplwc->last_error = APLWC_NOT_YET_IMPLEMENTED; - return NULL; + struct aplwc_value *value; + struct aplwc *aplwc; + + aplwc = line->aplwc; + assert(aplwc->last_error == APLWC_OK); + + value = memory_alloc_aplwc_value(&aplwc->memory); + if(value == NULL) + aplwc->last_error = APLWC_OUT_OF_MEMORY; + value->aplwc = aplwc; + value->tag = VALUE_NULL; + + return value; } -- cgit v1.2.3