diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-04-01 02:42:54 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-04-01 02:42:54 +0200 |
commit | 531a4de1fcea1df2b2b0d9303d82aa23c6285fb0 (patch) | |
tree | 7df1d662e59fdd4e5a7ccb1f6d4515597e9df47d /src/generator.hpp | |
parent | 3f1b701ad15458829468ce176ee6cecd16c4b420 (diff) | |
download | solar-531a4de1fcea1df2b2b0d9303d82aa23c6285fb0.tar solar-531a4de1fcea1df2b2b0d9303d82aa23c6285fb0.zip |
generator: split different actions into different maps
Diffstat (limited to 'src/generator.hpp')
-rw-r--r-- | src/generator.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/generator.hpp b/src/generator.hpp index 955739f..715dd98 100644 --- a/src/generator.hpp +++ b/src/generator.hpp @@ -45,7 +45,8 @@ private: std::multimap<symbol_t, item_t> items; std::map<std::set<item_t>, size_t> itemsets; - std::multimap<std::pair<unsigned, symbol_t>, std::pair<char, unsigned>> actions; + std::map<std::pair<unsigned, symbol_t>, unsigned> shifts; + std::map<unsigned, unsigned> reductions; std::map<std::pair<unsigned, symbol_t>, unsigned> gotos; void close_set(std::set<item_t> *set); |