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:
Jesse Beder 2008-06-26 06:49:50 +00:00
parent 4ed7f62431
commit bcbca461de
11 changed files with 247 additions and 9 deletions

View file

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