aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/cru/parse/Grammar.hpp0
-rw-r--r--include/cru/parse/Nonterminal.hpp0
-rw-r--r--include/cru/parse/Production.hpp0
-rw-r--r--include/cru/parse/Symbol.hpp0
-rw-r--r--include/cru/parse/Terminal.hpp0
-rw-r--r--include/cru/parse/Token.hpp0
-rw-r--r--include/cru/parse/TokenType.hpp22
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