mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 05:51:27 +12:00
Beginning of first attempt to parse.
Will be completely wiped, I think, in favor of a Scanner (to tokens), then Parser mechanism.
This commit is contained in:
parent
4ed7f62431
commit
bcbca461de
11 changed files with 247 additions and 9 deletions
|
@ -1,5 +1,6 @@
|
|||
#include "document.h"
|
||||
#include "node.h"
|
||||
#include "parser.h"
|
||||
#include <fstream>
|
||||
|
||||
namespace YAML
|
||||
|
@ -29,7 +30,10 @@ namespace YAML
|
|||
Clear();
|
||||
|
||||
std::ifstream fin(fileName.c_str());
|
||||
m_pRoot = new Node;
|
||||
m_pRoot->Read(fin);
|
||||
Parser parser(fin);
|
||||
if(!parser)
|
||||
return;
|
||||
|
||||
m_pRoot = parser.ReadNextNode();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue