From e2ebfbb7d19ff3b990eb51dc9843200053cbbf98 Mon Sep 17 00:00:00 2001 From: glenda Date: Sat, 10 Sep 2022 16:25:05 +0000 Subject: Improve the session a lot --- lexer.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lexer.c') diff --git a/lexer.c b/lexer.c index 1a6fd0f..68e1fa0 100644 --- a/lexer.c +++ b/lexer.c @@ -84,9 +84,7 @@ lexline(InputStream *input, int toplevel) case L'⍝': while(peek != '\n' && !inputEOF(input)) peek = getrune(input); - if(stmt->ntoks == 0) - continue; - goto end; + continue; case L'⍬': stmt->toks[stmt->ntoks] = allocdatum(ArrayTag, 0); stmt->toks[stmt->ntoks]->array = allocarray(AtypeInt, 1, 0); @@ -272,7 +270,7 @@ syntax_error: free(stmt); throwerror(err, ESyntax); } - /* print("Got token: %S\n", ppdatum(stmt->toks[stmt->ntoks])); */ + // print("Got token: %S\n", ppdatum(stmt->toks[stmt->ntoks])); stmt->ntoks++; peek = getrune(input); } -- cgit v1.2.3