29 Parser::operator bool()
const 71 bool readDirective =
false;
94 if(token.
value ==
"YAML")
96 else if(token.
value ==
"TAG")
104 if(token.
params.size() != 1)
110 std::stringstream str(token.
params[0]);
114 if(!str || str.peek() != EOF)
128 if(token.
params.size() != 2)
void HandleTagDirective(const Token &token)
bool HandleNextDocument(EventHandler &eventHandler)
void HandleDocument(EventHandler &eventHandler)
void Load(std::istream &in)
void HandleDirective(const Token &token)
const char *const YAML_DIRECTIVE_ARGS
bool GetNextDocument(Node &document)
const char *const REPEATED_TAG_DIRECTIVE
const char *const YAML_VERSION
const char *const YAML_MAJOR_VERSION
std::auto_ptr< Scanner > m_pScanner
const char *const REPEATED_YAML_DIRECTIVE
std::auto_ptr< Directives > m_pDirectives
std::vector< std::string > params
void PrintTokens(std::ostream &out)
void HandleYamlDirective(const Token &token)
const char *const TAG_DIRECTIVE_ARGS