Fix function parsing

This commit is contained in:
Sasha Koshka 2024-02-07 03:22:00 -05:00
parent 21f55472fb
commit aaff208be2
1 changed files with 1 additions and 1 deletions

View File

@ -35,8 +35,8 @@ func (this *Parser) parseTopLevel () error {
if this.token.Is(lexer.LBracket) {
function, err := this.parseFunctionCore(access)
if err != nil { return err }
// TODO add toplevel entity
this.tree.AddDeclaration(function)
return nil
}
// TypeIdent: Method, or Typedef