Skip to content

Commit

Permalink
Simplify inline rule resolution using shorthand syntax for block argu…
Browse files Browse the repository at this point in the history
…ments
  • Loading branch information
ydah committed Jan 2, 2025
1 parent 214c511 commit fdb90be
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 fdb90be

Please sign in to comment.