From 4fc423446c5f093483a4f20094904fa8b4ff88ba Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Wed, 4 Jan 2023 12:03:26 -0800 Subject: parsing mostly works --- src/parser.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/parser.c') diff --git a/src/parser.c b/src/parser.c index ac4d709..2f592b9 100644 --- a/src/parser.c +++ b/src/parser.c @@ -110,7 +110,6 @@ ast_t *parse_function_args(parser_t *parser) { } ast_t *parse_function(parser_t *parser) { - parser_move(parser); parser_eat(parser, TOKEN_LPAREN); /* TODO: actually write a helper function that also keeps track of the amount of arguments and checks that they are all identifiers.*/ @@ -166,7 +165,6 @@ ast_t *parse_list(parser_t *parser) { cur->cdr = init_ast_pair(NULL, NULL); cur = cur->cdr; first_entry = false; - parser_move(parser); current_token = parser->tokens[parser->i]; } parser_move(parser); -- cgit