mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 12:41:17 +00:00
21 lines
302 B
C++
21 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);
|
|
}
|
|
}
|