From d6deff997e4f882d9fa46b109fd32e713f054a6d Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 6 Apr 2015 18:50:03 +0200 Subject: Implement a lot of symbol value support --- src/output.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/output.hpp') diff --git a/src/output.hpp b/src/output.hpp index fe4bc19..439e754 100644 --- a/src/output.hpp +++ b/src/output.hpp @@ -47,6 +47,8 @@ private: std::map tokens; std::map nonterms; + std::map symbol_values; + const char * prefix() const { return prefix_str.c_str(); } @@ -59,7 +61,7 @@ private: void emit_token_value(); void emit_header(); - void emit_reduction(unsigned rule_id, const std::string &action); + void emit_reduction(unsigned rule_id); void emit_reductions(); void emit_state_shift(unsigned i); void emit_state_reduce(const item_t &item, int rule_id); -- cgit v1.2.3