can now parse prefix expressions!

This commit is contained in:
Karma Riuk
2025-07-09 12:02:01 +02:00
parent c7a30a0028
commit 7f1cc6f45e
6 changed files with 118 additions and 52 deletions

View File

@@ -41,11 +41,13 @@ namespace parser {
ast::expression_stmt* parse_expression_stmt();
bool expect_next(token::type);
void next_error(token::type);
void unkown_prefix_error(token::token);
void register_prefix(token::type, prefix_parse_fn);
void register_infix(token::type, infix_parse_fn);
ast::expression* parse_identifier();
ast::expression* parse_integer();
ast::expression* parse_prefix_expr();
};
} // namespace parser