Set up util/parse for the new API

This commit is contained in:
Jesse Beder 2011-09-10 23:03:02 -05:00
parent 80cf3c98db
commit 03fc837236

View File

@ -46,7 +46,8 @@ void parse(std::istream& input)
std::cout << emitter.c_str() << "\n";
}
#else
// TODO: Parse with new API
YAML::Node doc = YAML::Parse(input);
std::cout << doc << "\n";
#endif
} catch(const YAML::Exception& e) {
std::cerr << e.what() << "\n";