mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-10 04:51:17 +00:00
Finished parsing of basic data types (scalar, sequence, map).
This commit is contained in:
10
main.cpp
10
main.cpp
@@ -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