From 7a8688c8931f87fad604f5b49596c7c331814350 Mon Sep 17 00:00:00 2001 From: inglorion Date: Mon, 14 Jul 2014 00:59:24 -0700 Subject: [PATCH] made Antimony reader accept expressions of any length --- src/antimony_reader.voo | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/antimony_reader.voo b/src/antimony_reader.voo index 9ec1536..ea309d9 100644 --- a/src/antimony_reader.voo +++ b/src/antimony_reader.voo @@ -77,10 +77,9 @@ end function align read_expr: function stream lookahead - let capacity 8 - let items auto-words capacity - let i 0 + let params call dynarray 0 0 let item 0 + let i 0 goto read_expr_loop read_expr_read_byte: @@ -109,7 +108,7 @@ read_expr_loop: ifeq item _antimony_reader_eof goto read_expr_done end if - set-word items i item + call dynarray_add params item set i add i 1 goto read_expr_loop @@ -117,8 +116,7 @@ read_expr_done: ifeq i 0 return -1 end if - let code call array i items - return code + return call dynarray_to_array params end function align -- 2.11.4.GIT