diff options
author | crupest <crupest@outlook.com> | 2021-09-09 22:20:55 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-09-09 22:20:55 +0800 |
commit | b1ae774594b46419879362735d4e25c4937c0a6c (patch) | |
tree | 8ef0d71d39a87e855c801585a2767e78c052c37b /include | |
parent | f4f7a0a795d55f104731d32d3d852ad3a715c7bf (diff) | |
download | cru-b1ae774594b46419879362735d4e25c4937c0a6c.tar.gz cru-b1ae774594b46419879362735d4e25c4937c0a6c.tar.bz2 cru-b1ae774594b46419879362735d4e25c4937c0a6c.zip |
...
Diffstat (limited to 'include')
-rw-r--r-- | include/cru/parse/Grammar.hpp | 0 | ||||
-rw-r--r-- | include/cru/parse/Nonterminal.hpp | 0 | ||||
-rw-r--r-- | include/cru/parse/Production.hpp | 0 | ||||
-rw-r--r-- | include/cru/parse/Symbol.hpp | 0 | ||||
-rw-r--r-- | include/cru/parse/Terminal.hpp | 0 | ||||
-rw-r--r-- | include/cru/parse/Token.hpp | 0 | ||||
-rw-r--r-- | include/cru/parse/TokenType.hpp | 22 |
7 files changed, 22 insertions, 0 deletions
diff --git a/include/cru/parse/Grammar.hpp b/include/cru/parse/Grammar.hpp new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/include/cru/parse/Grammar.hpp diff --git a/include/cru/parse/Nonterminal.hpp b/include/cru/parse/Nonterminal.hpp new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/include/cru/parse/Nonterminal.hpp diff --git a/include/cru/parse/Production.hpp b/include/cru/parse/Production.hpp new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/include/cru/parse/Production.hpp diff --git a/include/cru/parse/Symbol.hpp b/include/cru/parse/Symbol.hpp new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/include/cru/parse/Symbol.hpp diff --git a/include/cru/parse/Terminal.hpp b/include/cru/parse/Terminal.hpp new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/include/cru/parse/Terminal.hpp diff --git a/include/cru/parse/Token.hpp b/include/cru/parse/Token.hpp new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/include/cru/parse/Token.hpp diff --git a/include/cru/parse/TokenType.hpp b/include/cru/parse/TokenType.hpp new file mode 100644 index 00000000..54bdf712 --- /dev/null +++ b/include/cru/parse/TokenType.hpp @@ -0,0 +1,22 @@ +#pragma once +#include "cru/common/Base.hpp" +#include "cru/common/String.hpp" + +namespace cru::parse { +class TokenType : public Object { + public: + explicit TokenType(String name); + + CRU_DELETE_COPY(TokenType) + CRU_DELETE_MOVE(TokenType) + + ~TokenType() override; + + public: + String GetName() const { return name_; } + void SetName(String name) { name_ = std::move(name); } + + private: + String name_; +}; +} // namespace cru::parse |