aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorc+12023-05-15 13:03:59 -0400
committerc+12023-05-15 13:03:59 -0400
commit60fa02f768bb7cadef3a1878b11eff463cecaadf (patch)
tree602e87c6ccb53f89fc75cd51648da97c434db3b4
parentc6c396ad67ab2413d068ffb25d96a5b0a0ba17ef (diff)
removed things that are not there anymore (because i removed them)
-rw-r--r--src/include/main.h0
-rw-r--r--src/parser.c7
2 files changed, 6 insertions, 1 deletions
diff --git a/src/include/main.h b/src/include/main.h
deleted file mode 100644
index e69de29..0000000
--- a/src/include/main.h
+++ /dev/null
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);
}
}
}