mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 05:51:27 +12:00
Started the scanner.
This commit is contained in:
parent
bcbca461de
commit
8ae7b48188
5 changed files with 358 additions and 4 deletions
10
document.cpp
10
document.cpp
|
@ -1,6 +1,7 @@
|
|||
#include "document.h"
|
||||
#include "node.h"
|
||||
#include "parser.h"
|
||||
#include "scanner.h"
|
||||
#include <fstream>
|
||||
|
||||
namespace YAML
|
||||
|
@ -30,10 +31,11 @@ namespace YAML
|
|||
Clear();
|
||||
|
||||
std::ifstream fin(fileName.c_str());
|
||||
Parser parser(fin);
|
||||
if(!parser)
|
||||
return;
|
||||
Scanner scanner(fin);
|
||||
scanner.Scan();
|
||||
// if(!scanner)
|
||||
// return;
|
||||
|
||||
m_pRoot = parser.ReadNextNode();
|
||||
// m_pRoot = parser.ReadNextNode();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue