summaryrefslogtreecommitdiffstats
path: root/src/parser_state.cpp
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2015-03-31 04:09:03 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2015-03-31 04:09:03 +0200
commit8b707351c72edb799195ea8c8423f34c72c5c46b (patch)
tree0db36bc3117dc85d4ad33abae81903ea90d3d658 /src/parser_state.cpp
parent679aa4588460b53b3b43ad19e76865c373c8f221 (diff)
downloadsolar-8b707351c72edb799195ea8c8423f34c72c5c46b.tar
solar-8b707351c72edb799195ea8c8423f34c72c5c46b.zip
Add generator_t
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);
}
}