lib/lrama/context.rb in lrama-0.6.10 vs lib/lrama/context.rb in lrama-0.6.11
- old
+ new
@@ -403,11 +403,11 @@
@table = []
# yycheck
@check = []
# Key is froms_and_tos, value is index position
pushed = {}
- userd_res = {}
+ used_res = {}
lowzero = 0
high = 0
@sorted_actions.each do |state_id, froms_and_tos, _, _|
if (res = pushed[froms_and_tos])
@@ -428,11 +428,11 @@
ok = false
break
end
end
- if ok && userd_res[res]
+ if ok && used_res[res]
ok = false
end
if ok
break
@@ -456,10 +456,10 @@
high = loc if high < loc
@base[state_id] = res
pushed[froms_and_tos] = res
- userd_res[res] = true
+ used_res[res] = true
end
@yylast = high
# replace_ninf