diff options
author | c+1 | 2023-05-15 17:37:11 -0400 |
---|---|---|
committer | c+1 | 2023-05-15 17:37:11 -0400 |
commit | b2aa09bf1958952836e4c2664af122458d246a8b (patch) | |
tree | 8cfecba97bd35000cd14d42dbafe9f297ac5b2c1 /src/parser.c | |
parent | c6e575eaa6e9271f35137e71d9fff54fbd9cf5ca (diff) |
parse the parse
Diffstat (limited to 'src/parser.c')
-rw-r--r-- | src/parser.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/parser.c b/src/parser.c index 4da693b..01b252c 100644 --- a/src/parser.c +++ b/src/parser.c @@ -49,8 +49,9 @@ tree_t* parser_parse_chunk(parser_t* parser) { break; } default: { - fputs("smthn smthn \"invalid syntax,\" idk.", stderr); - exit(1); + log_dbg("Skiping non-keyword token"); + lexer_next(parser->lexer); + break; } } } |