complete building AST