2008-07-01 03:57:58 +04:00
|
|
|
#include "parser.h"
|
2008-06-30 10:51:22 +04:00
|
|
|
#include <fstream>
|
2008-07-01 03:57:58 +04:00
|
|
|
#include <iostream>
|
2008-06-26 02:45:08 +04:00
|
|
|
|
|
|
|
|
int main()
|
|
|
|
|
{
|
2008-06-30 10:51:22 +04:00
|
|
|
std::ifstream fin("test.yaml");
|
2008-07-01 03:57:58 +04:00
|
|
|
YAML::Parser parser(fin);
|
|
|
|
|
|
2008-06-30 10:51:22 +04:00
|
|
|
YAML::Document doc;
|
2008-07-01 10:28:10 +04:00
|
|
|
while(parser) {
|
|
|
|
|
std::cout << "---\n";
|
|
|
|
|
parser.GetNextDocument(doc);
|
|
|
|
|
std::cout << doc;
|
|
|
|
|
}
|
2008-07-01 03:57:58 +04:00
|
|
|
getchar();
|
2008-06-26 02:45:08 +04:00
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
}
|