2008-06-26 10:49:50 +04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <ios>
|
2008-06-30 10:51:22 +04:00
|
|
|
#include "document.h"
|
2008-06-26 10:49:50 +04:00
|
|
|
|
|
|
|
|
namespace YAML
|
|
|
|
|
{
|
|
|
|
|
class Node;
|
2008-07-01 03:57:58 +04:00
|
|
|
class Scanner;
|
2008-06-26 10:49:50 +04:00
|
|
|
|
|
|
|
|
class Parser
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
Parser(std::istream& in);
|
|
|
|
|
~Parser();
|
|
|
|
|
|
2008-06-30 10:51:22 +04:00
|
|
|
void GetNextDocument(Document& document);
|
2008-07-01 05:17:10 +04:00
|
|
|
void PrintTokens();
|
2008-06-26 10:49:50 +04:00
|
|
|
|
|
|
|
|
private:
|
2008-07-01 03:57:58 +04:00
|
|
|
Scanner *m_pScanner;
|
2008-06-26 10:49:50 +04:00
|
|
|
};
|
|
|
|
|
}
|