diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-04-06 18:50:03 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-04-06 18:50:03 +0200 |
commit | d6deff997e4f882d9fa46b109fd32e713f054a6d (patch) | |
tree | d0d5f6faf532234f239310c7376b737e1c284ea9 /src/output.hpp | |
parent | 6fb60a72012f97f846477eb370d1a0706b1b4bc2 (diff) | |
download | solar-d6deff997e4f882d9fa46b109fd32e713f054a6d.tar solar-d6deff997e4f882d9fa46b109fd32e713f054a6d.zip |
Implement a lot of symbol value support
Diffstat (limited to 'src/output.hpp')
-rw-r--r-- | src/output.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
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<std::string, unsigned> tokens; std::map<std::string, unsigned> nonterms; + std::map<symbol_t, std::string> 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); |