mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-05-08 11:37:53 +03:00
20 lines
302 B
C++
20 lines
302 B
C++
#include "parser.h"
|
|
#include "scanner.h"
|
|
|
|
namespace YAML
|
|
{
|
|
Parser::Parser(std::istream& in): m_pScanner(0)
|
|
{
|
|
m_pScanner = new Scanner(in);
|
|
}
|
|
|
|
Parser::~Parser()
|
|
{
|
|
delete m_pScanner;
|
|
}
|
|
|
|
void Parser::GetNextDocument(Document& document)
|
|
{
|
|
document.Parse(m_pScanner);
|
|
}
|
|
}
|