Tags, anchors, and aliases are all parsed now.

This commit is contained in:
Jesse Beder 2008-07-01 06:28:10 +00:00
parent 8180a85a3b
commit 4c5a488f68
19 changed files with 303 additions and 93 deletions

View file

@ -20,7 +20,7 @@ namespace YAML
m_pRoot = 0;
}
void Document::Parse(Scanner *pScanner)
void Document::Parse(Scanner *pScanner, const ParserState& state)
{
Clear();
@ -34,7 +34,7 @@ namespace YAML
// now create our root node and parse it
m_pRoot = new Node;
m_pRoot->Parse(pScanner);
m_pRoot->Parse(pScanner, state);
// and finally eat any doc ends we see
while(pScanner->PeekNextToken() && pScanner->PeekNextToken()->type == TT_DOC_END)