Skip to content

Commit

Permalink
Merge pull request #500 from ydah/refactor-inline1
Browse files Browse the repository at this point in the history
Simplify inline rule resolution using shorthand syntax for block arguments
  • Loading branch information
ydah authored Jan 2, 2025
2 parents 52f0d37 + fdb90be commit ff41029
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lrama/grammar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def append_special_symbols
end

def resolve_inline_rules
while @rule_builders.any? {|r| r.has_inline_rules? } do
while @rule_builders.any?(&:has_inline_rules?) do
@rule_builders = @rule_builders.flat_map do |builder|
if builder.has_inline_rules?
builder.resolve_inline_rules
Expand Down

0 comments on commit ff41029

Please sign in to comment.