Skip to content

Commit

Permalink
Merge pull request ruby#324 from yui-knk/use_accept_symbol_p
Browse files Browse the repository at this point in the history
Use `accept_symbol?`
  • Loading branch information
yui-knk authored Dec 26, 2023
2 parents fbfbf0c + ad807f5 commit ce902a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lrama/context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def yysymbol_kind_t
def yyfinal
@states.states.find do |state|
state.items.find do |item|
item.rule.lhs.id.s_value == "$accept" && item.end_of_rule?
item.rule.lhs.accept_symbol? && item.end_of_rule?
end
end.id
end
Expand Down

0 comments on commit ce902a6

Please sign in to comment.