summaryrefslogtreecommitdiffstats
path: root/src/generator.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/generator.hpp')
-rw-r--r--src/generator.hpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/generator.hpp b/src/generator.hpp
index 23f4f9d..b0bd4c9 100644
--- a/src/generator.hpp
+++ b/src/generator.hpp
@@ -66,6 +66,8 @@ private:
std::string header_block;
std::string source_block;
+ std::vector<std::pair<std::string, std::string>> extra_args;
+
void close_set(std::set<item_t> *set);
std::set<item_t> get_set(const std::string &nonterm);
@@ -164,11 +166,16 @@ public:
return source_block;
}
+ const std::vector<std::pair<std::string, std::string>> & get_extra_args() const {
+ return extra_args;
+ }
+
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,
- const std::string &header_block0, const std::string &source_block0);
+ const std::string &header_block0, const std::string &source_block0,
+ const std::vector<std::pair<std::string, std::string>> &extra_args0);
};
}