"...composable_kernel.git" did not exist on "627054b941166aedd08724575b036ffe0ad74ca8"
Commit bce845bb authored by Jesse Beder's avatar Jesse Beder
Browse files

Fixed little bug in parser commit

parent ed570b9f
...@@ -37,6 +37,9 @@ namespace YAML ...@@ -37,6 +37,9 @@ namespace YAML
// . Throws a ParserException on error. // . Throws a ParserException on error.
bool Parser::GetNextDocument(Node& document) bool Parser::GetNextDocument(Node& document)
{ {
if(!m_pScanner.get())
return false;
// clear node // clear node
document.Clear(); document.Clear();
...@@ -130,6 +133,9 @@ namespace YAML ...@@ -130,6 +133,9 @@ namespace YAML
void Parser::PrintTokens(std::ostream& out) void Parser::PrintTokens(std::ostream& out)
{ {
if(!m_pScanner.get())
return;
while(1) { while(1) {
if(m_pScanner->empty()) if(m_pScanner->empty())
break; break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment