summaryrefslogtreecommitdiffstats
path: root/src/parser_state.hpp
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2015-03-31 04:09:03 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2015-03-31 04:09:03 +0200
commit8b707351c72edb799195ea8c8423f34c72c5c46b (patch)
tree0db36bc3117dc85d4ad33abae81903ea90d3d658 /src/parser_state.hpp
parent679aa4588460b53b3b43ad19e76865c373c8f221 (diff)
downloadsolar-8b707351c72edb799195ea8c8423f34c72c5c46b.tar
solar-8b707351c72edb799195ea8c8423f34c72c5c46b.zip
Add generator_t
Diffstat (limited to 'src/parser_state.hpp')
-rw-r--r--src/parser_state.hpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/parser_state.hpp b/src/parser_state.hpp
index a0341c6..b516dee 100644
--- a/src/parser_state.hpp
+++ b/src/parser_state.hpp
@@ -28,23 +28,21 @@
#include "item.hpp"
-#include <map>
-#include <utility>
+#include <set>
namespace solar {
class parser_state_t {
private:
- std::multimap<std::string, item_t> rules;
- std::multimap<symbol_t, item_t> items;
+ std::set<item_t> rules;
item_t current;
public:
parser_state_t() : current("") {}
- const std::multimap<std::string, item_t> & get_rules() const {
+ const std::set<item_t> & get_rules() const {
return rules;
}