Add ast::node and handle<T*, Error> comparison

And parser test for literals fingerscrossed
This commit is good, innit? But there will also be second one, and dessert

Signed-off-by: CHatingPython <chatingpython@gmail.com>
This commit is contained in:
CHatingPython
2026-05-26 14:11:28 +02:00
committed by CHatingPython
parent 4a58e97812
commit 48593a4350
12 changed files with 148 additions and 17 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ parser::parser(std::string_view filename)
ast::node_handle<ast::program_node> parser::parse() & {
auto program = m_arena.allocate_shared<ast::program_node>();
while (!m_lexer.empty()) {
while (peek_token()->type != token_t::None && !m_lexer.empty()) {
program->push(std::move(parse_declaration()));
}