From a2274155bce516f904486e7f0ddf20d01093251b Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Wed, 6 Apr 2022 08:20:49 -0300 Subject: Add TODO.md file to keep track of open tasks --- src/parser.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/parser.c') diff --git a/src/parser.c b/src/parser.c index b76e32f..2c1c24f 100644 --- a/src/parser.c +++ b/src/parser.c @@ -198,8 +198,8 @@ parse_def(Parser *parser) { return NULL; } - // TODO: Making type checking mandatory for now until we introduce - // type inference. + // TODO: Making type definitions mandatory for now until we introduce type + // inference. Node *type = parse_type(parser); if (type == NULL) { return NULL; @@ -364,7 +364,6 @@ parse_paren(Parser *parser) { default: break; } - // TODO: Lookup value on symbol table. push_error(ERR_TYPE_PARSER, ERR_UNIMPLEMENTED, tok.line, tok.col); return NULL; } @@ -418,9 +417,7 @@ parse(Token *tokens) { // DEBUG: TOKENS printf("-- tokens --\n"); - for (size_t i = 0; i < array_size(tokens); i++) { - print_token(tokens[i]); - } + print_tokens(parser.tokens); printf("------------\n"); while (has_next(&parser)) { -- cgit v1.2.1