diff options
author | glenda <glenda@cirno> | 2022-09-10 16:25:05 +0000 |
---|---|---|
committer | glenda <glenda@cirno> | 2022-09-10 16:25:05 +0000 |
commit | e2ebfbb7d19ff3b990eb51dc9843200053cbbf98 (patch) | |
tree | 986b0353a1179f803872b1578ebfe0acd83050bd /lexer.c | |
parent | d07d4afcb8acff3757394f2f9822d014f31fecf0 (diff) |
Improve the session a lot
Diffstat (limited to 'lexer.c')
-rw-r--r-- | lexer.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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); } |