Set up util/parse for the new API

This commit is contained in:
beder
2011-09-10 23:03:02 -05:00
parent 2851f5f8c9
commit fb538c9490

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";