Load function into root AST