lib/antelope/generation/constructor.rb in antelope-0.2.2 vs lib/antelope/generation/constructor.rb in antelope-0.2.3

- old
+ new

@@ -95,10 +95,11 @@ # # @param state [Recognizer::State] # @return [void] # @see Follow#follow def augment_rules(state) - state.rules.select { |x| x.position.zero? }.each do |rule| + state.rules.each do |rule| + next unless rule.position.zero? current_state = state label = rule.left.dup label.from = state label.to = state.transitions[label.name]