mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 05:51:27 +12:00
19 lines
No EOL
293 B
C++
19 lines
No EOL
293 B
C++
#include "parser.h"
|
|
#include <fstream>
|
|
#include <iostream>
|
|
|
|
int main()
|
|
{
|
|
std::ifstream fin("test.yaml");
|
|
YAML::Parser parser(fin);
|
|
|
|
YAML::Document doc;
|
|
while(parser) {
|
|
std::cout << "---\n";
|
|
parser.GetNextDocument(doc);
|
|
std::cout << doc;
|
|
}
|
|
getchar();
|
|
|
|
return 0;
|
|
} |