Started the scanner.

This commit is contained in:
Jesse Beder 2008-06-26 09:05:28 +00:00
parent bcbca461de
commit 8ae7b48188
5 changed files with 358 additions and 4 deletions

View file

@ -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();
}
}