ssearch::build_ast implemented