From 74bb9cd27242b9320f99ff4d2b50c3051576cc14 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 8 Feb 2022 16:53:51 +0800 Subject: ... --- include/cru/toml/TomlParser.hpp | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 include/cru/toml/TomlParser.hpp (limited to 'include/cru/toml/TomlParser.hpp') diff --git a/include/cru/toml/TomlParser.hpp b/include/cru/toml/TomlParser.hpp deleted file mode 100644 index c3091bad..00000000 --- a/include/cru/toml/TomlParser.hpp +++ /dev/null @@ -1,36 +0,0 @@ -#pragma once - -#include "cru/common/Exception.hpp" -#include "cru/toml/TomlDocument.hpp" - -#include - -namespace cru::toml { -// A very simple and tolerant TOML parser. -class CRU_TOML_API TomlParsingException : public Exception { - public: - using Exception::Exception; -}; - -class CRU_TOML_API TomlParser { - public: - explicit TomlParser(String input); - - CRU_DELETE_COPY(TomlParser) - CRU_DELETE_MOVE(TomlParser) - - ~TomlParser(); - - public: - TomlDocument Parse(); - - private: - // The document is empty to begin with. - void DoParse(TomlDocument& document); - - private: - String input_; - - std::optional cache_; -}; -} // namespace cru::toml -- cgit v1.2.3