Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Sh0g0-1758 committed Feb 23, 2025
1 parent 370cffa commit 04339fb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions parser/parse_declaration.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ void parser::parse_declaration(
if (tokens[2].get_token() == token::TOKEN::OPEN_PARANTHESES) {
MAKE_SHARED(ast::AST_function_declaration_Node, decl);
parse_function_declaration(tokens, decl);
EXPECT(token::TOKEN::SEMICOLON);
declaration = std::static_pointer_cast<ast::AST_Declaration_Node>(decl);
declaration->set_type(ast::DeclarationType::FUNCTION);
} else {
Expand Down

0 comments on commit 04339fb

Please sign in to comment.