convert Proc to Parser::AST::Node, using parser gem.