mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 05:51:27 +12:00
30 lines
454 B
C++
30 lines
454 B
C++
#include "parser.h"
|
|
#include "node.h"
|
|
#include "token.h"
|
|
|
|
#include <iostream>
|
|
|
|
namespace YAML
|
|
{
|
|
Parser::Parser(std::istream& in): m_scanner(in)
|
|
{
|
|
}
|
|
|
|
Parser::~Parser()
|
|
{
|
|
}
|
|
|
|
void Parser::GetNextDocument(Document& document)
|
|
{
|
|
// scan and output, for now
|
|
while(1) {
|
|
Token *pToken = m_scanner.GetNextToken();
|
|
if(!pToken)
|
|
break;
|
|
|
|
std::cout << *pToken << std::endl;
|
|
delete pToken;
|
|
}
|
|
getchar();
|
|
}
|
|
}
|