diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-03-31 22:52:25 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-03-31 23:40:44 +0200 |
commit | 3f1b701ad15458829468ce176ee6cecd16c4b420 (patch) | |
tree | f237e4925191a002adbcd4745a6288da84c3194a /src/parser_state.hpp | |
parent | 342f927aace815c2b6e7903def14d4aca9bc2233 (diff) | |
download | solar-3f1b701ad15458829468ce176ee6cecd16c4b420.tar solar-3f1b701ad15458829468ce176ee6cecd16c4b420.zip |
generator: add actions and gotos for LR(0) parsers
Diffstat (limited to 'src/parser_state.hpp')
-rw-r--r-- | src/parser_state.hpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/parser_state.hpp b/src/parser_state.hpp index b516dee..3798586 100644 --- a/src/parser_state.hpp +++ b/src/parser_state.hpp @@ -28,21 +28,19 @@ #include "item.hpp" -#include <set> - namespace solar { class parser_state_t { private: - std::set<item_t> rules; + std::vector<item_t> rules; item_t current; public: parser_state_t() : current("") {} - const std::set<item_t> & get_rules() const { + const std::vector<item_t> & get_rules() const { return rules; } |