summaryrefslogtreecommitdiff
path: root/lib/racc/parser.rb
diff options
context:
space:
mode:
authormarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-08 20:59:01 +0000
committermarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-08 20:59:01 +0000
commitf3e35474078895e1d178e15cfbfc6743f9ffc62d (patch)
treea3fd49329f497133415a7ec11592b5c693459608 /lib/racc/parser.rb
parentcceca83afe046b8c2b53eab6ab7c52faa1719b6d (diff)
* lib/*.rb: Remove unused variable warnings.
Patch by Run Paint [ruby-core:30991] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/racc/parser.rb')
-rw-r--r--lib/racc/parser.rb28
1 files changed, 13 insertions, 15 deletions
diff --git a/lib/racc/parser.rb b/lib/racc/parser.rb
index 9b7a76bc58..887fa8c553 100644
--- a/lib/racc/parser.rb
+++ b/lib/racc/parser.rb
@@ -105,13 +105,12 @@ module Racc
def _racc_do_parse_rb(arg, in_debug)
action_table, action_check, action_default, action_pointer,
- goto_table, goto_check, goto_default, goto_pointer,
- nt_base, reduce_table, token_table, shift_n,
- reduce_n, use_result, * = arg
+ _, _, _, _,
+ _, _, token_table, _,
+ _, _, * = arg
_racc_init_sysvars
tok = act = i = nil
- nerr = 0
catch(:racc_end_parse) {
while true
@@ -154,14 +153,13 @@ module Racc
def _racc_yyparse_rb(recv, mid, arg, c_debug)
action_table, action_check, action_default, action_pointer,
- goto_table, goto_check, goto_default, goto_pointer,
- nt_base, reduce_table, token_table, shift_n,
- reduce_n, use_result, * = arg
+ _, _, _, _,
+ _, _, token_table, _,
+ _, _, * = arg
_racc_init_sysvars
act = nil
i = nil
- nerr = 0
catch(:racc_end_parse) {
until i = action_pointer[@racc_state[-1]]
@@ -210,10 +208,10 @@ module Racc
###
def _racc_evalact(act, arg)
- action_table, action_check, action_default, action_pointer,
- goto_table, goto_check, goto_default, goto_pointer,
- nt_base, reduce_table, token_table, shift_n,
- reduce_n, use_result, * = arg
+ action_table, action_check, _, action_pointer,
+ _, _, _, _,
+ _, _, _, shift_n, reduce_n,
+ _, _, * = arg
nerr = 0 # tmp
if act > 0 and act < shift_n
@@ -305,10 +303,10 @@ module Racc
end
def _racc_do_reduce(arg, act)
- action_table, action_check, action_default, action_pointer,
+ _, _, _, _,
goto_table, goto_check, goto_default, goto_pointer,
- nt_base, reduce_table, token_table, shift_n,
- reduce_n, use_result, * = arg
+ nt_base, reduce_table, _, _,
+ _, use_result, * = arg
state = @racc_state
vstack = @racc_vstack
tstack = @racc_tstack