klisp

an open source interpreter for the Kernel Programming Language.
git clone http://git.hanabi.in/repos/klisp.git
Log | Files | Refs | README

commit e6b2a266cce8346dfd2ae48d84440eef7e37fb14
parent a273cea706e2bbf56c544cd606c3c6f577faa2ac
Author: Andres Navarro <canavarro82@gmail.com>
Date:   Wed, 13 Apr 2011 00:19:01 -0300

Added some comments on how to process exactness and radix prefixes.

Diffstat:
Msrc/ktoken.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/ktoken.c b/src/ktoken.c @@ -270,6 +270,7 @@ TValue ktok_read_token (klisp_State *K) } case '"': return ktok_read_string(K); +/* TODO use read_until_delimiter in all these cases */ case '#': return ktok_read_special(K); case '0': case '1': case '2': case '3': case '4': @@ -499,6 +500,10 @@ TValue ktok_read_string(klisp_State *K) ** Special constants (starting with "#") ** (Special number syntax, char constants, #ignore, #inert, srfi-38 tokens) */ + +/* TODO always read till delimiter, then process the array instead + of reading one by one. Do the same for numbers, use the IMath functions + even */ TValue ktok_read_special(klisp_State *K) { /* discard the '#' */