mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 20:51:16 +00:00
Started the scanner.
This commit is contained in:
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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user