diff options
author | crupest <crupest@outlook.com> | 2021-09-10 20:56:46 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-09-10 20:56:46 +0800 |
commit | 7ba941d5a55213f763686ef367d72c90ad85ef78 (patch) | |
tree | bf92fe1fd5374a2ef6a52dc72c843c7cd616a285 /src/parse/Production.cpp | |
parent | 819b582849e8f5c40d1dbcac6c0cf26b265d36b0 (diff) | |
download | cru-7ba941d5a55213f763686ef367d72c90ad85ef78.tar.gz cru-7ba941d5a55213f763686ef367d72c90ad85ef78.tar.bz2 cru-7ba941d5a55213f763686ef367d72c90ad85ef78.zip |
...
Diffstat (limited to 'src/parse/Production.cpp')
-rw-r--r-- | src/parse/Production.cpp | 12 |
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 |