Upgrade a previus AST implementation