Commit be925472 authored by Jesse Beder's avatar Jesse Beder
Browse files

Added old parse utility

parent c2251264
...@@ -37,13 +37,8 @@ public: ...@@ -37,13 +37,8 @@ public:
void parse(std::istream& input) void parse(std::istream& input)
{ {
try { try {
YAML::Parser parser(input); YAML::Node doc = YAML::Load(input);
YAML::Node doc; std::cout << doc << "\n";
while(parser.GetNextDocument(doc)) {
YAML::Emitter emitter;
emitter << doc;
std::cout << emitter.c_str() << "\n";
}
} catch(const YAML::Exception& e) { } catch(const YAML::Exception& e) {
std::cerr << e.what() << "\n"; std::cerr << e.what() << "\n";
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment