Added sandbox to play with

This commit is contained in:
Jesse Beder
2012-05-20 01:46:08 -05:00
parent d8bdeb5b51
commit 39165338e0
2 changed files with 20 additions and 0 deletions

18
util/sandbox.cpp Normal file
View File

@@ -0,0 +1,18 @@
#include "yaml-cpp/yaml.h"
#include <iostream>
int main()
{
YAML::Emitter out;
out << YAML::BeginSeq;
out << "foo";
out << YAML::Comment("Skills");
out << YAML::BeginMap;
out << YAML::Key << "attack" << YAML::Value << 23;
out << YAML::Key << "intelligence" << YAML::Value << 56;
out << YAML::EndMap;
out << YAML::EndSeq;
std::cout << out.c_str() << "\n";
return 0;
}