diff options
Diffstat (limited to 'src/parser_state.hpp')
-rw-r--r-- | src/parser_state.hpp | 8 |
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; } |