summaryrefslogtreecommitdiffstats
path: root/src/generator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/generator.cpp')
-rw-r--r--src/generator.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/generator.cpp b/src/generator.cpp
index 9350f40..31dac2a 100644
--- a/src/generator.cpp
+++ b/src/generator.cpp
@@ -119,8 +119,10 @@ void generator_t::generate_itemsets() {
generator_t::generator_t(const std::vector<std::tuple<item_t, std::vector<std::string>, std::string>> &rules0,
const std::map<std::string, std::string> &nonterm_types0,
- const std::map<symbol_t, std::pair<std::string, std::string>> &term_types0)
- : rules(rules0), nonterm_types(nonterm_types0), term_types(term_types0) {
+ const std::map<symbol_t, std::pair<std::string, std::string>> &term_types0,
+ const std::string &header_block0, const std::string &source_block0)
+ : rules(rules0), nonterm_types(nonterm_types0), term_types(term_types0),
+ header_block(header_block0), source_block(source_block0) {
for (size_t i = 0; i < rules.size(); i++) {
item_t rule = std::get<0>(rules[i]);