mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 14:01:25 +12:00
Started the parser.
This commit is contained in:
parent
ed6c294749
commit
b6a0ef207b
12 changed files with 143 additions and 276 deletions
21
reader.cpp
Normal file
21
reader.cpp
Normal file
|
@ -0,0 +1,21 @@
|
|||
#include "reader.h"
|
||||
#include "scanner.h"
|
||||
#include "parser.h"
|
||||
|
||||
namespace YAML
|
||||
{
|
||||
Reader::Reader(std::istream& in): m_pParser(0)
|
||||
{
|
||||
m_pParser = new Parser(in);
|
||||
}
|
||||
|
||||
Reader::~Reader()
|
||||
{
|
||||
delete m_pParser;
|
||||
}
|
||||
|
||||
void Reader::GetNextDocument(Document& document)
|
||||
{
|
||||
m_pParser->GetNextDocument(document);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue