fix: new lexer is linked to everything
This commit is contained in:
parent
d5a1ec3ca6
commit
71e58e38b8
6 changed files with 26 additions and 22 deletions
|
|
@ -67,7 +67,7 @@ struct ast *parse_list(struct lexer_context *ctx)
|
|||
struct token *token = PEEK_TOKEN();
|
||||
|
||||
// and_or
|
||||
current_node = parse_and_or();
|
||||
current_node = parse_and_or(ctx);
|
||||
if (current_node == NULL)
|
||||
return NULL;
|
||||
result_list = list_append(result_list, current_node);
|
||||
|
|
@ -90,7 +90,7 @@ struct ast *parse_list(struct lexer_context *ctx)
|
|||
token = PEEK_TOKEN();
|
||||
}
|
||||
}
|
||||
result_list = list_append(result_list, current_node);
|
||||
// result_list = list_append(result_list, current_node);
|
||||
|
||||
return ast_create_list(result_list);
|
||||
}
|
||||
|
|
@ -337,7 +337,7 @@ struct ast *parse_else_clause(struct lexer_context *ctx)
|
|||
}
|
||||
|
||||
if (result == NULL)
|
||||
result = ast_create_void(ctx);
|
||||
result = ast_create_void();
|
||||
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue