summaryrefslogtreecommitdiff
path: root/src/parser.c
diff options
context:
space:
mode:
authorPreston Pan <preston@nullring.xyz>2023-01-04 12:03:26 -0800
committerPreston Pan <preston@nullring.xyz>2023-01-04 12:03:26 -0800
commit4fc423446c5f093483a4f20094904fa8b4ff88ba (patch)
tree54d07d80c6de6c661d8fa6397ccbdb3b9d97cbad /src/parser.c
parent2fe28946e426e241e87e8381d7a62e73b9278385 (diff)
parsing mostly works
Diffstat (limited to 'src/parser.c')
-rw-r--r--src/parser.c2
1 files changed, 0 insertions, 2 deletions
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);