summaryrefslogtreecommitdiffstats
path: root/src/parser_state.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser_state.cpp')
-rw-r--r--src/parser_state.cpp7
1 files changed, 1 insertions, 6 deletions
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);
}
}