diff options
Diffstat (limited to 'include/cru/parse/Symbol.hpp')
-rw-r--r-- | include/cru/parse/Symbol.hpp | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/include/cru/parse/Symbol.hpp b/include/cru/parse/Symbol.hpp deleted file mode 100644 index 7404a5e7..00000000 --- a/include/cru/parse/Symbol.hpp +++ /dev/null @@ -1,30 +0,0 @@ -#pragma once -#include "Base.hpp" - -#include "cru/common/String.hpp" - -namespace cru::parse { -class Grammar; - -// Base class of Terminal and Nonterminal. -class CRU_PARSE_API Symbol : public Object { - public: - explicit Symbol(Grammar* grammar, String name); - - CRU_DELETE_COPY(Symbol) - CRU_DELETE_MOVE(Symbol) - - ~Symbol() override; - - public: - Grammar* GetGrammar() { return grammar_; } - - String GetName() const { return name_; } - void SetName(String name) { name_ = std::move(name); } - - private: - Grammar* grammar_; - - String name_; -}; -} // namespace cru::parse |