mirror of
https://github.com/loot/yaml-cpp.git
synced 2026-07-27 14:13:42 -07:00
Finished parsing of basic data types (scalar, sequence, map).
This commit is contained in:
@@ -1,12 +1,16 @@
|
||||
#include "reader.h"
|
||||
#include "parser.h"
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
|
||||
int main()
|
||||
{
|
||||
std::ifstream fin("test.yaml");
|
||||
YAML::Reader reader(fin);
|
||||
YAML::Parser parser(fin);
|
||||
|
||||
YAML::Document doc;
|
||||
reader.GetNextDocument(doc);
|
||||
parser.GetNextDocument(doc);
|
||||
std::cout << doc;
|
||||
getchar();
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user