diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-04-05 02:28:52 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-04-05 02:28:52 +0200 |
commit | 96dd0ebd2618df6ed0c1acf795e9a7054592b566 (patch) | |
tree | 5d53bd0efa0edd8b4e828c8583974b812a050f9b /src/output.hpp | |
parent | 18f88fc863ffc4c3cc6bb30433228a0e889b2647 (diff) | |
download | solar-96dd0ebd2618df6ed0c1acf795e9a7054592b566.tar solar-96dd0ebd2618df6ed0c1acf795e9a7054592b566.zip |
Add support for simple reduce actions
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 f129716..fe4bc19 100644 --- a/src/output.hpp +++ b/src/output.hpp @@ -59,8 +59,10 @@ private: void emit_token_value(); void emit_header(); + void emit_reduction(unsigned rule_id, const std::string &action); + void emit_reductions(); void emit_state_shift(unsigned i); - void emit_state_reduce(const item_t &item); + void emit_state_reduce(const item_t &item, int rule_id); void emit_state(unsigned i); void emit_states(); void emit_source(); |