From ad807f5a6cff9716b0b569fa48ad0bc0be229f3a Mon Sep 17 00:00:00 2001 From: yui-knk Date: Tue, 26 Dec 2023 09:06:52 +0900 Subject: [PATCH] Use `accept_symbol?` --- lib/lrama/context.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lrama/context.rb b/lib/lrama/context.rb index 895290a2..86767deb 100644 --- a/lib/lrama/context.rb +++ b/lib/lrama/context.rb @@ -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