From 8b707351c72edb799195ea8c8423f34c72c5c46b Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 31 Mar 2015 04:09:03 +0200 Subject: Add generator_t --- src/parser_state.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/parser_state.cpp') diff --git a/src/parser_state.cpp b/src/parser_state.cpp index c8053be..94f9c93 100644 --- a/src/parser_state.cpp +++ b/src/parser_state.cpp @@ -53,12 +53,7 @@ void parser_state_t::add_rule_terminal(unsigned char term) { } void parser_state_t::add_rule() { - rules.emplace(current.get_lhs(), current); - - while (current.has_next()) { - items.emplace(current.get_next_symbol(), current); - current.shift(); - } + rules.emplace(current); } } -- cgit v1.2.3