Add git hooks

Signed-off-by: CHatingPython <chatingpython@gmail.com>
This commit is contained in:
CHatingPython
2026-05-26 13:14:37 +02:00
committed by CHatingPython
parent 7017d83204
commit 4a58e97812
9 changed files with 70 additions and 43 deletions
+2 -2
View File
@@ -58,12 +58,12 @@ ast::node_handle<ast::declaration_node> parser::parse_declaration() {
if (body.has_error()) return body;
return ast::node_handle<ast::function_definition_node>{ first.location(),
m_arena,
name,
*name,
std::move(body) };
}
case token_t::Semicolon: {
m_peekBuffer.clear();
return ast::node_handle<ast::function_declarartion_node>{ first.location(), m_arena, name };
return ast::node_handle<ast::function_declarartion_node>{ first.location(), m_arena, *name };
}
default: return { tok.location(), "unexpected token "s + tok->type };
}