aboutsummaryrefslogtreecommitdiff
path: root/src/parse/Production.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse/Production.cpp')
-rw-r--r--src/parse/Production.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/parse/Production.cpp b/src/parse/Production.cpp
index e69de29b..52ec46ab 100644
--- a/src/parse/Production.cpp
+++ b/src/parse/Production.cpp
@@ -0,0 +1,12 @@
+#include "cru/parse/Production.hpp"
+
+namespace cru::parse {
+Production::Production(Grammar* grammar, String name, Nonterminal* left,
+ std::vector<Symbol*> right)
+ : grammar_(grammar),
+ name_(std::move(name)),
+ left_(left),
+ right_(std::move(right)) {}
+
+Production::~Production() {}
+} // namespace cru::parse