1 #ifndef PARSER_H_62B23520_7C8E_11DE_8A39_0800200C9A66 2 #define PARSER_H_62B23520_7C8E_11DE_8A39_0800200C9A66 4 #if defined(_MSC_VER) || \ 5 (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || \ 6 (__GNUC__ >= 4)) // GCC supports "pragma once" correctly since 3.4 13 #include "yaml-cpp/dll.h" 40 explicit Parser(std::istream& in);
45 explicit operator bool()
const;
51 void Load(std::istream& in);
59 bool HandleNextDocument(EventHandler& eventHandler);
61 void PrintTokens(std::ostream& out);
68 void ParseDirectives();
70 void HandleDirective(
const Token& token);
76 void HandleYamlDirective(
const Token& token);
82 void HandleTagDirective(
const Token& token);
85 std::unique_ptr<Scanner> m_pScanner;
86 std::unique_ptr<Directives> m_pDirectives;
90 #endif // PARSER_H_62B23520_7C8E_11DE_8A39_0800200C9A66 A parser turns a stream of bytes into one stream of "events" per YAML document in the input stream...
Definition: parser.h:26