From 60fa02f768bb7cadef3a1878b11eff463cecaadf Mon Sep 17 00:00:00 2001 From: c+1 Date: Mon, 15 May 2023 13:03:59 -0400 Subject: removed things that are not there anymore (because i removed them) --- src/include/main.h | 0 src/parser.c | 7 ++++++- 2 files changed, 6 insertions(+), 1 deletion(-) delete mode 100644 src/include/main.h (limited to 'src') diff --git a/src/include/main.h b/src/include/main.h deleted file mode 100644 index e69de29..0000000 diff --git a/src/parser.c b/src/parser.c index a7bf1b5..a9ee6d5 100644 --- a/src/parser.c +++ b/src/parser.c @@ -31,7 +31,7 @@ void parser_check_expect(parser_t* parser, int token_type) { // creates the abstract syntax tree tree_t* parser_parse(parser_t* parser) { - return parser_parse_chunks(); + return parser_parse_chunks(parser); } tree_t* parser_parse_token_id(parser_t* parser) { @@ -47,6 +47,11 @@ tree_t* parser_parse_chunk(parser_t* parser) { switch (parser->token->type) { case TOKEN_KEYWORD: { return parser_parse_keyword(parser); + break; + } + default: { + fputs("smthn smthn \"invalid syntax,\" idk.", stderr); + exit(1); } } } -- cgit v1.2.3