From 3f1b701ad15458829468ce176ee6cecd16c4b420 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 31 Mar 2015 22:52:25 +0200 Subject: generator: add actions and gotos for LR(0) parsers --- src/parser_state.hpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/parser_state.hpp') 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 - namespace solar { class parser_state_t { private: - std::set rules; + std::vector rules; item_t current; public: parser_state_t() : current("") {} - const std::set & get_rules() const { + const std::vector & get_rules() const { return rules; } -- cgit v1.2.3