From cbbdb4e5a2eb46750d3c455def99486d23fc625b Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 31 Oct 2019 00:54:50 +0900 Subject: [PATCH] [ruby/racc] Strip trailing whitespaces at the last line of actions https://github.com/ruby/racc/commit/a887ebe529 --- lib/racc/grammarfileparser.rb | 1 + test/racc/assets/intp.y | 8 +- test/racc/assets/mailp.y | 54 +- test/racc/assets/mof.y | 24 +- test/racc/assets/nullbug2.y | 4 +- test/racc/assets/recv.y | 40 +- test/racc/assets/syntax.y | 2 +- test/racc/assets/twowaysql.y | 2 +- test/racc/regress/cadenza | 114 ++-- test/racc/regress/cast | 10 +- test/racc/regress/csspool | 326 +++++------ test/racc/regress/edtf | 224 ++++---- test/racc/regress/huia | 144 ++--- test/racc/regress/journey | 18 +- test/racc/regress/liquor | 102 ++-- test/racc/regress/machete | 68 +-- test/racc/regress/mediacloth | 162 +++--- test/racc/regress/mof | 114 ++-- test/racc/regress/namae | 52 +- test/racc/regress/nasl | 342 +++++------ test/racc/regress/nokogiri-css | 110 ++-- test/racc/regress/opal | 698 +++++++++++----------- test/racc/regress/php_serialization | 34 +- test/racc/regress/riml | 516 ++++++++--------- test/racc/regress/ruby18 | 700 +++++++++++----------- test/racc/regress/ruby22 | 860 ++++++++++++++-------------- test/racc/regress/tp_plus | 244 ++++---- test/racc/regress/twowaysql | 54 +- 28 files changed, 2514 insertions(+), 2513 deletions(-) diff --git a/lib/racc/grammarfileparser.rb b/lib/racc/grammarfileparser.rb index ff7c682f7d..3ae539a4de 100644 --- a/lib/racc/grammarfileparser.rb +++ b/lib/racc/grammarfileparser.rb @@ -450,6 +450,7 @@ module Racc nest -= 1 if nest == 0 @in_block = nil + buf.sub!(/[ \t\f]+\z/, '') return buf end buf << (pre = ch) diff --git a/test/racc/assets/intp.y b/test/racc/assets/intp.y index 24e547da61..39e42afd74 100644 --- a/test/racc/assets/intp.y +++ b/test/racc/assets/intp.y @@ -27,7 +27,7 @@ rule result.push val[1] } | stmt_list EOL - + stmt : expr | assign | IDENT realprim @@ -38,7 +38,7 @@ rule | if_stmt | while_stmt | defun - + if_stmt : IF stmt THEN EOL stmt_list else_stmt END { result = IfNode.new( @fname, val[0][0], @@ -261,7 +261,7 @@ module Intp class Core - def initialize + def initialize @ftab = {} @obj = Object.new @stack = [] @@ -318,7 +318,7 @@ module Intp def lvar?(name) @lvars.key? name end - + def [](key) @lvars[key] end diff --git a/test/racc/assets/mailp.y b/test/racc/assets/mailp.y index da332a33ba..eb7d4d529d 100644 --- a/test/racc/assets/mailp.y +++ b/test/racc/assets/mailp.y @@ -35,7 +35,7 @@ rule @field.domain = mb.domain } ; - + datetime : day DIGIT ATOM DIGIT hour zone # 0 1 2 3 4 5 # day month year @@ -44,11 +44,11 @@ rule result = (t + val[4] - val[5]).localtime } ; - + day : /* none */ | ATOM ',' ; - + hour : DIGIT ':' DIGIT { result = (result.to_i * 60 * 60) + (val[2].to_i * 60) @@ -60,16 +60,16 @@ rule + val[4].to_i } ; - + zone : ATOM { result = ::TMail.zonestr2i( val[0] ) * 60 } ; - + received : from by via with id for recvdatetime ; - + from : /* none */ | FROM domain { @@ -84,28 +84,28 @@ rule @field.from = Address.join( val[1] ) } ; - + by : /* none */ | BY domain { @field.by = Address.join( val[1] ) } ; - + via : /* none */ | VIA ATOM { @field.via = val[1] } ; - + with : /* none */ | WITH ATOM { @field.with.push val[1] } ; - + id : /* none */ | ID msgid { @@ -116,14 +116,14 @@ rule @field.msgid = val[1] } ; - + for : /* none */ | FOR addr { @field.for_ = val[1].address } ; - + recvdatetime : /* none */ | ';' datetime @@ -131,7 +131,7 @@ rule @field.date = val[1] } ; - + returnpath: '<' '>' | routeaddr { @@ -173,7 +173,7 @@ rule } # | phrase ':' ';' { result = AddressGroup.new( result ) } ; - + routeaddr : '<' route spec '>' { result = val[2] @@ -184,22 +184,22 @@ rule result = val[1] } ; - + route : at_domains ':' ; - + at_domains: '@' domain { result = [ val[1] ] } | at_domains ',' '@' domain { result.push val[3] } ; - + spec : local '@' domain { result = Address.new( val[0], val[2] ) } | local { result = Address.new( result, nil ) } ; - + local : word { result = val } | local '.' word { result.push val[2] } ; - + domain : domword { result = val } | domain '.' domword { result.push val[2] } ; @@ -215,11 +215,11 @@ rule result = val.join('') } ; - + phrase : word | phrase word { result << ' ' << val[1] } ; - + word : atom | QUOTED | DIGIT @@ -228,7 +228,7 @@ rule keys : phrase | keys ',' phrase ; - + enc : word { @field.encrypter = val[0] @@ -258,7 +258,7 @@ rule @field.sub = '' } ; - + params : /* none */ | params ';' TOKEN '=' value { @@ -281,7 +281,7 @@ rule @field.disposition = val[0] } ; - + disp_params : /* none */ | disp_params ';' disp_param @@ -293,7 +293,7 @@ rule @field.params[ val[0].downcase ] = val[2] } ; - + atom : ATOM | FROM | BY @@ -302,7 +302,7 @@ rule | ID | FOR ; - + end @@ -382,7 +382,7 @@ module TMail @scanner.scan @pass_array end end - + def on_error( tok, val, vstack ) raise ParseError, "\nparse error in '#{@field.name}' header, on token #{val.inspect}" diff --git a/test/racc/assets/mof.y b/test/racc/assets/mof.y index 1adc5ade14..da3172988f 100644 --- a/test/racc/assets/mof.y +++ b/test/racc/assets/mof.y @@ -33,7 +33,7 @@ class MOF::Parser octalValue decimalValue hexValue - + rule /* Returns a Hash of filename and MofResult */ @@ -47,7 +47,7 @@ rule result[@name] = @result } ; - + mofProduction : compilerDirective | classDeclaration @@ -66,7 +66,7 @@ rule * compilerDirective * */ - + compilerDirective : "#" PRAGMA INCLUDE pragmaParameters_opt { raise MOF::Helper::Error.new(@name,@lineno,@line,"Missing filename after '#pragma include'") unless val[3] @@ -107,7 +107,7 @@ rule * classDeclaration * */ - + classDeclaration : qualifierList_opt CLASS className alias_opt superClass_opt "{" classFeatures "}" ";" { qualifiers = val[0] @@ -151,7 +151,7 @@ rule result << val[2] if val[2] } ; - + qualifier : qualifierName qualifierParameter_opt flavor_opt { # Get qualifier decl @@ -242,7 +242,7 @@ rule result = CIM::Property.new(type,val[2],val[0],val[4]) } ; - + referenceDeclaration : qualifierList_opt objectRef referenceName array_opt defaultValue_opt ";" { if val[4] @@ -308,7 +308,7 @@ rule : /* empty */ | parameterList ; - + parameterList : parameter parameters { result = val[1].unshift val[0] } @@ -367,7 +367,7 @@ rule : /* empty */ | defaultValue ; - + defaultValue : "=" initializer { result = val[1] } @@ -416,7 +416,7 @@ rule | string stringValue { result = val[0] + val[1] } ; - + referenceInitializer : objectHandle | aliasIdentifier @@ -465,7 +465,7 @@ rule * qualifierDeclaration * */ - + qualifierDeclaration /* 0 1 2 3 4 */ : QUALIFIER qualifierName qualifierType scope defaultFlavor_opt ";" @@ -534,7 +534,7 @@ rule * instanceDeclaration * */ - + instanceDeclaration : instance ";" ; @@ -583,7 +583,7 @@ def initialize options = {} @includes = options[:includes] || [] @quiet = options[:quiet] @style = options[:style] || :cim # default to style CIM v2.2 syntax - + @lineno = 1 @file = nil @iconv = nil diff --git a/test/racc/assets/nullbug2.y b/test/racc/assets/nullbug2.y index f09ca625e8..0c1d43bf3e 100644 --- a/test/racc/assets/nullbug2.y +++ b/test/racc/assets/nullbug2.y @@ -6,10 +6,10 @@ class A rule targ: operation voidhead | variable - + voidhead : void B void: - + operation: A variable : A end diff --git a/test/racc/assets/recv.y b/test/racc/assets/recv.y index 0c672b3b6c..b6e849dda9 100644 --- a/test/racc/assets/recv.y +++ b/test/racc/assets/recv.y @@ -4,19 +4,19 @@ rule content: RecvH received ; - + datetime: day ; - + msgid: '<' spec '>'; - + day: | ATOM ',' ; - + received: recvitem_list recvdatetime ; - + recvitem_list: | recvitem_list recvitem ; @@ -26,25 +26,25 @@ rule by: | BY domain ; - + via: | VIA ATOM ; - + with: WITH ATOM ; - + for: | FOR addr ; - + recvdatetime: | ';' datetime ; - + addr: mbox | group ; - mboxes: mbox + mboxes: mbox | mboxes ',' mbox ; @@ -59,21 +59,21 @@ rule routeaddr: '<' route spec '>' | '<' spec '>' ; - + route: at_domains ':' ; - - at_domains: '@' domain + + at_domains: '@' domain | at_domains ',' '@' domain ; - + spec: local '@' domain - | local + | local ; - + local: word | local '.' word ; - + domain: domword | domain '.' domword ; @@ -86,12 +86,12 @@ rule phrase: word | phrase word ; - + word: atom | QUOTED | DIGIT ; atom: ATOM | FROM | BY | VIA | WITH | ID | FOR ; - + end diff --git a/test/racc/assets/syntax.y b/test/racc/assets/syntax.y index e8bb1fb4d8..727f74a29d 100644 --- a/test/racc/assets/syntax.y +++ b/test/racc/assets/syntax.y @@ -31,7 +31,7 @@ rule print 'cba' } | cont - + cont : A c2 B c2 C c2 : C C C C C diff --git a/test/racc/assets/twowaysql.y b/test/racc/assets/twowaysql.y index c729b08f7d..d3bc748d3a 100644 --- a/test/racc/assets/twowaysql.y +++ b/test/racc/assets/twowaysql.y @@ -196,7 +196,7 @@ def parse( io ) # @q.push [ false, nil ] @q.push [ false, [@s.pos, nil] ] - + ## call racc's private parse method do_parse end diff --git a/test/racc/regress/cadenza b/test/racc/regress/cadenza index c908b51f1c..b0d61e8904 100644 --- a/test/racc/regress/cadenza +++ b/test/racc/regress/cadenza @@ -369,63 +369,63 @@ Racc_debug_parser = false module_eval(<<'.,.,', 'cadenza.y', 12) def _reduce_2(val, _values, result) - result = nil + result = nil result end .,., module_eval(<<'.,.,', 'cadenza.y', 16) def _reduce_3(val, _values, result) - result = [val[0]] + result = [val[0]] result end .,., module_eval(<<'.,.,', 'cadenza.y', 17) def _reduce_4(val, _values, result) - result = val[0].push(val[2]) + result = val[0].push(val[2]) result end .,., module_eval(<<'.,.,', 'cadenza.y', 22) def _reduce_5(val, _values, result) - result = VariableNode.new(val[0].value) + result = VariableNode.new(val[0].value) result end .,., module_eval(<<'.,.,', 'cadenza.y', 23) def _reduce_6(val, _values, result) - result = VariableNode.new(val[0].value, val[1]) + result = VariableNode.new(val[0].value, val[1]) result end .,., module_eval(<<'.,.,', 'cadenza.y', 24) def _reduce_7(val, _values, result) - result = ConstantNode.new(val[0].value) + result = ConstantNode.new(val[0].value) result end .,., module_eval(<<'.,.,', 'cadenza.y', 25) def _reduce_8(val, _values, result) - result = ConstantNode.new(val[0].value) + result = ConstantNode.new(val[0].value) result end .,., module_eval(<<'.,.,', 'cadenza.y', 26) def _reduce_9(val, _values, result) - result = ConstantNode.new(val[0].value) + result = ConstantNode.new(val[0].value) result end .,., module_eval(<<'.,.,', 'cadenza.y', 27) def _reduce_10(val, _values, result) - result = val[1] + result = val[1] result end .,., @@ -434,14 +434,14 @@ module_eval(<<'.,.,', 'cadenza.y', 27) module_eval(<<'.,.,', 'cadenza.y', 32) def _reduce_12(val, _values, result) - result = OperationNode.new(val[0], "*", val[2]) + result = OperationNode.new(val[0], "*", val[2]) result end .,., module_eval(<<'.,.,', 'cadenza.y', 33) def _reduce_13(val, _values, result) - result = OperationNode.new(val[0], "/", val[2]) + result = OperationNode.new(val[0], "/", val[2]) result end .,., @@ -450,14 +450,14 @@ module_eval(<<'.,.,', 'cadenza.y', 33) module_eval(<<'.,.,', 'cadenza.y', 38) def _reduce_15(val, _values, result) - result = OperationNode.new(val[0], "+", val[2]) + result = OperationNode.new(val[0], "+", val[2]) result end .,., module_eval(<<'.,.,', 'cadenza.y', 39) def _reduce_16(val, _values, result) - result = OperationNode.new(val[0], "-", val[2]) + result = OperationNode.new(val[0], "-", val[2]) result end .,., @@ -466,42 +466,42 @@ module_eval(<<'.,.,', 'cadenza.y', 39) module_eval(<<'.,.,', 'cadenza.y', 44) def _reduce_18(val, _values, result) - result = OperationNode.new(val[0], "==", val[2]) + result = OperationNode.new(val[0], "==", val[2]) result end .,., module_eval(<<'.,.,', 'cadenza.y', 45) def _reduce_19(val, _values, result) - result = OperationNode.new(val[0], "!=", val[2]) + result = OperationNode.new(val[0], "!=", val[2]) result end .,., module_eval(<<'.,.,', 'cadenza.y', 46) def _reduce_20(val, _values, result) - result = OperationNode.new(val[0], "<=", val[2]) + result = OperationNode.new(val[0], "<=", val[2]) result end .,., module_eval(<<'.,.,', 'cadenza.y', 47) def _reduce_21(val, _values, result) - result = OperationNode.new(val[0], ">=", val[2]) + result = OperationNode.new(val[0], ">=", val[2]) result end .,., module_eval(<<'.,.,', 'cadenza.y', 48) def _reduce_22(val, _values, result) - result = OperationNode.new(val[0], ">", val[2]) + result = OperationNode.new(val[0], ">", val[2]) result end .,., module_eval(<<'.,.,', 'cadenza.y', 49) def _reduce_23(val, _values, result) - result = OperationNode.new(val[0], "<", val[2]) + result = OperationNode.new(val[0], "<", val[2]) result end .,., @@ -510,7 +510,7 @@ module_eval(<<'.,.,', 'cadenza.y', 49) module_eval(<<'.,.,', 'cadenza.y', 54) def _reduce_25(val, _values, result) - result = BooleanInverseNode.new(val[1]) + result = BooleanInverseNode.new(val[1]) result end .,., @@ -519,42 +519,42 @@ module_eval(<<'.,.,', 'cadenza.y', 54) module_eval(<<'.,.,', 'cadenza.y', 59) def _reduce_27(val, _values, result) - result = OperationNode.new(val[0], "and", val[2]) + result = OperationNode.new(val[0], "and", val[2]) result end .,., module_eval(<<'.,.,', 'cadenza.y', 60) def _reduce_28(val, _values, result) - result = OperationNode.new(val[0], "or", val[2]) + result = OperationNode.new(val[0], "or", val[2]) result end .,., module_eval(<<'.,.,', 'cadenza.y', 64) def _reduce_29(val, _values, result) - result = FilterNode.new(val[0].value) + result = FilterNode.new(val[0].value) result end .,., module_eval(<<'.,.,', 'cadenza.y', 65) def _reduce_30(val, _values, result) - result = FilterNode.new(val[0].value, val[2]) + result = FilterNode.new(val[0].value, val[2]) result end .,., module_eval(<<'.,.,', 'cadenza.y', 69) def _reduce_31(val, _values, result) - result = [val[0]] + result = [val[0]] result end .,., module_eval(<<'.,.,', 'cadenza.y', 70) def _reduce_32(val, _values, result) - result = val[0].push(val[2]) + result = val[0].push(val[2]) result end .,., @@ -563,189 +563,189 @@ module_eval(<<'.,.,', 'cadenza.y', 70) module_eval(<<'.,.,', 'cadenza.y', 75) def _reduce_34(val, _values, result) - result = FilteredValueNode.new(val[0], val[2]) + result = FilteredValueNode.new(val[0], val[2]) result end .,., module_eval(<<'.,.,', 'cadenza.y', 79) def _reduce_35(val, _values, result) - result = val[1] + result = val[1] result end .,., module_eval(<<'.,.,', 'cadenza.y', 83) def _reduce_36(val, _values, result) - open_scope!; result = val[2] + open_scope!; result = val[2] result end .,., module_eval(<<'.,.,', 'cadenza.y', 84) def _reduce_37(val, _values, result) - open_scope!; result = BooleanInverseNode.new(val[2]) + open_scope!; result = BooleanInverseNode.new(val[2]) result end .,., module_eval(<<'.,.,', 'cadenza.y', 88) def _reduce_38(val, _values, result) - result = close_scope!; open_scope! + result = close_scope!; open_scope! result end .,., module_eval(<<'.,.,', 'cadenza.y', 92) def _reduce_39(val, _values, result) - result = close_scope! + result = close_scope! result end .,., module_eval(<<'.,.,', 'cadenza.y', 93) def _reduce_40(val, _values, result) - result = close_scope! + result = close_scope! result end .,., module_eval(<<'.,.,', 'cadenza.y', 97) def _reduce_41(val, _values, result) - result = IfNode.new(val[0], val[1]) + result = IfNode.new(val[0], val[1]) result end .,., module_eval(<<'.,.,', 'cadenza.y', 98) def _reduce_42(val, _values, result) - result = IfNode.new(val[0], val[2]) + result = IfNode.new(val[0], val[2]) result end .,., module_eval(<<'.,.,', 'cadenza.y', 99) def _reduce_43(val, _values, result) - result = IfNode.new(val[0], val[1], val[3]) + result = IfNode.new(val[0], val[1], val[3]) result end .,., module_eval(<<'.,.,', 'cadenza.y', 100) def _reduce_44(val, _values, result) - result = IfNode.new(val[0], val[2], val[3]) + result = IfNode.new(val[0], val[2], val[3]) result end .,., module_eval(<<'.,.,', 'cadenza.y', 101) def _reduce_45(val, _values, result) - result = IfNode.new(val[0], val[2], val[4]) + result = IfNode.new(val[0], val[2], val[4]) result end .,., module_eval(<<'.,.,', 'cadenza.y', 105) def _reduce_46(val, _values, result) - open_scope!; result = [val[2].value, val[4]] + open_scope!; result = [val[2].value, val[4]] result end .,., module_eval(<<'.,.,', 'cadenza.y', 109) def _reduce_47(val, _values, result) - result = close_scope! + result = close_scope! result end .,., module_eval(<<'.,.,', 'cadenza.y', 114) def _reduce_48(val, _values, result) - result = ForNode.new(VariableNode.new(val[0].first), val[0].last, val[1]) + result = ForNode.new(VariableNode.new(val[0].first), val[0].last, val[1]) result end .,., module_eval(<<'.,.,', 'cadenza.y', 115) def _reduce_49(val, _values, result) - result = ForNode.new(VariableNode.new(val[0].first), val[0].last, val[2]) + result = ForNode.new(VariableNode.new(val[0].first), val[0].last, val[2]) result end .,., module_eval(<<'.,.,', 'cadenza.y', 119) def _reduce_50(val, _values, result) - result = open_block_scope!(val[2].value) + result = open_block_scope!(val[2].value) result end .,., module_eval(<<'.,.,', 'cadenza.y', 123) def _reduce_51(val, _values, result) - result = close_block_scope! + result = close_block_scope! result end .,., module_eval(<<'.,.,', 'cadenza.y', 128) def _reduce_52(val, _values, result) - result = BlockNode.new(val[0], val[1]) + result = BlockNode.new(val[0], val[1]) result end .,., module_eval(<<'.,.,', 'cadenza.y', 129) def _reduce_53(val, _values, result) - result = BlockNode.new(val[0], val[2]) + result = BlockNode.new(val[0], val[2]) result end .,., module_eval(<<'.,.,', 'cadenza.y', 133) def _reduce_54(val, _values, result) - open_scope!; result = [val[1].value, []] + open_scope!; result = [val[1].value, []] result end .,., module_eval(<<'.,.,', 'cadenza.y', 134) def _reduce_55(val, _values, result) - open_scope!; result = [val[1].value, val[2]] + open_scope!; result = [val[1].value, val[2]] result end .,., module_eval(<<'.,.,', 'cadenza.y', 138) def _reduce_56(val, _values, result) - result = close_scope! + result = close_scope! result end .,., module_eval(<<'.,.,', 'cadenza.y', 142) def _reduce_57(val, _values, result) - result = GenericBlockNode.new(val[0].first, val[2], val[0].last) + result = GenericBlockNode.new(val[0].first, val[2], val[0].last) result end .,., module_eval(<<'.,.,', 'cadenza.y', 146) def _reduce_58(val, _values, result) - result = val[2].value + result = val[2].value result end .,., module_eval(<<'.,.,', 'cadenza.y', 147) def _reduce_59(val, _values, result) - result = VariableNode.new(val[2].value) + result = VariableNode.new(val[2].value) result end .,., module_eval(<<'.,.,', 'cadenza.y', 151) def _reduce_60(val, _values, result) - result = TextNode.new(val[0].value) + result = TextNode.new(val[0].value) result end .,., @@ -762,28 +762,28 @@ module_eval(<<'.,.,', 'cadenza.y', 151) module_eval(<<'.,.,', 'cadenza.y', 160) def _reduce_66(val, _values, result) - push val[0] + push val[0] result end .,., module_eval(<<'.,.,', 'cadenza.y', 161) def _reduce_67(val, _values, result) - push val[1] + push val[1] result end .,., module_eval(<<'.,.,', 'cadenza.y', 162) def _reduce_68(val, _values, result) - document.extends = val[0] + document.extends = val[0] result end .,., module_eval(<<'.,.,', 'cadenza.y', 163) def _reduce_69(val, _values, result) - document.extends = val[1] + document.extends = val[1] result end .,., diff --git a/test/racc/regress/cast b/test/racc/regress/cast index 51ff027dc6..dba604366a 100644 --- a/test/racc/regress/cast +++ b/test/racc/regress/cast @@ -2491,14 +2491,14 @@ module_eval(<<'.,.,', 'cast.y', 269) module_eval(<<'.,.,', 'cast.y', 273) def _reduce_135(val, _values, result) - result = add_type_quals(Pointer.new_at(val[0].pos), val[1][1]) + result = add_type_quals(Pointer.new_at(val[0].pos), val[1][1]) result end .,., module_eval(<<'.,.,', 'cast.y', 274) def _reduce_136(val, _values, result) - result = Pointer.new_at(val[0].pos) + result = Pointer.new_at(val[0].pos) result end .,., @@ -2604,7 +2604,7 @@ module_eval(<<'.,.,', 'cast.y', 307) module_eval(<<'.,.,', 'cast.y', 308) def _reduce_151(val, _values, result) - result = make_direct_type(val[0][0], val[0][1]) + result = make_direct_type(val[0][0], val[0][1]) result end .,., @@ -3356,7 +3356,7 @@ module_eval(<<'.,.,', 'cast.y', 507) result = Comma.new_at(val[0].pos, NodeArray[val[0], val[2]]) end end - + result end .,., @@ -3412,7 +3412,7 @@ module_eval(<<'.,.,', 'cast.y', 559) module_eval(<<'.,.,', 'cast.y', 560) def _reduce_264(val, _values, result) - result = val[0].val; result.pos = val[0].pos + result = val[0].val; result.pos = val[0].pos result end .,., diff --git a/test/racc/regress/csspool b/test/racc/regress/csspool index 26e6fbbf64..79aaa63af0 100644 --- a/test/racc/regress/csspool +++ b/test/racc/regress/csspool @@ -866,14 +866,14 @@ Racc_debug_parser = false module_eval(<<'.,.,', 'csspool.y', 26) def _reduce_1(val, _values, result) - @handler.start_document + @handler.start_document result end .,., module_eval(<<'.,.,', 'csspool.y', 28) def _reduce_2(val, _values, result) - @handler.end_document + @handler.end_document result end .,., @@ -896,7 +896,7 @@ module_eval(<<'.,.,', 'csspool.y', 28) module_eval(<<'.,.,', 'csspool.y', 41) def _reduce_11(val, _values, result) - @handler.charset interpret_string(val[1]), {} + @handler.charset interpret_string(val[1]), {} result end .,., @@ -904,7 +904,7 @@ module_eval(<<'.,.,', 'csspool.y', 41) module_eval(<<'.,.,', 'csspool.y', 45) def _reduce_12(val, _values, result) @handler.import_style val[2], val[1] - + result end .,., @@ -912,7 +912,7 @@ module_eval(<<'.,.,', 'csspool.y', 45) module_eval(<<'.,.,', 'csspool.y', 48) def _reduce_13(val, _values, result) @handler.import_style [], val[1] - + result end .,., @@ -921,14 +921,14 @@ module_eval(<<'.,.,', 'csspool.y', 48) module_eval(<<'.,.,', 'csspool.y', 53) def _reduce_15(val, _values, result) - result = Terms::String.new interpret_string val.first + result = Terms::String.new interpret_string val.first result end .,., module_eval(<<'.,.,', 'csspool.y', 54) def _reduce_16(val, _values, result) - result = Terms::URI.new interpret_uri val.first + result = Terms::URI.new interpret_uri val.first result end .,., @@ -936,7 +936,7 @@ module_eval(<<'.,.,', 'csspool.y', 54) module_eval(<<'.,.,', 'csspool.y', 58) def _reduce_17(val, _values, result) @handler.namespace val[1], val[2] - + result end .,., @@ -944,7 +944,7 @@ module_eval(<<'.,.,', 'csspool.y', 58) module_eval(<<'.,.,', 'csspool.y', 61) def _reduce_18(val, _values, result) @handler.namespace nil, val[1] - + result end .,., @@ -952,7 +952,7 @@ module_eval(<<'.,.,', 'csspool.y', 61) module_eval(<<'.,.,', 'csspool.y', 66) def _reduce_19(val, _values, result) result = val[0] << MediaType.new(val[2]) - + result end .,., @@ -960,112 +960,112 @@ module_eval(<<'.,.,', 'csspool.y', 66) module_eval(<<'.,.,', 'csspool.y', 69) def _reduce_20(val, _values, result) result = [MediaType.new(val[0])] - + result end .,., module_eval(<<'.,.,', 'csspool.y', 73) def _reduce_21(val, _values, result) - result = MediaQueryList.new([ val[0] ]) + result = MediaQueryList.new([ val[0] ]) result end .,., module_eval(<<'.,.,', 'csspool.y', 74) def _reduce_22(val, _values, result) - result = val[0] << val[2] + result = val[0] << val[2] result end .,., module_eval(<<'.,.,', 'csspool.y', 75) def _reduce_23(val, _values, result) - result = MediaQueryList.new + result = MediaQueryList.new result end .,., module_eval(<<'.,.,', 'csspool.y', 78) def _reduce_24(val, _values, result) - result = MediaQuery.new(val[0], val[1], val[2]) + result = MediaQuery.new(val[0], val[1], val[2]) result end .,., module_eval(<<'.,.,', 'csspool.y', 79) def _reduce_25(val, _values, result) - result = MediaQuery.new(nil, val[0], val[1]) + result = MediaQuery.new(nil, val[0], val[1]) result end .,., module_eval(<<'.,.,', 'csspool.y', 82) def _reduce_26(val, _values, result) - result = :only + result = :only result end .,., module_eval(<<'.,.,', 'csspool.y', 83) def _reduce_27(val, _values, result) - result = :not + result = :not result end .,., module_eval(<<'.,.,', 'csspool.y', 84) def _reduce_28(val, _values, result) - result = nil + result = nil result end .,., module_eval(<<'.,.,', 'csspool.y', 87) def _reduce_29(val, _values, result) - result = MediaType.new(val[0]) + result = MediaType.new(val[0]) result end .,., module_eval(<<'.,.,', 'csspool.y', 90) def _reduce_30(val, _values, result) - result = MediaType.new(val[2]) + result = MediaType.new(val[2]) result end .,., module_eval(<<'.,.,', 'csspool.y', 91) def _reduce_31(val, _values, result) - result = MediaFeature.new(val[2], val[6][0]) + result = MediaFeature.new(val[2], val[6][0]) result end .,., module_eval(<<'.,.,', 'csspool.y', 94) def _reduce_32(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'csspool.y', 95) def _reduce_33(val, _values, result) - result = nil + result = nil result end .,., module_eval(<<'.,.,', 'csspool.y', 98) def _reduce_34(val, _values, result) - result = val[0] << val[2] + result = val[0] << val[2] result end .,., module_eval(<<'.,.,', 'csspool.y', 99) def _reduce_35(val, _values, result) - result = [] + result = [] result end .,., @@ -1075,7 +1075,7 @@ module_eval(<<'.,.,', 'csspool.y', 103) unit = val.first.gsub(/[\s\d.]/, '') number = numeric(val.first) result = Terms::Resolution.new(number, unit) - + result end .,., @@ -1108,7 +1108,7 @@ module_eval(<<'.,.,', 'csspool.y', 103) module_eval(<<'.,.,', 'csspool.y', 128) def _reduce_50(val, _values, result) - @handler.end_media val.first + @handler.end_media val.first result end .,., @@ -1117,21 +1117,21 @@ module_eval(<<'.,.,', 'csspool.y', 132) def _reduce_51(val, _values, result) result = val[1] @handler.start_media result - + result end .,., module_eval(<<'.,.,', 'csspool.y', 137) def _reduce_52(val, _values, result) - @handler.end_document_query(before_pos(val), after_pos(val)) + @handler.end_document_query(before_pos(val), after_pos(val)) result end .,., module_eval(<<'.,.,', 'csspool.y', 138) def _reduce_53(val, _values, result) - @handler.end_document_query(before_pos(val), after_pos(val)) + @handler.end_document_query(before_pos(val), after_pos(val)) result end .,., @@ -1139,7 +1139,7 @@ module_eval(<<'.,.,', 'csspool.y', 138) module_eval(<<'.,.,', 'csspool.y', 142) def _reduce_54(val, _values, result) @handler.start_document_query(val[1], after_pos(val)) - + result end .,., @@ -1147,7 +1147,7 @@ module_eval(<<'.,.,', 'csspool.y', 142) module_eval(<<'.,.,', 'csspool.y', 147) def _reduce_55(val, _values, result) @handler.node_start_pos = before_pos(val) - + result end .,., @@ -1155,7 +1155,7 @@ module_eval(<<'.,.,', 'csspool.y', 147) module_eval(<<'.,.,', 'csspool.y', 152) def _reduce_56(val, _values, result) result = [val[0], val[2]].flatten - + result end .,., @@ -1163,7 +1163,7 @@ module_eval(<<'.,.,', 'csspool.y', 152) module_eval(<<'.,.,', 'csspool.y', 155) def _reduce_57(val, _values, result) result = val - + result end .,., @@ -1176,14 +1176,14 @@ module_eval(<<'.,.,', 'csspool.y', 155) module_eval(<<'.,.,', 'csspool.y', 164) def _reduce_61(val, _values, result) - @handler.end_supports + @handler.end_supports result end .,., module_eval(<<'.,.,', 'csspool.y', 165) def _reduce_62(val, _values, result) - @handler.end_supports + @handler.end_supports result end .,., @@ -1191,70 +1191,70 @@ module_eval(<<'.,.,', 'csspool.y', 165) module_eval(<<'.,.,', 'csspool.y', 169) def _reduce_63(val, _values, result) @handler.start_supports val[1] - + result end .,., module_eval(<<'.,.,', 'csspool.y', 173) def _reduce_64(val, _values, result) - result = val.join('') + result = val.join('') result end .,., module_eval(<<'.,.,', 'csspool.y', 174) def _reduce_65(val, _values, result) - result = val.join('') + result = val.join('') result end .,., module_eval(<<'.,.,', 'csspool.y', 175) def _reduce_66(val, _values, result) - result = val.join('') + result = val.join('') result end .,., module_eval(<<'.,.,', 'csspool.y', 178) def _reduce_67(val, _values, result) - result = val.join('') + result = val.join('') result end .,., module_eval(<<'.,.,', 'csspool.y', 179) def _reduce_68(val, _values, result) - result = val.join('') + result = val.join('') result end .,., module_eval(<<'.,.,', 'csspool.y', 180) def _reduce_69(val, _values, result) - result = val.join('') + result = val.join('') result end .,., module_eval(<<'.,.,', 'csspool.y', 183) def _reduce_70(val, _values, result) - result = val.join('') + result = val.join('') result end .,., module_eval(<<'.,.,', 'csspool.y', 184) def _reduce_71(val, _values, result) - result = val.join('') + result = val.join('') result end .,., module_eval(<<'.,.,', 'csspool.y', 187) def _reduce_72(val, _values, result) - result = val.join('') + result = val.join('') result end .,., @@ -1265,42 +1265,42 @@ module_eval(<<'.,.,', 'csspool.y', 187) module_eval(<<'.,.,', 'csspool.y', 194) def _reduce_75(val, _values, result) - result = val.join('') + result = val.join('') result end .,., module_eval(<<'.,.,', 'csspool.y', 195) def _reduce_76(val, _values, result) - result = val.join('') + result = val.join('') result end .,., module_eval(<<'.,.,', 'csspool.y', 198) def _reduce_77(val, _values, result) - result = val.join('') + result = val.join('') result end .,., module_eval(<<'.,.,', 'csspool.y', 199) def _reduce_78(val, _values, result) - result = val.join('') + result = val.join('') result end .,., module_eval(<<'.,.,', 'csspool.y', 202) def _reduce_79(val, _values, result) - result = val.join('') + result = val.join('') result end .,., module_eval(<<'.,.,', 'csspool.y', 203) def _reduce_80(val, _values, result) - result = val.join('') + result = val.join('') result end .,., @@ -1312,7 +1312,7 @@ module_eval(<<'.,.,', 'csspool.y', 203) module_eval(<<'.,.,', 'csspool.y', 211) def _reduce_83(val, _values, result) @handler.start_keyframes_rule val[1] - + result end .,., @@ -1323,14 +1323,14 @@ module_eval(<<'.,.,', 'csspool.y', 211) module_eval(<<'.,.,', 'csspool.y', 219) def _reduce_86(val, _values, result) - @handler.end_keyframes_block + @handler.end_keyframes_block result end .,., module_eval(<<'.,.,', 'csspool.y', 220) def _reduce_87(val, _values, result) - @handler.end_keyframes_block + @handler.end_keyframes_block result end .,., @@ -1338,7 +1338,7 @@ module_eval(<<'.,.,', 'csspool.y', 220) module_eval(<<'.,.,', 'csspool.y', 224) def _reduce_88(val, _values, result) @handler.start_keyframes_block val[0] - + result end .,., @@ -1348,7 +1348,7 @@ module_eval(<<'.,.,', 'csspool.y', 224) module_eval(<<'.,.,', 'csspool.y', 229) def _reduce_90(val, _values, result) result = val[0] + ', ' + val[2] - + result end .,., @@ -1359,21 +1359,21 @@ module_eval(<<'.,.,', 'csspool.y', 229) module_eval(<<'.,.,', 'csspool.y', 235) def _reduce_93(val, _values, result) - result = val[0].strip + result = val[0].strip result end .,., module_eval(<<'.,.,', 'csspool.y', 238) def _reduce_94(val, _values, result) - @handler.end_fontface_rule + @handler.end_fontface_rule result end .,., module_eval(<<'.,.,', 'csspool.y', 239) def _reduce_95(val, _values, result) - @handler.end_fontface_rule + @handler.end_fontface_rule result end .,., @@ -1381,7 +1381,7 @@ module_eval(<<'.,.,', 'csspool.y', 239) module_eval(<<'.,.,', 'csspool.y', 243) def _reduce_96(val, _values, result) @handler.start_fontface_rule - + result end .,., @@ -1389,7 +1389,7 @@ module_eval(<<'.,.,', 'csspool.y', 243) module_eval(<<'.,.,', 'csspool.y', 248) def _reduce_97(val, _values, result) @handler.end_selector val.first - + result end .,., @@ -1397,7 +1397,7 @@ module_eval(<<'.,.,', 'csspool.y', 248) module_eval(<<'.,.,', 'csspool.y', 251) def _reduce_98(val, _values, result) @handler.end_selector val.first - + result end .,., @@ -1406,14 +1406,14 @@ module_eval(<<'.,.,', 'csspool.y', 256) def _reduce_99(val, _values, result) start = @handler.start_selector([]) @handler.end_selector(start) - + result end .,., module_eval(<<'.,.,', 'csspool.y', 261) def _reduce_100(val, _values, result) - result = val.last + result = val.last result end .,., @@ -1421,7 +1421,7 @@ module_eval(<<'.,.,', 'csspool.y', 261) module_eval(<<'.,.,', 'csspool.y', 263) def _reduce_101(val, _values, result) @handler.start_selector val.first - + result end .,., @@ -1430,7 +1430,7 @@ module_eval(<<'.,.,', 'csspool.y', 269) def _reduce_102(val, _values, result) sel = Selector.new(val.first, {}) result = [sel].concat(val[2]) - + result end .,., @@ -1438,7 +1438,7 @@ module_eval(<<'.,.,', 'csspool.y', 269) module_eval(<<'.,.,', 'csspool.y', 274) def _reduce_103(val, _values, result) result = [Selector.new(val.first, {})] - + result end .,., @@ -1448,7 +1448,7 @@ module_eval(<<'.,.,', 'csspool.y', 280) val.flatten! val[2].combinator = val.delete_at 1 result = val - + result end .,., @@ -1457,28 +1457,28 @@ module_eval(<<'.,.,', 'csspool.y', 280) module_eval(<<'.,.,', 'csspool.y', 287) def _reduce_106(val, _values, result) - result = :s + result = :s result end .,., module_eval(<<'.,.,', 'csspool.y', 288) def _reduce_107(val, _values, result) - result = :> + result = :> result end .,., module_eval(<<'.,.,', 'csspool.y', 289) def _reduce_108(val, _values, result) - result = :+ + result = :+ result end .,., module_eval(<<'.,.,', 'csspool.y', 290) def _reduce_109(val, _values, result) - result = :~ + result = :~ result end .,., @@ -1488,14 +1488,14 @@ module_eval(<<'.,.,', 'csspool.y', 294) selector = val.first selector.additional_selectors = val.last result = [selector] - + result end .,., module_eval(<<'.,.,', 'csspool.y', 298) def _reduce_111(val, _values, result) - result = val + result = val result end .,., @@ -1505,14 +1505,14 @@ module_eval(<<'.,.,', 'csspool.y', 301) ss = Selectors::Simple.new nil, nil ss.additional_selectors = val.flatten result = [ss] - + result end .,., module_eval(<<'.,.,', 'csspool.y', 307) def _reduce_113(val, _values, result) - result = [val[0], val[2]].flatten + result = [val[0], val[2]].flatten result end .,., @@ -1521,119 +1521,119 @@ module_eval(<<'.,.,', 'csspool.y', 307) module_eval(<<'.,.,', 'csspool.y', 311) def _reduce_115(val, _values, result) - result = [interpret_identifier(val[0]), nil] + result = [interpret_identifier(val[0]), nil] result end .,., module_eval(<<'.,.,', 'csspool.y', 312) def _reduce_116(val, _values, result) - result = [interpret_identifier(val[2]), interpret_identifier(val[0])] + result = [interpret_identifier(val[2]), interpret_identifier(val[0])] result end .,., module_eval(<<'.,.,', 'csspool.y', 313) def _reduce_117(val, _values, result) - result = [interpret_identifier(val[1]), nil] + result = [interpret_identifier(val[1]), nil] result end .,., module_eval(<<'.,.,', 'csspool.y', 314) def _reduce_118(val, _values, result) - result = [interpret_identifier(val[2]), '*'] + result = [interpret_identifier(val[2]), '*'] result end .,., module_eval(<<'.,.,', 'csspool.y', 317) def _reduce_119(val, _values, result) - result = Selectors::Type.new val.first[0], nil, val.first[1] + result = Selectors::Type.new val.first[0], nil, val.first[1] result end .,., module_eval(<<'.,.,', 'csspool.y', 318) def _reduce_120(val, _values, result) - result = Selectors::Universal.new val.first + result = Selectors::Universal.new val.first result end .,., module_eval(<<'.,.,', 'csspool.y', 319) def _reduce_121(val, _values, result) - result = Selectors::Universal.new val[1] + result = Selectors::Universal.new val[1] result end .,., module_eval(<<'.,.,', 'csspool.y', 320) def _reduce_122(val, _values, result) - result = Selectors::Universal.new val[2], nil, val[0] + result = Selectors::Universal.new val[2], nil, val[0] result end .,., module_eval(<<'.,.,', 'csspool.y', 321) def _reduce_123(val, _values, result) - result = Selectors::Universal.new val[2], nil, interpret_identifier(val[0]) + result = Selectors::Universal.new val[2], nil, interpret_identifier(val[0]) result end .,., module_eval(<<'.,.,', 'csspool.y', 324) def _reduce_124(val, _values, result) - result = val + result = val result end .,., module_eval(<<'.,.,', 'csspool.y', 325) def _reduce_125(val, _values, result) - result = val + result = val result end .,., module_eval(<<'.,.,', 'csspool.y', 326) def _reduce_126(val, _values, result) - result = val + result = val result end .,., module_eval(<<'.,.,', 'csspool.y', 327) def _reduce_127(val, _values, result) - result = val + result = val result end .,., module_eval(<<'.,.,', 'csspool.y', 328) def _reduce_128(val, _values, result) - result = val.flatten + result = val.flatten result end .,., module_eval(<<'.,.,', 'csspool.y', 329) def _reduce_129(val, _values, result) - result = val.flatten + result = val.flatten result end .,., module_eval(<<'.,.,', 'csspool.y', 330) def _reduce_130(val, _values, result) - result = val.flatten + result = val.flatten result end .,., module_eval(<<'.,.,', 'csspool.y', 331) def _reduce_131(val, _values, result) - result = val.flatten + result = val.flatten result end .,., @@ -1641,7 +1641,7 @@ module_eval(<<'.,.,', 'csspool.y', 331) module_eval(<<'.,.,', 'csspool.y', 335) def _reduce_132(val, _values, result) result = Selectors::Id.new interpret_identifier val.first.sub(/^#/, '') - + result end .,., @@ -1649,7 +1649,7 @@ module_eval(<<'.,.,', 'csspool.y', 335) module_eval(<<'.,.,', 'csspool.y', 339) def _reduce_133(val, _values, result) result = Selectors::Class.new interpret_identifier val.last - + result end .,., @@ -1662,7 +1662,7 @@ module_eval(<<'.,.,', 'csspool.y', 344) Selectors::Attribute::EQUALS, val[1][1] ) - + result end .,., @@ -1675,7 +1675,7 @@ module_eval(<<'.,.,', 'csspool.y', 352) Selectors::Attribute::EQUALS, val[1][1] ) - + result end .,., @@ -1688,7 +1688,7 @@ module_eval(<<'.,.,', 'csspool.y', 360) Selectors::Attribute::INCLUDES, val[1][1] ) - + result end .,., @@ -1701,7 +1701,7 @@ module_eval(<<'.,.,', 'csspool.y', 368) Selectors::Attribute::INCLUDES, val[1][1] ) - + result end .,., @@ -1714,7 +1714,7 @@ module_eval(<<'.,.,', 'csspool.y', 376) Selectors::Attribute::DASHMATCH, val[1][1] ) - + result end .,., @@ -1727,7 +1727,7 @@ module_eval(<<'.,.,', 'csspool.y', 384) Selectors::Attribute::DASHMATCH, val[1][1] ) - + result end .,., @@ -1740,7 +1740,7 @@ module_eval(<<'.,.,', 'csspool.y', 392) Selectors::Attribute::PREFIXMATCH, val[1][1] ) - + result end .,., @@ -1753,7 +1753,7 @@ module_eval(<<'.,.,', 'csspool.y', 400) Selectors::Attribute::PREFIXMATCH, val[1][1] ) - + result end .,., @@ -1766,7 +1766,7 @@ module_eval(<<'.,.,', 'csspool.y', 408) Selectors::Attribute::SUFFIXMATCH, val[1][1] ) - + result end .,., @@ -1779,7 +1779,7 @@ module_eval(<<'.,.,', 'csspool.y', 416) Selectors::Attribute::SUFFIXMATCH, val[1][1] ) - + result end .,., @@ -1792,7 +1792,7 @@ module_eval(<<'.,.,', 'csspool.y', 424) Selectors::Attribute::SUBSTRINGMATCH, val[1][1] ) - + result end .,., @@ -1805,7 +1805,7 @@ module_eval(<<'.,.,', 'csspool.y', 432) Selectors::Attribute::SUBSTRINGMATCH, val[1][1] ) - + result end .,., @@ -1818,7 +1818,7 @@ module_eval(<<'.,.,', 'csspool.y', 440) Selectors::Attribute::SET, val[1][1] ) - + result end .,., @@ -1826,7 +1826,7 @@ module_eval(<<'.,.,', 'csspool.y', 440) module_eval(<<'.,.,', 'csspool.y', 450) def _reduce_147(val, _values, result) result = Selectors::pseudo interpret_identifier(val[1]) - + result end .,., @@ -1836,7 +1836,7 @@ module_eval(<<'.,.,', 'csspool.y', 453) result = Selectors::PseudoElement.new( interpret_identifier(val[2]) ) - + result end .,., @@ -1847,7 +1847,7 @@ module_eval(<<'.,.,', 'csspool.y', 458) interpret_identifier(val[1].sub(/\($/, '')), '' ) - + result end .,., @@ -1858,7 +1858,7 @@ module_eval(<<'.,.,', 'csspool.y', 464) interpret_identifier(val[1].sub(/\($/, '')), interpret_identifier(val[2]) ) - + result end .,., @@ -1869,7 +1869,7 @@ module_eval(<<'.,.,', 'csspool.y', 470) 'not', val[2].first.to_s ) - + result end .,., @@ -1880,7 +1880,7 @@ module_eval(<<'.,.,', 'csspool.y', 476) interpret_identifier(val[1].sub(/\(.*/, '')), interpret_identifier(val[1].sub(/.*\(/, '').sub(/\).*/, '')) ) - + result end .,., @@ -1891,7 +1891,7 @@ module_eval(<<'.,.,', 'csspool.y', 482) val[1].split('(').first.strip, val[2].join(', ') ) - + result end .,., @@ -1901,7 +1901,7 @@ module_eval(<<'.,.,', 'csspool.y', 488) result = Selectors::PseudoElement.new( interpret_identifier(val[1].sub(/\($/, '')) ) - + result end .,., @@ -1911,7 +1911,7 @@ module_eval(<<'.,.,', 'csspool.y', 493) result = Selectors::PseudoElement.new( interpret_identifier(val[2].sub(/\($/, '')) ) - + result end .,., @@ -1940,70 +1940,70 @@ module_eval(<<'.,.,', 'csspool.y', 493) module_eval(<<'.,.,', 'csspool.y', 519) def _reduce_167(val, _values, result) - @handler.property val.first + @handler.property val.first result end .,., module_eval(<<'.,.,', 'csspool.y', 523) def _reduce_168(val, _values, result) - result = Declaration.new(val.first, val[2], val[3]) + result = Declaration.new(val.first, val[2], val[3]) result end .,., module_eval(<<'.,.,', 'csspool.y', 525) def _reduce_169(val, _values, result) - result = Declaration.new(val.first, val[3], val[4]) + result = Declaration.new(val.first, val[3], val[4]) result end .,., module_eval(<<'.,.,', 'csspool.y', 527) def _reduce_170(val, _values, result) - result = Declaration.new(val.first, val[3], val[4]) + result = Declaration.new(val.first, val[3], val[4]) result end .,., module_eval(<<'.,.,', 'csspool.y', 529) def _reduce_171(val, _values, result) - result = Declaration.new(val.first, val[4], val[5]) + result = Declaration.new(val.first, val[4], val[5]) result end .,., module_eval(<<'.,.,', 'csspool.y', 532) def _reduce_172(val, _values, result) - result = true + result = true result end .,., module_eval(<<'.,.,', 'csspool.y', 533) def _reduce_173(val, _values, result) - result = false + result = false result end .,., module_eval(<<'.,.,', 'csspool.y', 536) def _reduce_174(val, _values, result) - result = interpret_identifier val[0] + result = interpret_identifier val[0] result end .,., module_eval(<<'.,.,', 'csspool.y', 537) def _reduce_175(val, _values, result) - result = interpret_identifier val.join + result = interpret_identifier val.join result end .,., module_eval(<<'.,.,', 'csspool.y', 538) def _reduce_176(val, _values, result) - result = interpret_identifier val[0] + result = interpret_identifier val[0] result end .,., @@ -2018,21 +2018,21 @@ module_eval(<<'.,.,', 'csspool.y', 547) def _reduce_180(val, _values, result) result = [val.first, val.last].flatten val.last.first.operator = val[1] - + result end .,., module_eval(<<'.,.,', 'csspool.y', 550) def _reduce_181(val, _values, result) - result = val.flatten + result = val.flatten result end .,., module_eval(<<'.,.,', 'csspool.y', 551) def _reduce_182(val, _values, result) - result = val + result = val result end .,., @@ -2061,7 +2061,7 @@ module_eval(<<'.,.,', 'csspool.y', 551) module_eval(<<'.,.,', 'csspool.y', 567) def _reduce_194(val, _values, result) - result = val.first + result = val.first result end .,., @@ -2074,7 +2074,7 @@ module_eval(<<'.,.,', 'csspool.y', 569) else result = Terms::Function.new name, val[1] end - + result end .,., @@ -2083,14 +2083,14 @@ module_eval(<<'.,.,', 'csspool.y', 577) def _reduce_196(val, _values, result) name = interpret_identifier val.first.sub(/\($/, '') result = Terms::Function.new name - + result end .,., module_eval(<<'.,.,', 'csspool.y', 582) def _reduce_197(val, _values, result) - result = val.first + result = val.first result end .,., @@ -2100,7 +2100,7 @@ module_eval(<<'.,.,', 'csspool.y', 584) parts = val.first.split('(') name = interpret_identifier parts.first result = Terms::Function.new(name, [Terms::String.new(interpret_string_no_quote(parts.last))]) - + result end .,., @@ -2112,7 +2112,7 @@ module_eval(<<'.,.,', 'csspool.y', 584) module_eval(<<'.,.,', 'csspool.y', 595) def _reduce_201(val, _values, result) result = Terms::Math.new(val.first.split('(').first, val[1]) - + result end .,., @@ -2121,14 +2121,14 @@ module_eval(<<'.,.,', 'csspool.y', 595) module_eval(<<'.,.,', 'csspool.y', 601) def _reduce_203(val, _values, result) - val.insert(1, ' '); result = val.join('') + val.insert(1, ' '); result = val.join('') result end .,., module_eval(<<'.,.,', 'csspool.y', 602) def _reduce_204(val, _values, result) - val.insert(1, ' '); result = val.join('') + val.insert(1, ' '); result = val.join('') result end .,., @@ -2137,77 +2137,77 @@ module_eval(<<'.,.,', 'csspool.y', 602) module_eval(<<'.,.,', 'csspool.y', 606) def _reduce_206(val, _values, result) - result = val.join('') + result = val.join('') result end .,., module_eval(<<'.,.,', 'csspool.y', 607) def _reduce_207(val, _values, result) - result = val.join('') + result = val.join('') result end .,., module_eval(<<'.,.,', 'csspool.y', 610) def _reduce_208(val, _values, result) - result = val.join('') + result = val.join('') result end .,., module_eval(<<'.,.,', 'csspool.y', 611) def _reduce_209(val, _values, result) - result = val.join('') + result = val.join('') result end .,., module_eval(<<'.,.,', 'csspool.y', 612) def _reduce_210(val, _values, result) - result = val.join('') + result = val.join('') result end .,., module_eval(<<'.,.,', 'csspool.y', 615) def _reduce_211(val, _values, result) - result = val.first + result = val.first result end .,., module_eval(<<'.,.,', 'csspool.y', 616) def _reduce_212(val, _values, result) - result = Terms::Hash.new val.first.sub(/^#/, '') + result = Terms::Hash.new val.first.sub(/^#/, '') result end .,., module_eval(<<'.,.,', 'csspool.y', 619) def _reduce_213(val, _values, result) - result = val.first + result = val.first result end .,., module_eval(<<'.,.,', 'csspool.y', 620) def _reduce_214(val, _values, result) - result = Terms::URI.new interpret_uri val.first + result = Terms::URI.new interpret_uri val.first result end .,., module_eval(<<'.,.,', 'csspool.y', 623) def _reduce_215(val, _values, result) - result = val.first + result = val.first result end .,., module_eval(<<'.,.,', 'csspool.y', 624) def _reduce_216(val, _values, result) - result = Terms::String.new interpret_string val.first + result = Terms::String.new interpret_string val.first result end .,., @@ -2216,7 +2216,7 @@ module_eval(<<'.,.,', 'csspool.y', 628) def _reduce_217(val, _values, result) result = val[1] val[1].unary_operator = val.first - + result end .,., @@ -2224,7 +2224,7 @@ module_eval(<<'.,.,', 'csspool.y', 628) module_eval(<<'.,.,', 'csspool.y', 632) def _reduce_218(val, _values, result) result = Terms::Number.new numeric val.first - + result end .,., @@ -2232,7 +2232,7 @@ module_eval(<<'.,.,', 'csspool.y', 632) module_eval(<<'.,.,', 'csspool.y', 635) def _reduce_219(val, _values, result) result = Terms::Number.new numeric(val.first), nil, '%' - + result end .,., @@ -2241,7 +2241,7 @@ module_eval(<<'.,.,', 'csspool.y', 638) def _reduce_220(val, _values, result) unit = val.first.gsub(/[\s\d.]/, '') result = Terms::Number.new numeric(val.first), nil, unit - + result end .,., @@ -2250,7 +2250,7 @@ module_eval(<<'.,.,', 'csspool.y', 642) def _reduce_221(val, _values, result) unit = val.first.gsub(/[\s\d.]/, '') result = Terms::Number.new numeric(val.first), nil, unit - + result end .,., @@ -2259,7 +2259,7 @@ module_eval(<<'.,.,', 'csspool.y', 646) def _reduce_222(val, _values, result) unit = val.first.gsub(/[\s\d.]/, '') result = Terms::Number.new numeric(val.first), nil, unit - + result end .,., @@ -2268,7 +2268,7 @@ module_eval(<<'.,.,', 'csspool.y', 650) def _reduce_223(val, _values, result) unit = val.first.gsub(/[\s\d.]/, '') result = Terms::Number.new numeric(val.first), nil, unit - + result end .,., @@ -2276,35 +2276,35 @@ module_eval(<<'.,.,', 'csspool.y', 650) module_eval(<<'.,.,', 'csspool.y', 656) def _reduce_224(val, _values, result) result = Terms::Ratio.new(val[0], val[1]) - + result end .,., module_eval(<<'.,.,', 'csspool.y', 660) def _reduce_225(val, _values, result) - result = :minus + result = :minus result end .,., module_eval(<<'.,.,', 'csspool.y', 661) def _reduce_226(val, _values, result) - result = :plus + result = :plus result end .,., module_eval(<<'.,.,', 'csspool.y', 664) def _reduce_227(val, _values, result) - result = val.first + result = val.first result end .,., module_eval(<<'.,.,', 'csspool.y', 665) def _reduce_228(val, _values, result) - result = Terms::Ident.new interpret_identifier val.first + result = Terms::Ident.new interpret_identifier val.first result end .,., diff --git a/test/racc/regress/edtf b/test/racc/regress/edtf index 6e3891df95..86facf23b0 100644 --- a/test/racc/regress/edtf +++ b/test/racc/regress/edtf @@ -829,28 +829,28 @@ Racc_debug_parser = false module_eval(<<'.,.,', 'edtf.y', 54) def _reduce_8(val, _values, result) - result = Date.new(val[0]).year_precision! + result = Date.new(val[0]).year_precision! result end .,., module_eval(<<'.,.,', 'edtf.y', 55) def _reduce_9(val, _values, result) - result = Date.new(*val.flatten).month_precision! + result = Date.new(*val.flatten).month_precision! result end .,., module_eval(<<'.,.,', 'edtf.y', 56) def _reduce_10(val, _values, result) - result = Date.new(*val.flatten).day_precision! + result = Date.new(*val.flatten).day_precision! result end .,., module_eval(<<'.,.,', 'edtf.y', 59) def _reduce_11(val, _values, result) - result = -val[1] + result = -val[1] result end .,., @@ -859,7 +859,7 @@ module_eval(<<'.,.,', 'edtf.y', 63) def _reduce_12(val, _values, result) result = DateTime.new(val[0].year, val[0].month, val[0].day, *val[2]) result.skip_timezone = (val[2].length == 3) - + result end .,., @@ -868,14 +868,14 @@ module_eval(<<'.,.,', 'edtf.y', 63) module_eval(<<'.,.,', 'edtf.y', 68) def _reduce_14(val, _values, result) - result = val.flatten + result = val.flatten result end .,., module_eval(<<'.,.,', 'edtf.y', 70) def _reduce_15(val, _values, result) - result = val.values_at(0, 2, 4) + result = val.values_at(0, 2, 4) result end .,., @@ -884,28 +884,28 @@ module_eval(<<'.,.,', 'edtf.y', 70) module_eval(<<'.,.,', 'edtf.y', 73) def _reduce_17(val, _values, result) - result = [24, 0, 0] + result = [24, 0, 0] result end .,., module_eval(<<'.,.,', 'edtf.y', 75) def _reduce_18(val, _values, result) - result = 0 + result = 0 result end .,., module_eval(<<'.,.,', 'edtf.y', 76) def _reduce_19(val, _values, result) - result = -1 * val[1] + result = -1 * val[1] result end .,., module_eval(<<'.,.,', 'edtf.y', 77) def _reduce_20(val, _values, result) - result = val[1] + result = val[1] result end .,., @@ -914,28 +914,28 @@ module_eval(<<'.,.,', 'edtf.y', 77) module_eval(<<'.,.,', 'edtf.y', 81) def _reduce_22(val, _values, result) - result = 0 + result = 0 result end .,., module_eval(<<'.,.,', 'edtf.y', 85) def _reduce_23(val, _values, result) - result = Rational(val[0] * 60 + val[2], 1440) + result = Rational(val[0] * 60 + val[2], 1440) result end .,., module_eval(<<'.,.,', 'edtf.y', 86) def _reduce_24(val, _values, result) - result = Rational(840, 1440) + result = Rational(840, 1440) result end .,., module_eval(<<'.,.,', 'edtf.y', 87) def _reduce_25(val, _values, result) - result = Rational(val[3], 1440) + result = Rational(val[3], 1440) result end .,., @@ -943,7 +943,7 @@ module_eval(<<'.,.,', 'edtf.y', 87) module_eval(<<'.,.,', 'edtf.y', 91) def _reduce_26(val, _values, result) result = val.zip([1000,100,10,1]).reduce(0) { |s,(a,b)| s += a * b } - + result end .,., @@ -954,7 +954,7 @@ module_eval(<<'.,.,', 'edtf.y', 91) module_eval(<<'.,.,', 'edtf.y', 97) def _reduce_29(val, _values, result) - result = [val[0], val[2]] + result = [val[0], val[2]] result end .,., @@ -965,7 +965,7 @@ module_eval(<<'.,.,', 'edtf.y', 104) if result[2] > 31 || (result[2] > 30 && [2,4,6,9,11].include?(result[1])) || (result[2] > 29 && result[1] == 2) raise ArgumentError, "invalid date (invalid days #{result[2]} for month #{result[1]})" end - + result end .,., @@ -988,7 +988,7 @@ module_eval(<<'.,.,', 'edtf.y', 127) def _reduce_38(val, _values, result) result = Date.new(val[0][0]).year_precision! result.unspecified.year[2,2] = val[0][1] - + result end .,., @@ -1002,7 +1002,7 @@ module_eval(<<'.,.,', 'edtf.y', 127) module_eval(<<'.,.,', 'edtf.y', 138) def _reduce_42(val, _values, result) result = [val[0,3].zip([1000,100,10]).reduce(0) { |s,(a,b)| s += a * b }, [false,true]] - + result end .,., @@ -1010,7 +1010,7 @@ module_eval(<<'.,.,', 'edtf.y', 138) module_eval(<<'.,.,', 'edtf.y', 142) def _reduce_43(val, _values, result) result = [val[0,2].zip([1000,100]).reduce(0) { |s,(a,b)| s += a * b }, [true, true]] - + result end .,., @@ -1019,7 +1019,7 @@ module_eval(<<'.,.,', 'edtf.y', 146) def _reduce_44(val, _values, result) result = Date.new(val[0]).unspecified!(:month) result.precision = :month - + result end .,., @@ -1027,7 +1027,7 @@ module_eval(<<'.,.,', 'edtf.y', 146) module_eval(<<'.,.,', 'edtf.y', 151) def _reduce_45(val, _values, result) result = Date.new(*val[0]).unspecified!(:day) - + result end .,., @@ -1035,7 +1035,7 @@ module_eval(<<'.,.,', 'edtf.y', 151) module_eval(<<'.,.,', 'edtf.y', 155) def _reduce_46(val, _values, result) result = Date.new(val[0]).unspecified!([:day,:month]) - + result end .,., @@ -1043,7 +1043,7 @@ module_eval(<<'.,.,', 'edtf.y', 155) module_eval(<<'.,.,', 'edtf.y', 160) def _reduce_47(val, _values, result) result = Interval.new(val[0], val[2]) - + result end .,., @@ -1066,7 +1066,7 @@ module_eval(<<'.,.,', 'edtf.y', 171) def _reduce_55(val, _values, result) result = Date.new(val[1]) result.precision = :year - + result end .,., @@ -1075,7 +1075,7 @@ module_eval(<<'.,.,', 'edtf.y', 176) def _reduce_56(val, _values, result) result = Date.new(-1 * val[2]) result.precision = :year - + result end .,., @@ -1083,14 +1083,14 @@ module_eval(<<'.,.,', 'edtf.y', 176) module_eval(<<'.,.,', 'edtf.y', 183) def _reduce_57(val, _values, result) result = val.zip([10000,1000,100,10,1]).reduce(0) { |s,(a,b)| s += a * b } - + result end .,., module_eval(<<'.,.,', 'edtf.y', 185) def _reduce_58(val, _values, result) - result = 10 * val[0] + val[1] + result = 10 * val[0] + val[1] result end .,., @@ -1099,35 +1099,35 @@ module_eval(<<'.,.,', 'edtf.y', 190) def _reduce_59(val, _values, result) result = Season.new(val[0], val[2]) val[3].each { |ua| result.send(ua) } - + result end .,., module_eval(<<'.,.,', 'edtf.y', 194) def _reduce_60(val, _values, result) - result = 21 + result = 21 result end .,., module_eval(<<'.,.,', 'edtf.y', 195) def _reduce_61(val, _values, result) - result = 22 + result = 22 result end .,., module_eval(<<'.,.,', 'edtf.y', 196) def _reduce_62(val, _values, result) - result = 23 + result = 23 result end .,., module_eval(<<'.,.,', 'edtf.y', 197) def _reduce_63(val, _values, result) - result = 24 + result = 24 result end .,., @@ -1150,7 +1150,7 @@ module_eval(<<'.,.,', 'edtf.y', 197) module_eval(<<'.,.,', 'edtf.y', 215) def _reduce_72(val, _values, result) - result = val[0]; result.qualifier = val[1] + result = val[0]; result.qualifier = val[1] result end .,., @@ -1158,7 +1158,7 @@ module_eval(<<'.,.,', 'edtf.y', 215) module_eval(<<'.,.,', 'edtf.y', 221) def _reduce_73(val, _values, result) result = Date.new(val[0].year * 10 ** val[2]).year_precision! - + result end .,., @@ -1166,7 +1166,7 @@ module_eval(<<'.,.,', 'edtf.y', 221) module_eval(<<'.,.,', 'edtf.y', 225) def _reduce_74(val, _values, result) result = Date.new(val[1] * 10 ** val[3]).year_precision! - + result end .,., @@ -1174,14 +1174,14 @@ module_eval(<<'.,.,', 'edtf.y', 225) module_eval(<<'.,.,', 'edtf.y', 229) def _reduce_75(val, _values, result) result = Date.new(-1 * val[2] * 10 ** val[4]).year_precision! - + result end .,., module_eval(<<'.,.,', 'edtf.y', 234) def _reduce_76(val, _values, result) - result = val[0]; result.calendar = val[1] + result = val[0]; result.calendar = val[1] result end .,., @@ -1190,7 +1190,7 @@ module_eval(<<'.,.,', 'edtf.y', 240) def _reduce_77(val, _values, result) d = val[0,3].zip([1000,100,10]).reduce(0) { |s,(a,b)| s += a * b } result = EDTF::Decade.new(d) - + result end .,., @@ -1199,84 +1199,84 @@ module_eval(<<'.,.,', 'edtf.y', 245) def _reduce_78(val, _values, result) d = val[0,2].zip([1000,100]).reduce(0) { |s,(a,b)| s += a * b } result = EDTF::Century.new(d) - + result end .,., module_eval(<<'.,.,', 'edtf.y', 251) def _reduce_79(val, _values, result) - result = val[1].choice! + result = val[1].choice! result end .,., module_eval(<<'.,.,', 'edtf.y', 253) def _reduce_80(val, _values, result) - result = val[1] + result = val[1] result end .,., module_eval(<<'.,.,', 'edtf.y', 255) def _reduce_81(val, _values, result) - result = EDTF::Set.new(val[0]).earlier! + result = EDTF::Set.new(val[0]).earlier! result end .,., module_eval(<<'.,.,', 'edtf.y', 256) def _reduce_82(val, _values, result) - result = EDTF::Set.new([val[0]] + val[2] + [val[4]]).earlier!.later! + result = EDTF::Set.new([val[0]] + val[2] + [val[4]]).earlier!.later! result end .,., module_eval(<<'.,.,', 'edtf.y', 257) def _reduce_83(val, _values, result) - result = EDTF::Set.new([val[0]] + val[2]).earlier! + result = EDTF::Set.new([val[0]] + val[2]).earlier! result end .,., module_eval(<<'.,.,', 'edtf.y', 258) def _reduce_84(val, _values, result) - result = EDTF::Set.new([val[0]] + [val[2]]).earlier!.later! + result = EDTF::Set.new([val[0]] + [val[2]]).earlier!.later! result end .,., module_eval(<<'.,.,', 'edtf.y', 259) def _reduce_85(val, _values, result) - result = EDTF::Set.new(val[0] + [val[2]]).later! + result = EDTF::Set.new(val[0] + [val[2]]).later! result end .,., module_eval(<<'.,.,', 'edtf.y', 260) def _reduce_86(val, _values, result) - result = EDTF::Set.new(*val[0]) + result = EDTF::Set.new(*val[0]) result end .,., module_eval(<<'.,.,', 'edtf.y', 261) def _reduce_87(val, _values, result) - result = EDTF::Set.new(val[0]).later! + result = EDTF::Set.new(val[0]).later! result end .,., module_eval(<<'.,.,', 'edtf.y', 264) def _reduce_88(val, _values, result) - result = [val[0]].flatten + result = [val[0]].flatten result end .,., module_eval(<<'.,.,', 'edtf.y', 265) def _reduce_89(val, _values, result) - result = val[0] + [val[2]].flatten + result = val[0] + [val[2]].flatten result end .,., @@ -1293,49 +1293,49 @@ module_eval(<<'.,.,', 'edtf.y', 265) module_eval(<<'.,.,', 'edtf.y', 277) def _reduce_95(val, _values, result) - result = val[1] + result = val[1] result end .,., module_eval(<<'.,.,', 'edtf.y', 279) def _reduce_96(val, _values, result) - result = Date.new(*val[0]).year_precision! + result = Date.new(*val[0]).year_precision! result end .,., module_eval(<<'.,.,', 'edtf.y', 280) def _reduce_97(val, _values, result) - result = Date.new(*val[0]).month_precision! + result = Date.new(*val[0]).month_precision! result end .,., module_eval(<<'.,.,', 'edtf.y', 281) def _reduce_98(val, _values, result) - result = Date.new(val[0]).year_precision! + result = Date.new(val[0]).year_precision! result end .,., module_eval(<<'.,.,', 'edtf.y', 284) def _reduce_99(val, _values, result) - result = (Date.new(val[0]).day_precision! .. Date.new(val[2]).day_precision!) + result = (Date.new(val[0]).day_precision! .. Date.new(val[2]).day_precision!) result end .,., module_eval(<<'.,.,', 'edtf.y', 285) def _reduce_100(val, _values, result) - result = (Date.new(val[0]).month_precision! .. Date.new(val[2]).month_precision!) + result = (Date.new(val[0]).month_precision! .. Date.new(val[2]).month_precision!) result end .,., module_eval(<<'.,.,', 'edtf.y', 286) def _reduce_101(val, _values, result) - result = (Date.new(val[0]).year_precision! .. Date.new(val[2]).year_precision!) + result = (Date.new(val[0]).year_precision! .. Date.new(val[2]).year_precision!) result end .,., @@ -1344,7 +1344,7 @@ module_eval(<<'.,.,', 'edtf.y', 292) def _reduce_102(val, _values, result) result = Date.new(val[0][0], val[2], val[4]) result.unspecified.year[2,2] = val[0][1] - + result end .,., @@ -1354,7 +1354,7 @@ module_eval(<<'.,.,', 'edtf.y', 297) result = Date.new(val[0][0], 1, val[5]) result.unspecified.year[2,2] = val[0][1] result.unspecified!(:month) - + result end .,., @@ -1364,7 +1364,7 @@ module_eval(<<'.,.,', 'edtf.y', 303) result = Date.new(val[0][0], 1, 1) result.unspecified.year[2,2] = val[0][1] result.unspecified!([:month, :day]) - + result end .,., @@ -1374,7 +1374,7 @@ module_eval(<<'.,.,', 'edtf.y', 309) result = Date.new(val[0][0], val[2], 1) result.unspecified.year[2,2] = val[0][1] result.unspecified!(:day) - + result end .,., @@ -1383,7 +1383,7 @@ module_eval(<<'.,.,', 'edtf.y', 315) def _reduce_106(val, _values, result) result = Date.new(val[0], 1, val[5]) result.unspecified!(:month) - + result end .,., @@ -1392,35 +1392,35 @@ module_eval(<<'.,.,', 'edtf.y', 315) module_eval(<<'.,.,', 'edtf.y', 322) def _reduce_108(val, _values, result) - result = uoa(val[1], val[3]) + result = uoa(val[1], val[3]) result end .,., module_eval(<<'.,.,', 'edtf.y', 325) def _reduce_109(val, _values, result) - result = val[0].year_precision! + result = val[0].year_precision! result end .,., module_eval(<<'.,.,', 'edtf.y', 326) def _reduce_110(val, _values, result) - result = val[0][0].month_precision! + result = val[0][0].month_precision! result end .,., module_eval(<<'.,.,', 'edtf.y', 327) def _reduce_111(val, _values, result) - result = val[0].day_precision! + result = val[0].day_precision! result end .,., module_eval(<<'.,.,', 'edtf.y', 329) def _reduce_112(val, _values, result) - result = uoa(Date.new(val[0]), val[1], :year) + result = uoa(Date.new(val[0]), val[1], :year) result end .,., @@ -1428,7 +1428,7 @@ module_eval(<<'.,.,', 'edtf.y', 329) module_eval(<<'.,.,', 'edtf.y', 333) def _reduce_113(val, _values, result) result = [uoa(val[0].change(:month => val[2]), val[3], [:month, :year])] - + result end .,., @@ -1436,7 +1436,7 @@ module_eval(<<'.,.,', 'edtf.y', 333) module_eval(<<'.,.,', 'edtf.y', 336) def _reduce_114(val, _values, result) result = [uoa(Date.new(val[0], val[2]), val[3], [:year, :month])] - + result end .,., @@ -1444,7 +1444,7 @@ module_eval(<<'.,.,', 'edtf.y', 336) module_eval(<<'.,.,', 'edtf.y', 339) def _reduce_115(val, _values, result) result = [uoa(Date.new(val[0], val[2]), val[4], [:month]), true] - + result end .,., @@ -1452,7 +1452,7 @@ module_eval(<<'.,.,', 'edtf.y', 339) module_eval(<<'.,.,', 'edtf.y', 342) def _reduce_116(val, _values, result) result = [uoa(val[0].change(:month => val[2]), val[4], [:month]), true] - + result end .,., @@ -1460,7 +1460,7 @@ module_eval(<<'.,.,', 'edtf.y', 342) module_eval(<<'.,.,', 'edtf.y', 348) def _reduce_117(val, _values, result) result = uoa(val[0][0].change(:day => val[2]), val[3], val[0][1] ? [:day] : nil) - + result end .,., @@ -1468,7 +1468,7 @@ module_eval(<<'.,.,', 'edtf.y', 348) module_eval(<<'.,.,', 'edtf.y', 351) def _reduce_118(val, _values, result) result = uoa(val[0][0].change(:day => val[2]), val[4], [:day]) - + result end .,., @@ -1476,7 +1476,7 @@ module_eval(<<'.,.,', 'edtf.y', 351) module_eval(<<'.,.,', 'edtf.y', 354) def _reduce_119(val, _values, result) result = uoa(uoa(Date.new(val[0], val[2], val[5]), val[4], :month), val[6], :day) - + result end .,., @@ -1484,7 +1484,7 @@ module_eval(<<'.,.,', 'edtf.y', 354) module_eval(<<'.,.,', 'edtf.y', 357) def _reduce_120(val, _values, result) result = uoa(Date.new(val[0][0], val[0][1], val[2]), val[3]) - + result end .,., @@ -1492,7 +1492,7 @@ module_eval(<<'.,.,', 'edtf.y', 357) module_eval(<<'.,.,', 'edtf.y', 360) def _reduce_121(val, _values, result) result = uoa(Date.new(val[0][0], val[0][1], val[2]), val[4], [:day]) - + result end .,., @@ -1500,7 +1500,7 @@ module_eval(<<'.,.,', 'edtf.y', 360) module_eval(<<'.,.,', 'edtf.y', 363) def _reduce_122(val, _values, result) result = uoa(Date.new(val[0], val[2], val[4]), val[6], [:month, :day]) - + result end .,., @@ -1510,7 +1510,7 @@ module_eval(<<'.,.,', 'edtf.y', 366) result = Date.new(val[0], val[2], val[4]) result = uoa(result, val[6], [:day]) result = uoa(result, val[8], [:month, :day]) - + result end .,., @@ -1519,7 +1519,7 @@ module_eval(<<'.,.,', 'edtf.y', 371) def _reduce_124(val, _values, result) result = val[0].change(:month => val[2], :day => val[4]) result = uoa(result, val[6], [:month, :day]) - + result end .,., @@ -1529,14 +1529,14 @@ module_eval(<<'.,.,', 'edtf.y', 375) result = val[0].change(:month => val[2], :day => val[4]) result = uoa(result, val[6], [:day]) result = uoa(result, val[8], [:month, :day]) - + result end .,., module_eval(<<'.,.,', 'edtf.y', 386) def _reduce_126(val, _values, result) - result = [] + result = [] result end .,., @@ -1545,7 +1545,7 @@ module_eval(<<'.,.,', 'edtf.y', 386) module_eval(<<'.,.,', 'edtf.y', 390) def _reduce_128(val, _values, result) - result = 0 + result = 0 result end .,., @@ -1572,28 +1572,28 @@ module_eval(<<'.,.,', 'edtf.y', 390) module_eval(<<'.,.,', 'edtf.y', 396) def _reduce_139(val, _values, result) - result = val[1] + result = val[1] result end .,., module_eval(<<'.,.,', 'edtf.y', 397) def _reduce_140(val, _values, result) - result = 10 + result = 10 result end .,., module_eval(<<'.,.,', 'edtf.y', 398) def _reduce_141(val, _values, result) - result = 11 + result = 11 result end .,., module_eval(<<'.,.,', 'edtf.y', 399) def _reduce_142(val, _values, result) - result = 12 + result = 12 result end .,., @@ -1602,49 +1602,49 @@ module_eval(<<'.,.,', 'edtf.y', 399) module_eval(<<'.,.,', 'edtf.y', 403) def _reduce_144(val, _values, result) - result = 13 + result = 13 result end .,., module_eval(<<'.,.,', 'edtf.y', 406) def _reduce_145(val, _values, result) - result = val[1] + result = val[1] result end .,., module_eval(<<'.,.,', 'edtf.y', 407) def _reduce_146(val, _values, result) - result = 10 + val[1] + result = 10 + val[1] result end .,., module_eval(<<'.,.,', 'edtf.y', 408) def _reduce_147(val, _values, result) - result = 20 + result = 20 result end .,., module_eval(<<'.,.,', 'edtf.y', 409) def _reduce_148(val, _values, result) - result = 21 + result = 21 result end .,., module_eval(<<'.,.,', 'edtf.y', 410) def _reduce_149(val, _values, result) - result = 22 + result = 22 result end .,., module_eval(<<'.,.,', 'edtf.y', 411) def _reduce_150(val, _values, result) - result = 23 + result = 23 result end .,., @@ -1657,42 +1657,42 @@ module_eval(<<'.,.,', 'edtf.y', 411) module_eval(<<'.,.,', 'edtf.y', 419) def _reduce_154(val, _values, result) - result = 24 + result = 24 result end .,., module_eval(<<'.,.,', 'edtf.y', 420) def _reduce_155(val, _values, result) - result = 25 + result = 25 result end .,., module_eval(<<'.,.,', 'edtf.y', 421) def _reduce_156(val, _values, result) - result = 26 + result = 26 result end .,., module_eval(<<'.,.,', 'edtf.y', 422) def _reduce_157(val, _values, result) - result = 27 + result = 27 result end .,., module_eval(<<'.,.,', 'edtf.y', 423) def _reduce_158(val, _values, result) - result = 28 + result = 28 result end .,., module_eval(<<'.,.,', 'edtf.y', 424) def _reduce_159(val, _values, result) - result = 29 + result = 29 result end .,., @@ -1701,7 +1701,7 @@ module_eval(<<'.,.,', 'edtf.y', 424) module_eval(<<'.,.,', 'edtf.y', 428) def _reduce_161(val, _values, result) - result = 30 + result = 30 result end .,., @@ -1710,7 +1710,7 @@ module_eval(<<'.,.,', 'edtf.y', 428) module_eval(<<'.,.,', 'edtf.y', 432) def _reduce_163(val, _values, result) - result = 31 + result = 31 result end .,., @@ -1719,21 +1719,21 @@ module_eval(<<'.,.,', 'edtf.y', 432) module_eval(<<'.,.,', 'edtf.y', 436) def _reduce_165(val, _values, result) - result = 30 + val[1] + result = 30 + val[1] result end .,., module_eval(<<'.,.,', 'edtf.y', 437) def _reduce_166(val, _values, result) - result = 40 + val[1] + result = 40 + val[1] result end .,., module_eval(<<'.,.,', 'edtf.y', 438) def _reduce_167(val, _values, result) - result = 50 + val[1] + result = 50 + val[1] result end .,., @@ -1744,14 +1744,14 @@ module_eval(<<'.,.,', 'edtf.y', 438) module_eval(<<'.,.,', 'edtf.y', 445) def _reduce_170(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'edtf.y', 446) def _reduce_171(val, _values, result) - result = 10 * val[0] + val[1] + result = 10 * val[0] + val[1] result end .,., @@ -1759,7 +1759,7 @@ module_eval(<<'.,.,', 'edtf.y', 446) module_eval(<<'.,.,', 'edtf.y', 449) def _reduce_172(val, _values, result) result = val.zip([100,10,1]).reduce(0) { |s,(a,b)| s += a * b } - + result end .,., @@ -1767,21 +1767,21 @@ module_eval(<<'.,.,', 'edtf.y', 449) module_eval(<<'.,.,', 'edtf.y', 453) def _reduce_173(val, _values, result) result = val.zip([1000,100,10,1]).reduce(0) { |s,(a,b)| s += a * b } - + result end .,., module_eval(<<'.,.,', 'edtf.y', 457) def _reduce_174(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'edtf.y', 458) def _reduce_175(val, _values, result) - result = 10 * val[0] + val[1] + result = 10 * val[0] + val[1] result end .,., diff --git a/test/racc/regress/huia b/test/racc/regress/huia index addc283208..4dc35fad77 100644 --- a/test/racc/regress/huia +++ b/test/racc/regress/huia @@ -750,28 +750,28 @@ Racc_debug_parser = false module_eval(<<'.,.,', 'huia.y', 44) def _reduce_2(val, _values, result) - return scope + return scope result end .,., module_eval(<<'.,.,', 'huia.y', 46) def _reduce_3(val, _values, result) - return scope.append val[0] + return scope.append val[0] result end .,., module_eval(<<'.,.,', 'huia.y', 47) def _reduce_4(val, _values, result) - return scope.append val[0] + return scope.append val[0] result end .,., module_eval(<<'.,.,', 'huia.y', 48) def _reduce_5(val, _values, result) - return scope + return scope result end .,., @@ -810,14 +810,14 @@ module_eval(<<'.,.,', 'huia.y', 48) module_eval(<<'.,.,', 'huia.y', 66) def _reduce_22(val, _values, result) - return n(:Return, val[1]) + return n(:Return, val[1]) result end .,., module_eval(<<'.,.,', 'huia.y', 67) def _reduce_23(val, _values, result) - return n(:Return, n(:Nil)) + return n(:Return, n(:Nil)) result end .,., @@ -828,28 +828,28 @@ module_eval(<<'.,.,', 'huia.y', 67) module_eval(<<'.,.,', 'huia.y', 72) def _reduce_26(val, _values, result) - return n :Array + return n :Array result end .,., module_eval(<<'.,.,', 'huia.y', 74) def _reduce_27(val, _values, result) - return val[1] + return val[1] result end .,., module_eval(<<'.,.,', 'huia.y', 75) def _reduce_28(val, _values, result) - return n :Array, [val[0]] + return n :Array, [val[0]] result end .,., module_eval(<<'.,.,', 'huia.y', 76) def _reduce_29(val, _values, result) - val[0].append(val[2]); return val[0] + val[0].append(val[2]); return val[0] result end .,., @@ -860,42 +860,42 @@ module_eval(<<'.,.,', 'huia.y', 76) module_eval(<<'.,.,', 'huia.y', 80) def _reduce_32(val, _values, result) - return n :Hash + return n :Hash result end .,., module_eval(<<'.,.,', 'huia.y', 81) def _reduce_33(val, _values, result) - return val[1] + return val[1] result end .,., module_eval(<<'.,.,', 'huia.y', 82) def _reduce_34(val, _values, result) - return n :Hash, val[0] + return n :Hash, val[0] result end .,., module_eval(<<'.,.,', 'huia.y', 83) def _reduce_35(val, _values, result) - val[0].append(val[2]); return val[0] + val[0].append(val[2]); return val[0] result end .,., module_eval(<<'.,.,', 'huia.y', 84) def _reduce_36(val, _values, result) - return n :HashItem, val[0], val[2] + return n :HashItem, val[0], val[2] result end .,., module_eval(<<'.,.,', 'huia.y', 86) def _reduce_37(val, _values, result) - return constant val[0] + return constant val[0] result end .,., @@ -908,49 +908,49 @@ module_eval(<<'.,.,', 'huia.y', 86) module_eval(<<'.,.,', 'huia.y', 91) def _reduce_41(val, _values, result) - return val[0] + return val[0] result end .,., module_eval(<<'.,.,', 'huia.y', 92) def _reduce_42(val, _values, result) - return val[0].append(val[1]) + return val[0].append(val[1]) result end .,., module_eval(<<'.,.,', 'huia.y', 93) def _reduce_43(val, _values, result) - return val[0] + return val[0] result end .,., module_eval(<<'.,.,', 'huia.y', 94) def _reduce_44(val, _values, result) - return pop_scope + return pop_scope result end .,., module_eval(<<'.,.,', 'huia.y', 97) def _reduce_45(val, _values, result) - return val[0] + return val[0] result end .,., module_eval(<<'.,.,', 'huia.y', 98) def _reduce_46(val, _values, result) - return push_scope + return push_scope result end .,., module_eval(<<'.,.,', 'huia.y', 99) def _reduce_47(val, _values, result) - return push_scope + return push_scope result end .,., @@ -965,21 +965,21 @@ module_eval(<<'.,.,', 'huia.y', 99) module_eval(<<'.,.,', 'huia.y', 105) def _reduce_52(val, _values, result) - return scope.add_argument val[0] + return scope.add_argument val[0] result end .,., module_eval(<<'.,.,', 'huia.y', 106) def _reduce_53(val, _values, result) - return n :Assignment, val[0], val[2] + return n :Assignment, val[0], val[2] result end .,., module_eval(<<'.,.,', 'huia.y', 107) def _reduce_54(val, _values, result) - return n :Variable, val[0] + return n :Variable, val[0] result end .,., @@ -992,35 +992,35 @@ module_eval(<<'.,.,', 'huia.y', 107) module_eval(<<'.,.,', 'huia.y', 112) def _reduce_58(val, _values, result) - return n :MethodCall, val[0], val[2] + return n :MethodCall, val[0], val[2] result end .,., module_eval(<<'.,.,', 'huia.y', 113) def _reduce_59(val, _values, result) - return n :MethodCall, val[0], n(:CallSignature, val[2]) + return n :MethodCall, val[0], n(:CallSignature, val[2]) result end .,., module_eval(<<'.,.,', 'huia.y', 114) def _reduce_60(val, _values, result) - return n :MethodCall, scope_instance, val[0] + return n :MethodCall, scope_instance, val[0] result end .,., module_eval(<<'.,.,', 'huia.y', 116) def _reduce_61(val, _values, result) - return n :MethodCall, this_closure, val[1] + return n :MethodCall, this_closure, val[1] result end .,., module_eval(<<'.,.,', 'huia.y', 117) def _reduce_62(val, _values, result) - return n :MethodCall, this_closure, n(:CallSignature, val[1]) + return n :MethodCall, this_closure, n(:CallSignature, val[1]) result end .,., @@ -1031,14 +1031,14 @@ module_eval(<<'.,.,', 'huia.y', 117) module_eval(<<'.,.,', 'huia.y', 121) def _reduce_65(val, _values, result) - return n :CallSignature, val[0] + return n :CallSignature, val[0] result end .,., module_eval(<<'.,.,', 'huia.y', 122) def _reduce_66(val, _values, result) - return n :CallSignature, val[0], [val[1]] + return n :CallSignature, val[0], [val[1]] result end .,., @@ -1057,28 +1057,28 @@ module_eval(<<'.,.,', 'huia.y', 122) module_eval(<<'.,.,', 'huia.y', 129) def _reduce_73(val, _values, result) - return val[0] + return val[0] result end .,., module_eval(<<'.,.,', 'huia.y', 130) def _reduce_74(val, _values, result) - return val[0].concat_signature val[1] + return val[0].concat_signature val[1] result end .,., module_eval(<<'.,.,', 'huia.y', 132) def _reduce_75(val, _values, result) - return n :Expression, val[1] + return n :Expression, val[1] result end .,., module_eval(<<'.,.,', 'huia.y', 134) def _reduce_76(val, _values, result) - return allocate_local val[0] + return allocate_local val[0] result end .,., @@ -1115,105 +1115,105 @@ module_eval(<<'.,.,', 'huia.y', 134) module_eval(<<'.,.,', 'huia.y', 152) def _reduce_92(val, _values, result) - return allocate_local_assignment val[0], val[2] + return allocate_local_assignment val[0], val[2] result end .,., module_eval(<<'.,.,', 'huia.y', 153) def _reduce_93(val, _values, result) - return binary val[0], val[2], 'plus:' + return binary val[0], val[2], 'plus:' result end .,., module_eval(<<'.,.,', 'huia.y', 154) def _reduce_94(val, _values, result) - return binary val[0], val[2], 'minus:' + return binary val[0], val[2], 'minus:' result end .,., module_eval(<<'.,.,', 'huia.y', 155) def _reduce_95(val, _values, result) - return binary val[0], val[2], 'multiplyBy:' + return binary val[0], val[2], 'multiplyBy:' result end .,., module_eval(<<'.,.,', 'huia.y', 156) def _reduce_96(val, _values, result) - return binary val[0], val[2], 'divideBy:' + return binary val[0], val[2], 'divideBy:' result end .,., module_eval(<<'.,.,', 'huia.y', 157) def _reduce_97(val, _values, result) - return binary val[0], val[2], 'toThePowerOf:' + return binary val[0], val[2], 'toThePowerOf:' result end .,., module_eval(<<'.,.,', 'huia.y', 158) def _reduce_98(val, _values, result) - return binary val[0], val[2], 'moduloOf:' + return binary val[0], val[2], 'moduloOf:' result end .,., module_eval(<<'.,.,', 'huia.y', 159) def _reduce_99(val, _values, result) - return binary val[0], val[2], 'isEqualTo:' + return binary val[0], val[2], 'isEqualTo:' result end .,., module_eval(<<'.,.,', 'huia.y', 160) def _reduce_100(val, _values, result) - return binary val[0], val[2], 'isNotEqualTo:' + return binary val[0], val[2], 'isNotEqualTo:' result end .,., module_eval(<<'.,.,', 'huia.y', 161) def _reduce_101(val, _values, result) - return binary val[0], val[2], 'logicalOr:' + return binary val[0], val[2], 'logicalOr:' result end .,., module_eval(<<'.,.,', 'huia.y', 162) def _reduce_102(val, _values, result) - return binary val[0], val[2], 'logicalAnd:' + return binary val[0], val[2], 'logicalAnd:' result end .,., module_eval(<<'.,.,', 'huia.y', 163) def _reduce_103(val, _values, result) - return binary val[0], val[2], 'isGreaterThan:' + return binary val[0], val[2], 'isGreaterThan:' result end .,., module_eval(<<'.,.,', 'huia.y', 164) def _reduce_104(val, _values, result) - return binary val[0], val[2], 'isLessThan:' + return binary val[0], val[2], 'isLessThan:' result end .,., module_eval(<<'.,.,', 'huia.y', 165) def _reduce_105(val, _values, result) - return binary val[0], val[2], 'isGreaterOrEqualTo:' + return binary val[0], val[2], 'isGreaterOrEqualTo:' result end .,., module_eval(<<'.,.,', 'huia.y', 166) def _reduce_106(val, _values, result) - return binary val[0], val[2], 'isLessOrEqualTo:' + return binary val[0], val[2], 'isLessOrEqualTo:' result end .,., @@ -1228,28 +1228,28 @@ module_eval(<<'.,.,', 'huia.y', 166) module_eval(<<'.,.,', 'huia.y', 173) def _reduce_111(val, _values, result) - return unary val[1], 'unaryNot' + return unary val[1], 'unaryNot' result end .,., module_eval(<<'.,.,', 'huia.y', 174) def _reduce_112(val, _values, result) - return unary val[1], 'unaryPlus' + return unary val[1], 'unaryPlus' result end .,., module_eval(<<'.,.,', 'huia.y', 175) def _reduce_113(val, _values, result) - return unary val[1], 'unaryMinus' + return unary val[1], 'unaryMinus' result end .,., module_eval(<<'.,.,', 'huia.y', 176) def _reduce_114(val, _values, result) - return unary val[1], 'unaryComplement' + return unary val[1], 'unaryComplement' result end .,., @@ -1270,49 +1270,49 @@ module_eval(<<'.,.,', 'huia.y', 176) module_eval(<<'.,.,', 'huia.y', 186) def _reduce_122(val, _values, result) - return n :Float, val[0] + return n :Float, val[0] result end .,., module_eval(<<'.,.,', 'huia.y', 187) def _reduce_123(val, _values, result) - return n :Integer, val[0] + return n :Integer, val[0] result end .,., module_eval(<<'.,.,', 'huia.y', 188) def _reduce_124(val, _values, result) - return n :Nil + return n :Nil result end .,., module_eval(<<'.,.,', 'huia.y', 189) def _reduce_125(val, _values, result) - return n :True + return n :True result end .,., module_eval(<<'.,.,', 'huia.y', 190) def _reduce_126(val, _values, result) - return n :False + return n :False result end .,., module_eval(<<'.,.,', 'huia.y', 191) def _reduce_127(val, _values, result) - return n :Self + return n :Self result end .,., module_eval(<<'.,.,', 'huia.y', 193) def _reduce_128(val, _values, result) - return n :String, val[0] + return n :String, val[0] result end .,., @@ -1323,63 +1323,63 @@ module_eval(<<'.,.,', 'huia.y', 193) module_eval(<<'.,.,', 'huia.y', 197) def _reduce_131(val, _values, result) - return val[1] + return val[1] result end .,., module_eval(<<'.,.,', 'huia.y', 198) def _reduce_132(val, _values, result) - return val[1] + return val[1] result end .,., module_eval(<<'.,.,', 'huia.y', 199) def _reduce_133(val, _values, result) - return n :InterpolatedString, val[0] + return n :InterpolatedString, val[0] result end .,., module_eval(<<'.,.,', 'huia.y', 200) def _reduce_134(val, _values, result) - val[0].append(val[1]); return val[0] + val[0].append(val[1]); return val[0] result end .,., module_eval(<<'.,.,', 'huia.y', 201) def _reduce_135(val, _values, result) - return val[0] + return val[0] result end .,., module_eval(<<'.,.,', 'huia.y', 202) def _reduce_136(val, _values, result) - return to_string(val[0]) + return to_string(val[0]) result end .,., module_eval(<<'.,.,', 'huia.y', 203) def _reduce_137(val, _values, result) - return n :String, '' + return n :String, '' result end .,., module_eval(<<'.,.,', 'huia.y', 205) def _reduce_138(val, _values, result) - return n :String, val[0] + return n :String, val[0] result end .,., module_eval(<<'.,.,', 'huia.y', 206) def _reduce_139(val, _values, result) - val[0].append(val[1]); return val[0] + val[0].append(val[1]); return val[0] result end .,., diff --git a/test/racc/regress/journey b/test/racc/regress/journey index 8393760db6..3245106507 100644 --- a/test/racc/regress/journey +++ b/test/racc/regress/journey @@ -137,14 +137,14 @@ Racc_debug_parser = false module_eval(<<'.,.,', 'journey.y', 6) def _reduce_1(val, _values, result) - result = Cat.new(val.first, val.last) + result = Cat.new(val.first, val.last) result end .,., module_eval(<<'.,.,', 'journey.y', 7) def _reduce_2(val, _values, result) - result = val.first + result = val.first result end .,., @@ -159,21 +159,21 @@ module_eval(<<'.,.,', 'journey.y', 7) module_eval(<<'.,.,', 'journey.y', 16) def _reduce_7(val, _values, result) - result = Group.new(val[1]) + result = Group.new(val[1]) result end .,., module_eval(<<'.,.,', 'journey.y', 19) def _reduce_8(val, _values, result) - result = Or.new([val.first, val.last]) + result = Or.new([val.first, val.last]) result end .,., module_eval(<<'.,.,', 'journey.y', 22) def _reduce_9(val, _values, result) - result = Star.new(Symbol.new(val.last)) + result = Star.new(Symbol.new(val.last)) result end .,., @@ -188,28 +188,28 @@ module_eval(<<'.,.,', 'journey.y', 22) module_eval(<<'.,.,', 'journey.y', 31) def _reduce_14(val, _values, result) - result = Slash.new('/') + result = Slash.new('/') result end .,., module_eval(<<'.,.,', 'journey.y', 34) def _reduce_15(val, _values, result) - result = Symbol.new(val.first) + result = Symbol.new(val.first) result end .,., module_eval(<<'.,.,', 'journey.y', 37) def _reduce_16(val, _values, result) - result = Literal.new(val.first) + result = Literal.new(val.first) result end .,., module_eval(<<'.,.,', 'journey.y', 39) def _reduce_17(val, _values, result) - result = Dot.new(val.first) + result = Dot.new(val.first) result end .,., diff --git a/test/racc/regress/liquor b/test/racc/regress/liquor index 3adb3a5b78..920b9aa704 100644 --- a/test/racc/regress/liquor +++ b/test/racc/regress/liquor @@ -490,42 +490,42 @@ Racc_debug_parser = false module_eval(<<'.,.,', 'liquor.y', 47) def _reduce_1(val, _values, result) - result = [] + result = [] result end .,., module_eval(<<'.,.,', 'liquor.y', 49) def _reduce_2(val, _values, result) - result = [ val[0], *val[1] ] + result = [ val[0], *val[1] ] result end .,., module_eval(<<'.,.,', 'liquor.y', 51) def _reduce_3(val, _values, result) - result = [ val[0], *val[1] ] + result = [ val[0], *val[1] ] result end .,., module_eval(<<'.,.,', 'liquor.y', 53) def _reduce_4(val, _values, result) - result = [ val[0], *val[1] ] + result = [ val[0], *val[1] ] result end .,., module_eval(<<'.,.,', 'liquor.y', 57) def _reduce_5(val, _values, result) - result = [ :interp, retag(val), val[1] ] + result = [ :interp, retag(val), val[1] ] result end .,., module_eval(<<'.,.,', 'liquor.y', 59) def _reduce_6(val, _values, result) - result = [ :interp, retag(val), val[1] ] + result = [ :interp, retag(val), val[1] ] result end .,., @@ -534,7 +534,7 @@ module_eval(<<'.,.,', 'liquor.y', 59) module_eval(<<'.,.,', 'liquor.y', 64) def _reduce_8(val, _values, result) - result = [ val[1][0], retag(val), *val[1][2..-1] ] + result = [ val[1][0], retag(val), *val[1][2..-1] ] result end .,., @@ -547,133 +547,133 @@ module_eval(<<'.,.,', 'liquor.y', 64) module_eval(<<'.,.,', 'liquor.y', 71) def _reduce_12(val, _values, result) - result = [ :call, retag(val), val[0], val[1] ] + result = [ :call, retag(val), val[0], val[1] ] result end .,., module_eval(<<'.,.,', 'liquor.y', 73) def _reduce_13(val, _values, result) - result = [ :index, retag(val), val[0], val[2] ] + result = [ :index, retag(val), val[0], val[2] ] result end .,., module_eval(<<'.,.,', 'liquor.y', 75) def _reduce_14(val, _values, result) - result = [ :external, retag(val), val[0], val[2], val[3] ] + result = [ :external, retag(val), val[0], val[2], val[3] ] result end .,., module_eval(<<'.,.,', 'liquor.y', 77) def _reduce_15(val, _values, result) - result = [ :external, retag(val), val[0], val[2], nil ] + result = [ :external, retag(val), val[0], val[2], nil ] result end .,., module_eval(<<'.,.,', 'liquor.y', 79) def _reduce_16(val, _values, result) - result = [ :uminus, retag(val), val[1] ] + result = [ :uminus, retag(val), val[1] ] result end .,., module_eval(<<'.,.,', 'liquor.y', 81) def _reduce_17(val, _values, result) - result = [ :not, retag(val), val[1] ] + result = [ :not, retag(val), val[1] ] result end .,., module_eval(<<'.,.,', 'liquor.y', 83) def _reduce_18(val, _values, result) - result = [ :mul, retag(val), val[0], val[2] ] + result = [ :mul, retag(val), val[0], val[2] ] result end .,., module_eval(<<'.,.,', 'liquor.y', 85) def _reduce_19(val, _values, result) - result = [ :div, retag(val), val[0], val[2] ] + result = [ :div, retag(val), val[0], val[2] ] result end .,., module_eval(<<'.,.,', 'liquor.y', 87) def _reduce_20(val, _values, result) - result = [ :mod, retag(val), val[0], val[2] ] + result = [ :mod, retag(val), val[0], val[2] ] result end .,., module_eval(<<'.,.,', 'liquor.y', 89) def _reduce_21(val, _values, result) - result = [ :plus, retag(val), val[0], val[2] ] + result = [ :plus, retag(val), val[0], val[2] ] result end .,., module_eval(<<'.,.,', 'liquor.y', 91) def _reduce_22(val, _values, result) - result = [ :minus, retag(val), val[0], val[2] ] + result = [ :minus, retag(val), val[0], val[2] ] result end .,., module_eval(<<'.,.,', 'liquor.y', 93) def _reduce_23(val, _values, result) - result = [ :eq, retag(val), val[0], val[2] ] + result = [ :eq, retag(val), val[0], val[2] ] result end .,., module_eval(<<'.,.,', 'liquor.y', 95) def _reduce_24(val, _values, result) - result = [ :neq, retag(val), val[0], val[2] ] + result = [ :neq, retag(val), val[0], val[2] ] result end .,., module_eval(<<'.,.,', 'liquor.y', 97) def _reduce_25(val, _values, result) - result = [ :lt, retag(val), val[0], val[2] ] + result = [ :lt, retag(val), val[0], val[2] ] result end .,., module_eval(<<'.,.,', 'liquor.y', 99) def _reduce_26(val, _values, result) - result = [ :leq, retag(val), val[0], val[2] ] + result = [ :leq, retag(val), val[0], val[2] ] result end .,., module_eval(<<'.,.,', 'liquor.y', 101) def _reduce_27(val, _values, result) - result = [ :gt, retag(val), val[0], val[2] ] + result = [ :gt, retag(val), val[0], val[2] ] result end .,., module_eval(<<'.,.,', 'liquor.y', 103) def _reduce_28(val, _values, result) - result = [ :geq, retag(val), val[0], val[2] ] + result = [ :geq, retag(val), val[0], val[2] ] result end .,., module_eval(<<'.,.,', 'liquor.y', 105) def _reduce_29(val, _values, result) - result = [ :and, retag(val), val[0], val[2] ] + result = [ :and, retag(val), val[0], val[2] ] result end .,., module_eval(<<'.,.,', 'liquor.y', 107) def _reduce_30(val, _values, result) - result = [ :or, retag(val), val[0], val[2] ] + result = [ :or, retag(val), val[0], val[2] ] result end .,., @@ -682,49 +682,49 @@ module_eval(<<'.,.,', 'liquor.y', 107) module_eval(<<'.,.,', 'liquor.y', 112) def _reduce_32(val, _values, result) - result = [ :tuple, retag(val), val[1].compact ] + result = [ :tuple, retag(val), val[1].compact ] result end .,., module_eval(<<'.,.,', 'liquor.y', 116) def _reduce_33(val, _values, result) - result = [ val[0], *val[2] ] + result = [ val[0], *val[2] ] result end .,., module_eval(<<'.,.,', 'liquor.y', 118) def _reduce_34(val, _values, result) - result = [ val[0] ] + result = [ val[0] ] result end .,., module_eval(<<'.,.,', 'liquor.y', 120) def _reduce_35(val, _values, result) - result = [ ] + result = [ ] result end .,., module_eval(<<'.,.,', 'liquor.y', 124) def _reduce_36(val, _values, result) - result = [ :args, retag(val), *val[1] ] + result = [ :args, retag(val), *val[1] ] result end .,., module_eval(<<'.,.,', 'liquor.y', 128) def _reduce_37(val, _values, result) - result = [ val[0], val[1][2] ] + result = [ val[0], val[1][2] ] result end .,., module_eval(<<'.,.,', 'liquor.y', 130) def _reduce_38(val, _values, result) - result = [ nil, val[0][2] ] + result = [ nil, val[0][2] ] result end .,., @@ -745,14 +745,14 @@ module_eval(<<'.,.,', 'liquor.y', 134) }.merge(tail) result = [ :keywords, retag([ loc, val[2] ]), hash ] - + result end .,., module_eval(<<'.,.,', 'liquor.y', 150) def _reduce_40(val, _values, result) - result = [ :keywords, nil, {} ] + result = [ :keywords, nil, {} ] result end .,., @@ -761,21 +761,21 @@ module_eval(<<'.,.,', 'liquor.y', 154) def _reduce_41(val, _values, result) result = [ val[0], *val[2] ]. reduce { |tree, node| node[3][2] = tree; node } - + result end .,., module_eval(<<'.,.,', 'liquor.y', 160) def _reduce_42(val, _values, result) - result = [ val[0], *val[2] ] + result = [ val[0], *val[2] ] result end .,., module_eval(<<'.,.,', 'liquor.y', 162) def _reduce_43(val, _values, result) - result = [ val[0] ] + result = [ val[0] ] result end .,., @@ -788,91 +788,91 @@ module_eval(<<'.,.,', 'liquor.y', 166) end: ident_loc[:end] + 1, } result = [ :call, val[0][1], val[0], [ :args, val[1][1] || empty_args_loc, nil, val[1][2] ] ] - + result end .,., module_eval(<<'.,.,', 'liquor.y', 176) def _reduce_45(val, _values, result) - result = [ :tag, retag(val), val[1], val[2], *reduce_tag_args(val[3][2]) ] + result = [ :tag, retag(val), val[1], val[2], *reduce_tag_args(val[3][2]) ] result end .,., module_eval(<<'.,.,', 'liquor.y', 178) def _reduce_46(val, _values, result) - result = [ :tag, retag(val), val[1], nil, *reduce_tag_args(val[2][2]) ] + result = [ :tag, retag(val), val[1], nil, *reduce_tag_args(val[2][2]) ] result end .,., module_eval(<<'.,.,', 'liquor.y', 186) def _reduce_47(val, _values, result) - result = [ :cont, retag(val), [] ] + result = [ :cont, retag(val), [] ] result end .,., module_eval(<<'.,.,', 'liquor.y', 188) def _reduce_48(val, _values, result) - result = [ :cont, retag(val), [ val[0], *val[1][2] ] ] + result = [ :cont, retag(val), [ val[0], *val[1][2] ] ] result end .,., module_eval(<<'.,.,', 'liquor.y', 192) def _reduce_49(val, _values, result) - result = [ :cont2, val[0][1], [ [:block, val[0][1], val[1] ], *val[3] ] ] + result = [ :cont2, val[0][1], [ [:block, val[0][1], val[1] ], *val[3] ] ] result end .,., module_eval(<<'.,.,', 'liquor.y', 194) def _reduce_50(val, _values, result) - result = [ :cont2, retag(val), [ val[0], *val[1][2] ] ] + result = [ :cont2, retag(val), [ val[0], *val[1][2] ] ] result end .,., module_eval(<<'.,.,', 'liquor.y', 198) def _reduce_51(val, _values, result) - result = [] + result = [] result end .,., module_eval(<<'.,.,', 'liquor.y', 200) def _reduce_52(val, _values, result) - result = [ val[0], *val[1] ] + result = [ val[0], *val[1] ] result end .,., module_eval(<<'.,.,', 'liquor.y', 204) def _reduce_53(val, _values, result) - result = [ [:block, val[0][1], val[1] ], *val[3] ] + result = [ [:block, val[0][1], val[1] ], *val[3] ] result end .,., module_eval(<<'.,.,', 'liquor.y', 206) def _reduce_54(val, _values, result) - result = [ val[0], val[1], *val[2] ] + result = [ val[0], val[1], *val[2] ] result end .,., module_eval(<<'.,.,', 'liquor.y', 210) def _reduce_55(val, _values, result) - result = [ [:block, val[0][1], val[1] ], *val[3] ] + result = [ [:block, val[0][1], val[1] ], *val[3] ] result end .,., module_eval(<<'.,.,', 'liquor.y', 212) def _reduce_56(val, _values, result) - result = [ val[0], *val[1] ] + result = [ val[0], *val[1] ] result end .,., diff --git a/test/racc/regress/machete b/test/racc/regress/machete index 5f065bb50d..e42c8e4f4f 100644 --- a/test/racc/regress/machete +++ b/test/racc/regress/machete @@ -508,7 +508,7 @@ module_eval(<<'.,.,', 'machete.y', 44) else ChoiceMatcher.new([val[0], val[2]]) end - + result end .,., @@ -524,7 +524,7 @@ module_eval(<<'.,.,', 'machete.y', 44) module_eval(<<'.,.,', 'machete.y', 57) def _reduce_7(val, _values, result) result = NodeMatcher.new(val[0].to_sym) - + result end .,., @@ -532,7 +532,7 @@ module_eval(<<'.,.,', 'machete.y', 57) module_eval(<<'.,.,', 'machete.y', 60) def _reduce_8(val, _values, result) result = NodeMatcher.new(val[0].to_sym, val[2]) - + result end .,., @@ -541,14 +541,14 @@ module_eval(<<'.,.,', 'machete.y', 60) module_eval(<<'.,.,', 'machete.y', 64) def _reduce_10(val, _values, result) - result = val[0].merge(val[2]) + result = val[0].merge(val[2]) result end .,., module_eval(<<'.,.,', 'machete.y', 66) def _reduce_11(val, _values, result) - result = { val[0].to_sym => val[2] } + result = { val[0].to_sym => val[2] } result end .,., @@ -560,7 +560,7 @@ module_eval(<<'.,.,', 'machete.y', 68) Regexp.new("^" + Regexp.escape(symbol_value(val[2]).to_s)) ) } - + result end .,., @@ -572,7 +572,7 @@ module_eval(<<'.,.,', 'machete.y', 75) Regexp.new(Regexp.escape(symbol_value(val[2]).to_s) + "$") ) } - + result end .,., @@ -584,7 +584,7 @@ module_eval(<<'.,.,', 'machete.y', 82) Regexp.new(Regexp.escape(symbol_value(val[2]).to_s)) ) } - + result end .,., @@ -596,7 +596,7 @@ module_eval(<<'.,.,', 'machete.y', 89) Regexp.new("^" + Regexp.escape(string_value(val[2]))) ) } - + result end .,., @@ -608,7 +608,7 @@ module_eval(<<'.,.,', 'machete.y', 96) Regexp.new(Regexp.escape(string_value(val[2])) + "$") ) } - + result end .,., @@ -620,7 +620,7 @@ module_eval(<<'.,.,', 'machete.y', 103) Regexp.new(Regexp.escape(string_value(val[2]))) ) } - + result end .,., @@ -632,7 +632,7 @@ module_eval(<<'.,.,', 'machete.y', 110) Regexp.new(regexp_value(val[2])) ) } - + result end .,., @@ -665,14 +665,14 @@ module_eval(<<'.,.,', 'machete.y', 110) module_eval(<<'.,.,', 'machete.y', 134) def _reduce_32(val, _values, result) - result = ArrayMatcher.new(val[1]) + result = ArrayMatcher.new(val[1]) result end .,., module_eval(<<'.,.,', 'machete.y', 136) def _reduce_33(val, _values, result) - result = [] + result = [] result end .,., @@ -681,14 +681,14 @@ module_eval(<<'.,.,', 'machete.y', 136) module_eval(<<'.,.,', 'machete.y', 139) def _reduce_35(val, _values, result) - result = [val[0]] + result = [val[0]] result end .,., module_eval(<<'.,.,', 'machete.y', 140) def _reduce_36(val, _values, result) - result = val[0] << val[2] + result = val[0] << val[2] result end .,., @@ -697,28 +697,28 @@ module_eval(<<'.,.,', 'machete.y', 140) module_eval(<<'.,.,', 'machete.y', 143) def _reduce_38(val, _values, result) - result = Quantifier.new(val[0], *val[1]) + result = Quantifier.new(val[0], *val[1]) result end .,., module_eval(<<'.,.,', 'machete.y', 145) def _reduce_39(val, _values, result) - result = [0, nil, 1] + result = [0, nil, 1] result end .,., module_eval(<<'.,.,', 'machete.y', 146) def _reduce_40(val, _values, result) - result = [1, nil, 1] + result = [1, nil, 1] result end .,., module_eval(<<'.,.,', 'machete.y', 147) def _reduce_41(val, _values, result) - result = [0, 1, 1] + result = [0, 1, 1] result end .,., @@ -726,7 +726,7 @@ module_eval(<<'.,.,', 'machete.y', 147) module_eval(<<'.,.,', 'machete.y', 149) def _reduce_42(val, _values, result) result = [integer_value(val[1]), integer_value(val[1]), 1] - + result end .,., @@ -734,7 +734,7 @@ module_eval(<<'.,.,', 'machete.y', 149) module_eval(<<'.,.,', 'machete.y', 152) def _reduce_43(val, _values, result) result = [integer_value(val[1]), nil, 1] - + result end .,., @@ -742,7 +742,7 @@ module_eval(<<'.,.,', 'machete.y', 152) module_eval(<<'.,.,', 'machete.y', 155) def _reduce_44(val, _values, result) result = [0, integer_value(val[2]), 1] - + result end .,., @@ -750,77 +750,77 @@ module_eval(<<'.,.,', 'machete.y', 155) module_eval(<<'.,.,', 'machete.y', 158) def _reduce_45(val, _values, result) result = [integer_value(val[1]), integer_value(val[3]), 1] - + result end .,., module_eval(<<'.,.,', 'machete.y', 160) def _reduce_46(val, _values, result) - result = [0, nil, 2] + result = [0, nil, 2] result end .,., module_eval(<<'.,.,', 'machete.y', 161) def _reduce_47(val, _values, result) - result = [1, nil, 2] + result = [1, nil, 2] result end .,., module_eval(<<'.,.,', 'machete.y', 163) def _reduce_48(val, _values, result) - result = LiteralMatcher.new(nil) + result = LiteralMatcher.new(nil) result end .,., module_eval(<<'.,.,', 'machete.y', 164) def _reduce_49(val, _values, result) - result = LiteralMatcher.new(true) + result = LiteralMatcher.new(true) result end .,., module_eval(<<'.,.,', 'machete.y', 165) def _reduce_50(val, _values, result) - result = LiteralMatcher.new(false) + result = LiteralMatcher.new(false) result end .,., module_eval(<<'.,.,', 'machete.y', 166) def _reduce_51(val, _values, result) - result = LiteralMatcher.new(integer_value(val[0])) + result = LiteralMatcher.new(integer_value(val[0])) result end .,., module_eval(<<'.,.,', 'machete.y', 167) def _reduce_52(val, _values, result) - result = LiteralMatcher.new(symbol_value(val[0])) + result = LiteralMatcher.new(symbol_value(val[0])) result end .,., module_eval(<<'.,.,', 'machete.y', 168) def _reduce_53(val, _values, result) - result = LiteralMatcher.new(string_value(val[0])) + result = LiteralMatcher.new(string_value(val[0])) result end .,., module_eval(<<'.,.,', 'machete.y', 169) def _reduce_54(val, _values, result) - result = LiteralMatcher.new(regexp_value(val[0])) + result = LiteralMatcher.new(regexp_value(val[0])) result end .,., module_eval(<<'.,.,', 'machete.y', 171) def _reduce_55(val, _values, result) - result = AnyMatcher.new + result = AnyMatcher.new result end .,., diff --git a/test/racc/regress/mediacloth b/test/racc/regress/mediacloth index d3a75ad58a..e2d0a70363 100644 --- a/test/racc/regress/mediacloth +++ b/test/racc/regress/mediacloth @@ -684,7 +684,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 47) #@nodes.last.children.insert(0, val[0]) #puts val[0] @nodes.last.children += val[0] - + result end .,., @@ -692,7 +692,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 47) module_eval(<<'.,.,', 'mediacloth.y', 57) def _reduce_2(val, _values, result) result = val[0] - + result end .,., @@ -700,7 +700,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 57) module_eval(<<'.,.,', 'mediacloth.y', 61) def _reduce_3(val, _values, result) result = val[0] - + result end .,., @@ -708,7 +708,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 61) module_eval(<<'.,.,', 'mediacloth.y', 65) def _reduce_4(val, _values, result) result = val[0] - + result end .,., @@ -719,7 +719,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 69) list.list_type = :Dictionary list.children = val[0] result = list - + result end .,., @@ -727,7 +727,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 69) module_eval(<<'.,.,', 'mediacloth.y', 76) def _reduce_6(val, _values, result) result = val[0] - + result end .,., @@ -735,7 +735,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 76) module_eval(<<'.,.,', 'mediacloth.y', 80) def _reduce_7(val, _values, result) result = val[0] - + result end .,., @@ -743,7 +743,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 80) module_eval(<<'.,.,', 'mediacloth.y', 84) def _reduce_8(val, _values, result) result = val[0] - + result end .,., @@ -751,7 +751,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 84) module_eval(<<'.,.,', 'mediacloth.y', 88) def _reduce_9(val, _values, result) result = val[0] - + result end .,., @@ -761,7 +761,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 92) k = KeywordAST.new(@ast_index, @ast_length) k.text = val[0] result = k - + result end .,., @@ -771,7 +771,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 98) p = ParagraphAST.new(@ast_index, @ast_length) p.children = val[1] result = p - + result end .,., @@ -783,7 +783,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 104) l.url = val[1][0] l.children += val[1][1..-1] if val[1].length > 1 result = l - + result end .,., @@ -793,7 +793,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 112) p = PasteAST.new(@ast_index, @ast_length) p.children = val[1] result = p - + result end .,., @@ -805,7 +805,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 118) l.locator = val[3] l.children = val[4] unless val[4].nil? or val[4].empty? result = l - + result end .,., @@ -816,7 +816,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 126) l.locator = val[1] l.children = val[2] unless val[2].nil? or val[2].empty? result = l - + result end .,., @@ -827,7 +827,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 133) l.locator = val[2] l.sort_as = val[3] result = l - + result end .,., @@ -838,7 +838,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 140) l.locator = val[3] l.children = val[4] unless val[4].nil? or val[4].empty? result = l - + result end .,., @@ -848,7 +848,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 140) module_eval(<<'.,.,', 'mediacloth.y', 150) def _reduce_19(val, _values, result) result = nil - + result end .,., @@ -856,7 +856,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 150) module_eval(<<'.,.,', 'mediacloth.y', 154) def _reduce_20(val, _values, result) result = val[0] - + result end .,., @@ -870,7 +870,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 161) elem.name = val[0] elem.attributes = val[1] result = elem - + result end .,., @@ -885,7 +885,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 171) elem.attributes = val[1] elem.children += val[2] result = elem - + result end .,., @@ -893,7 +893,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 171) module_eval(<<'.,.,', 'mediacloth.y', 184) def _reduce_23(val, _values, result) result = nil - + result end .,., @@ -903,7 +903,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 188) attr_map = val[2] ? val[2] : {} attr_map[val[0]] = true result = attr_map - + result end .,., @@ -913,7 +913,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 194) attr_map = val[2] ? val[2] : {} attr_map[val[0]] = val[1] result = attr_map - + result end .,., @@ -921,7 +921,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 194) module_eval(<<'.,.,', 'mediacloth.y', 204) def _reduce_26(val, _values, result) result = val - + result end .,., @@ -930,7 +930,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 208) def _reduce_27(val, _values, result) result = [val[0]] result += val[2] - + result end .,., @@ -938,7 +938,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 208) module_eval(<<'.,.,', 'mediacloth.y', 217) def _reduce_28(val, _values, result) result = val[0] - + result end .,., @@ -947,7 +947,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 221) def _reduce_29(val, _values, result) result = val[0] result += val[2] if val[2] - + result end .,., @@ -955,7 +955,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 221) module_eval(<<'.,.,', 'mediacloth.y', 229) def _reduce_30(val, _values, result) result = nil - + result end .,., @@ -963,7 +963,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 229) module_eval(<<'.,.,', 'mediacloth.y', 233) def _reduce_31(val, _values, result) result = val[1] - + result end .,., @@ -971,7 +971,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 233) module_eval(<<'.,.,', 'mediacloth.y', 239) def _reduce_32(val, _values, result) result = nil - + result end .,., @@ -979,7 +979,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 239) module_eval(<<'.,.,', 'mediacloth.y', 243) def _reduce_33(val, _values, result) result = val[1] - + result end .,., @@ -987,7 +987,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 243) module_eval(<<'.,.,', 'mediacloth.y', 249) def _reduce_34(val, _values, result) result = nil - + result end .,., @@ -995,7 +995,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 249) module_eval(<<'.,.,', 'mediacloth.y', 253) def _reduce_35(val, _values, result) result = val[1] - + result end .,., @@ -1006,7 +1006,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 257) i.children = val[1] result = [i] result += val[2] if val[2] - + result end .,., @@ -1015,7 +1015,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 266) def _reduce_37(val, _values, result) result = [] result << val[0] - + result end .,., @@ -1025,7 +1025,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 271) result = [] result += val[0] result << val[1] - + result end .,., @@ -1036,7 +1036,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 279) p.formatting = val[0][0] p.contents = val[0][1] result = p - + result end .,., @@ -1044,7 +1044,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 279) module_eval(<<'.,.,', 'mediacloth.y', 286) def _reduce_40(val, _values, result) result = val[0] - + result end .,., @@ -1054,7 +1054,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 293) table = TableAST.new(@ast_index, @ast_length) table.children = val[1] unless val[1].nil? or val[1].empty? result = table - + result end .,., @@ -1065,7 +1065,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 299) table.options = val[1] table.children = val[2] unless val[2].nil? or val[2].empty? result = table - + result end .,., @@ -1073,7 +1073,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 299) module_eval(<<'.,.,', 'mediacloth.y', 307) def _reduce_43(val, _values, result) result = nil - + result end .,., @@ -1084,7 +1084,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 311) row.children = val[1] unless val[1].nil? or val[1].empty? result = [row] result += val[3] unless val[3].nil? or val[3].empty? - + result end .,., @@ -1096,7 +1096,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 318) row.options = val[1] result = [row] result += val[4] unless val[4].nil? or val[4].empty? - + result end .,., @@ -1104,7 +1104,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 318) module_eval(<<'.,.,', 'mediacloth.y', 327) def _reduce_46(val, _values, result) result = nil - + result end .,., @@ -1115,7 +1115,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 331) cell.type = :head result = [cell] result += val[2] unless val[2].nil? or val[2].empty? - + result end .,., @@ -1127,7 +1127,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 338) cell.type = :head result = [cell] result += val[3] unless val[3].nil? or val[3].empty? - + result end .,., @@ -1138,7 +1138,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 346) cell.type = :body result = [cell] result += val[2] unless val[2].nil? or val[2].empty? - + result end .,., @@ -1158,49 +1158,49 @@ module_eval(<<'.,.,', 'mediacloth.y', 353) val[3].first.attributes = val[1] end result - + result end .,., module_eval(<<'.,.,', 'mediacloth.y', 371) def _reduce_51(val, _values, result) - return [:None, val[0]] + return [:None, val[0]] result end .,., module_eval(<<'.,.,', 'mediacloth.y', 373) def _reduce_52(val, _values, result) - return [:HLine, val[0]] + return [:HLine, val[0]] result end .,., module_eval(<<'.,.,', 'mediacloth.y', 375) def _reduce_53(val, _values, result) - return [:CharacterEntity, val[0]] + return [:CharacterEntity, val[0]] result end .,., module_eval(<<'.,.,', 'mediacloth.y', 377) def _reduce_54(val, _values, result) - return [:SignatureDate, val[0]] + return [:SignatureDate, val[0]] result end .,., module_eval(<<'.,.,', 'mediacloth.y', 379) def _reduce_55(val, _values, result) - return [:SignatureName, val[0]] + return [:SignatureName, val[0]] result end .,., module_eval(<<'.,.,', 'mediacloth.y', 381) def _reduce_56(val, _values, result) - return [:SignatureFull, val[0]] + return [:SignatureFull, val[0]] result end .,., @@ -1210,7 +1210,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 387) result = FormattedAST.new(@ast_index, @ast_length) result.formatting = :Bold result - + result end .,., @@ -1220,7 +1220,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 393) result = FormattedAST.new(@ast_index, @ast_length) result.formatting = :Italic result - + result end .,., @@ -1231,7 +1231,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 399) p.formatting = :Bold p.children += val[1] result = p - + result end .,., @@ -1242,7 +1242,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 406) p.formatting = :Italic p.children += val[1] result = p - + result end .,., @@ -1254,7 +1254,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 415) list.children << val[1] list.children += val[2] result = list - + result end .,., @@ -1266,14 +1266,14 @@ module_eval(<<'.,.,', 'mediacloth.y', 425) list.children << val[1] list.children += val[2] result = list - + result end .,., module_eval(<<'.,.,', 'mediacloth.y', 434) def _reduce_63(val, _values, result) - result = [] + result = [] result end .,., @@ -1282,14 +1282,14 @@ module_eval(<<'.,.,', 'mediacloth.y', 437) def _reduce_64(val, _values, result) result << val[1] result += val[2] - + result end .,., module_eval(<<'.,.,', 'mediacloth.y', 441) def _reduce_65(val, _values, result) - result = [] + result = [] result end .,., @@ -1297,7 +1297,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 441) module_eval(<<'.,.,', 'mediacloth.y', 447) def _reduce_66(val, _values, result) result = ListItemAST.new(@ast_index, @ast_length) - + result end .,., @@ -1307,7 +1307,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 451) li = ListItemAST.new(@ast_index, @ast_length) li.children += val[1] result = li - + result end .,., @@ -1316,7 +1316,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 460) def _reduce_68(val, _values, result) result = [val[1]] result += val[2] - + result end .,., @@ -1324,7 +1324,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 460) module_eval(<<'.,.,', 'mediacloth.y', 465) def _reduce_69(val, _values, result) result = val[1] - + result end .,., @@ -1332,7 +1332,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 465) module_eval(<<'.,.,', 'mediacloth.y', 472) def _reduce_70(val, _values, result) result = ListTermAST.new(@ast_index, @ast_length) - + result end .,., @@ -1342,7 +1342,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 476) term = ListTermAST.new(@ast_index, @ast_length) term.children += val[1] result = term - + result end .,., @@ -1351,7 +1351,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 484) def _reduce_72(val, _values, result) result = [val[0]] result += val[1] if val[1] - + result end .,., @@ -1359,7 +1359,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 484) module_eval(<<'.,.,', 'mediacloth.y', 489) def _reduce_73(val, _values, result) result = [] - + result end .,., @@ -1367,7 +1367,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 489) module_eval(<<'.,.,', 'mediacloth.y', 495) def _reduce_74(val, _values, result) result = ListDefinitionAST.new(@ast_index, @ast_length) - + result end .,., @@ -1377,7 +1377,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 499) term = ListDefinitionAST.new(@ast_index, @ast_length) term.children += val[1] result = term - + result end .,., @@ -1387,7 +1387,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 506) p = PreformattedAST.new(@ast_index, @ast_length) p.children += val[1] result = p - + result end .,., @@ -1398,7 +1398,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 512) p.indented = true p.children += val[1] result = p - + result end .,., @@ -1410,7 +1410,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 520) s.children = val[1] s.level = val[0].length result = s - + result end .,., @@ -1421,7 +1421,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 530) t.template_name = val[1] t.children = val[2] unless val[2].nil? or val[2].empty? result = t - + result end .,., @@ -1429,7 +1429,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 530) module_eval(<<'.,.,', 'mediacloth.y', 539) def _reduce_80(val, _values, result) result = nil - + result end .,., @@ -1440,7 +1440,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 543) p.parameter_value = val[1] result = [p] result += val[2] if val[2] - + result end .,., @@ -1451,7 +1451,7 @@ module_eval(<<'.,.,', 'mediacloth.y', 550) p.children << val[1] result = [p] result += val[2] if val[2] - + result end .,., diff --git a/test/racc/regress/mof b/test/racc/regress/mof index 7f1d0aa427..ff3c4639df 100644 --- a/test/racc/regress/mof +++ b/test/racc/regress/mof @@ -35,7 +35,7 @@ def initialize options = {} @includes = options[:includes] || [] @quiet = options[:quiet] @style = options[:style] || :cim # default to style CIM v2.2 syntax - + @lineno = 1 @file = nil @iconv = nil @@ -699,14 +699,14 @@ Racc_debug_parser = false module_eval(<<'.,.,', 'mof.y', 41) def _reduce_1(val, _values, result) - result = Hash.new + result = Hash.new result end .,., module_eval(<<'.,.,', 'mof.y', 43) def _reduce_2(val, _values, result) - result = { @name => @result } + result = { @name => @result } result end .,., @@ -715,7 +715,7 @@ module_eval(<<'.,.,', 'mof.y', 45) def _reduce_3(val, _values, result) result = val[0] result[@name] = @result - + result end .,., @@ -726,7 +726,7 @@ module_eval(<<'.,.,', 'mof.y', 53) def _reduce_5(val, _values, result) #puts "Class '#{val[0].name}'" @result.classes << val[0] - + result end .,., @@ -735,14 +735,14 @@ module_eval(<<'.,.,', 'mof.y', 57) def _reduce_6(val, _values, result) @result.qualifiers << val[0] @qualifiers[val[0].name.downcase] = val[0] - + result end .,., module_eval(<<'.,.,', 'mof.y', 61) def _reduce_7(val, _values, result) - @result.instances << val[0] + @result.instances << val[0] result end .,., @@ -751,7 +751,7 @@ module_eval(<<'.,.,', 'mof.y', 71) def _reduce_8(val, _values, result) raise MOF::Helper::Error.new(@name,@lineno,@line,"Missing filename after '#pragma include'") unless val[3] open val[3], :pragma - + result end .,., @@ -763,7 +763,7 @@ module_eval(<<'.,.,', 'mof.y', 76) raise StyleError.new(@name,@lineno,@line,"Use '#pragma include' instead of '#include'") unless @style == :wmi raise MOF::Helper::Error.new(@name,@lineno,@line,"Missing filename after '#include'") unless val[2] open val[2], :pragma - + result end .,., @@ -772,14 +772,14 @@ module_eval(<<'.,.,', 'mof.y', 76) module_eval(<<'.,.,', 'mof.y', 88) def _reduce_12(val, _values, result) - raise StyleError.new(@name,@lineno,@line,"#pragma parameter missing") unless @style == :wmi + raise StyleError.new(@name,@lineno,@line,"#pragma parameter missing") unless @style == :wmi result end .,., module_eval(<<'.,.,', 'mof.y', 90) def _reduce_13(val, _values, result) - result = val[1] + result = val[1] result end .,., @@ -792,7 +792,7 @@ module_eval(<<'.,.,', 'mof.y', 90) module_eval(<<'.,.,', 'mof.y', 101) def _reduce_17(val, _values, result) - raise StyleError.new(@name,@lineno,@line,"#pragma parameter missing") unless @style == :wmi + raise StyleError.new(@name,@lineno,@line,"#pragma parameter missing") unless @style == :wmi result end .,., @@ -805,21 +805,21 @@ module_eval(<<'.,.,', 'mof.y', 112) features = val[6] # FIXME: features must not include references result = CIM::Class.new(val[2],qualifiers,val[3],val[4],features) - + result end .,., module_eval(<<'.,.,', 'mof.y', 121) def _reduce_20(val, _values, result) - result = [] + result = [] result end .,., module_eval(<<'.,.,', 'mof.y', 123) def _reduce_21(val, _values, result) - result = val[0] << val[1] + result = val[0] << val[1] result end .,., @@ -834,7 +834,7 @@ module_eval(<<'.,.,', 'mof.y', 123) module_eval(<<'.,.,', 'mof.y', 136) def _reduce_26(val, _values, result) - result = CIM::QualifierSet.new val[0] + result = CIM::QualifierSet.new val[0] result end .,., @@ -842,14 +842,14 @@ module_eval(<<'.,.,', 'mof.y', 136) module_eval(<<'.,.,', 'mof.y', 141) def _reduce_27(val, _values, result) result = val[2] - result.unshift val[1] if val[1] + result.unshift val[1] if val[1] result end .,., module_eval(<<'.,.,', 'mof.y', 147) def _reduce_28(val, _values, result) - result = [] + result = [] result end .,., @@ -858,7 +858,7 @@ module_eval(<<'.,.,', 'mof.y', 149) def _reduce_29(val, _values, result) result = val[0] result << val[2] if val[2] - + result end .,., @@ -882,7 +882,7 @@ module_eval(<<'.,.,', 'mof.y', 156) else result = CIM::Qualifier.new(qualifier,value,val[2]) end - + result end .,., @@ -891,7 +891,7 @@ module_eval(<<'.,.,', 'mof.y', 156) module_eval(<<'.,.,', 'mof.y', 179) def _reduce_32(val, _values, result) - result = CIM::QualifierFlavors.new val[1] + result = CIM::QualifierFlavors.new val[1] result end .,., @@ -902,7 +902,7 @@ module_eval(<<'.,.,', 'mof.y', 179) module_eval(<<'.,.,', 'mof.y', 189) def _reduce_35(val, _values, result) - result = val[1] + result = val[1] result end .,., @@ -927,7 +927,7 @@ module_eval(<<'.,.,', 'mof.y', 196) when :amended, :toinstance raise StyleError.new(@name,@lineno,@line,"'#{val[0]}' is not a valid flavor") unless @style == :wmi end - + result end .,., @@ -942,28 +942,28 @@ module_eval(<<'.,.,', 'mof.y', 196) module_eval(<<'.,.,', 'mof.y', 215) def _reduce_48(val, _values, result) - raise ParseError.new("Class name must be prefixed by '_'") unless val[0].include?("_") || @style == :wmi + raise ParseError.new("Class name must be prefixed by '_'") unless val[0].include?("_") || @style == :wmi result end .,., module_eval(<<'.,.,', 'mof.y', 220) def _reduce_49(val, _values, result) - result = val[1] + result = val[1] result end .,., module_eval(<<'.,.,', 'mof.y', 225) def _reduce_50(val, _values, result) - result = val[1] + result = val[1] result end .,., module_eval(<<'.,.,', 'mof.y', 230) def _reduce_51(val, _values, result) - result = val[1] + result = val[1] result end .,., @@ -976,7 +976,7 @@ module_eval(<<'.,.,', 'mof.y', 236) type = val[1] end result = CIM::Property.new(type,val[2],val[0],val[4]) - + result end .,., @@ -986,14 +986,14 @@ module_eval(<<'.,.,', 'mof.y', 247) if val[4] raise StyleError.new(@name,@lineno,@line,"Array not allowed in reference declaration") unless @style == :wmi end - result = CIM::Reference.new(val[1],val[2],val[0],val[4]) + result = CIM::Reference.new(val[1],val[2],val[0],val[4]) result end .,., module_eval(<<'.,.,', 'mof.y', 255) def _reduce_54(val, _values, result) - result = CIM::Method.new(val[1],val[2],val[0],val[4]) + result = CIM::Method.new(val[1],val[2],val[0],val[4]) result end .,., @@ -1004,7 +1004,7 @@ module_eval(<<'.,.,', 'mof.y', 261) def _reduce_56(val, _values, result) # tmplprov.mof has 'string Property;' raise StyleError.new(@name,@lineno,@line,"Invalid keyword '#{val[0]}' used for property name") unless @style == :wmi - + result end .,., @@ -1013,7 +1013,7 @@ module_eval(<<'.,.,', 'mof.y', 261) module_eval(<<'.,.,', 'mof.y', 269) def _reduce_58(val, _values, result) - result = "Indication" + result = "Indication" result end .,., @@ -1050,7 +1050,7 @@ module_eval(<<'.,.,', 'mof.y', 269) module_eval(<<'.,.,', 'mof.y', 292) def _reduce_74(val, _values, result) - raise StyleError.new(@name,@lineno,@line,"'void' is not a valid datatype") unless @style == :wmi + raise StyleError.new(@name,@lineno,@line,"'void' is not a valid datatype") unless @style == :wmi result end .,., @@ -1060,14 +1060,14 @@ module_eval(<<'.,.,', 'mof.y', 297) # WMI uses class names as data types (without REF ?!) raise StyleError.new(@name,@lineno,@line,"Expected 'ref' keyword after classname '#{val[0]}'") unless @style == :wmi result = CIM::ReferenceType.new val[0] - + result end .,., module_eval(<<'.,.,', 'mof.y', 303) def _reduce_76(val, _values, result) - result = CIM::ReferenceType.new val[0] + result = CIM::ReferenceType.new val[0] result end .,., @@ -1078,21 +1078,21 @@ module_eval(<<'.,.,', 'mof.y', 303) module_eval(<<'.,.,', 'mof.y', 313) def _reduce_79(val, _values, result) - result = val[1].unshift val[0] + result = val[1].unshift val[0] result end .,., module_eval(<<'.,.,', 'mof.y', 318) def _reduce_80(val, _values, result) - result = [] + result = [] result end .,., module_eval(<<'.,.,', 'mof.y', 320) def _reduce_81(val, _values, result) - result = val[0] << val[2] + result = val[0] << val[2] result end .,., @@ -1105,7 +1105,7 @@ module_eval(<<'.,.,', 'mof.y', 325) type = val[1] end result = CIM::Property.new(type,val[2],val[0]) - + result end .,., @@ -1124,21 +1124,21 @@ module_eval(<<'.,.,', 'mof.y', 325) module_eval(<<'.,.,', 'mof.y', 351) def _reduce_89(val, _values, result) - raise "Default parameter value not allowed in syntax style '{@style}'" unless @style == :wmi + raise "Default parameter value not allowed in syntax style '{@style}'" unless @style == :wmi result end .,., module_eval(<<'.,.,', 'mof.y', 356) def _reduce_90(val, _values, result) - result = val[1] + result = val[1] result end .,., module_eval(<<'.,.,', 'mof.y', 361) def _reduce_91(val, _values, result) - result = -1 + result = -1 result end .,., @@ -1151,7 +1151,7 @@ module_eval(<<'.,.,', 'mof.y', 361) module_eval(<<'.,.,', 'mof.y', 372) def _reduce_95(val, _values, result) - result = val[1] + result = val[1] result end .,., @@ -1164,7 +1164,7 @@ module_eval(<<'.,.,', 'mof.y', 372) module_eval(<<'.,.,', 'mof.y', 383) def _reduce_99(val, _values, result) - result = val[1] + result = val[1] result end .,., @@ -1173,14 +1173,14 @@ module_eval(<<'.,.,', 'mof.y', 383) module_eval(<<'.,.,', 'mof.y', 389) def _reduce_101(val, _values, result) - result = [ val[0] ] + result = [ val[0] ] result end .,., module_eval(<<'.,.,', 'mof.y', 391) def _reduce_102(val, _values, result) - result = val[0] << val[2] + result = val[0] << val[2] result end .,., @@ -1199,7 +1199,7 @@ module_eval(<<'.,.,', 'mof.y', 391) module_eval(<<'.,.,', 'mof.y', 402) def _reduce_109(val, _values, result) - raise "Instance as property value not allowed in syntax style '{@style}'" unless @style == :wmi + raise "Instance as property value not allowed in syntax style '{@style}'" unless @style == :wmi result end .,., @@ -1218,7 +1218,7 @@ module_eval(<<'.,.,', 'mof.y', 402) module_eval(<<'.,.,', 'mof.y', 416) def _reduce_116(val, _values, result) - result = val[0] + val[1] + result = val[0] + val[1] result end .,., @@ -1251,7 +1251,7 @@ module_eval(<<'.,.,', 'mof.y', 416) module_eval(<<'.,.,', 'mof.y', 471) def _reduce_130(val, _values, result) - result = CIM::QualifierDeclaration.new( val[1], val[2][0], val[2][1], val[3], val[4]) + result = CIM::QualifierDeclaration.new( val[1], val[2][0], val[2][1], val[3], val[4]) result end .,., @@ -1274,28 +1274,28 @@ module_eval(<<'.,.,', 'mof.y', 490) def _reduce_138(val, _values, result) type = val[2].nil? ? val[1] : CIM::Array.new(val[2],val[1]) result = [ type, val[3] ] - + result end .,., module_eval(<<'.,.,', 'mof.y', 497) def _reduce_139(val, _values, result) - result = CIM::QualifierScopes.new(val[3]) + result = CIM::QualifierScopes.new(val[3]) result end .,., module_eval(<<'.,.,', 'mof.y', 502) def _reduce_140(val, _values, result) - result = [ val[0] ] + result = [ val[0] ] result end .,., module_eval(<<'.,.,', 'mof.y', 504) def _reduce_141(val, _values, result) - result = val[0] << val[2] + result = val[0] << val[2] result end .,., @@ -1322,21 +1322,21 @@ module_eval(<<'.,.,', 'mof.y', 504) module_eval(<<'.,.,', 'mof.y', 522) def _reduce_152(val, _values, result) - result = CIM::QualifierFlavors.new val[3] + result = CIM::QualifierFlavors.new val[3] result end .,., module_eval(<<'.,.,', 'mof.y', 527) def _reduce_153(val, _values, result) - result = [ val[0] ] + result = [ val[0] ] result end .,., module_eval(<<'.,.,', 'mof.y', 529) def _reduce_154(val, _values, result) - result = val[0] << val[2] + result = val[0] << val[2] result end .,., @@ -1353,7 +1353,7 @@ module_eval(<<'.,.,', 'mof.y', 529) module_eval(<<'.,.,', 'mof.y', 553) def _reduce_160(val, _values, result) - raise "Instance property '#{val[1]} must have a value" unless @style == :wmi + raise "Instance property '#{val[1]} must have a value" unless @style == :wmi result end .,., diff --git a/test/racc/regress/namae b/test/racc/regress/namae index 418b81e97f..856adc78e5 100644 --- a/test/racc/regress/namae +++ b/test/racc/regress/namae @@ -386,28 +386,28 @@ Racc_debug_parser = false module_eval(<<'.,.,', 'namae.y', 39) def _reduce_1(val, _values, result) - result = [] + result = [] result end .,., module_eval(<<'.,.,', 'namae.y', 40) def _reduce_2(val, _values, result) - result = [val[0]] + result = [val[0]] result end .,., module_eval(<<'.,.,', 'namae.y', 41) def _reduce_3(val, _values, result) - result = val[0] << val[2] + result = val[0] << val[2] result end .,., module_eval(<<'.,.,', 'namae.y', 43) def _reduce_4(val, _values, result) - result = Name.new(:given => val[0]) + result = Name.new(:given => val[0]) result end .,., @@ -416,14 +416,14 @@ module_eval(<<'.,.,', 'namae.y', 43) module_eval(<<'.,.,', 'namae.y', 45) def _reduce_6(val, _values, result) - result = val[0].merge(:family => val[1]) + result = val[0].merge(:family => val[1]) result end .,., module_eval(<<'.,.,', 'namae.y', 46) def _reduce_7(val, _values, result) - result = val[1].merge(val[0]) + result = val[1].merge(val[0]) result end .,., @@ -432,14 +432,14 @@ module_eval(<<'.,.,', 'namae.y', 46) module_eval(<<'.,.,', 'namae.y', 49) def _reduce_9(val, _values, result) - result = Name.new(:appellation => val[0]) + result = Name.new(:appellation => val[0]) result end .,., module_eval(<<'.,.,', 'namae.y', 50) def _reduce_10(val, _values, result) - result = Name.new(:title => val[0]) + result = Name.new(:title => val[0]) result end .,., @@ -448,7 +448,7 @@ module_eval(<<'.,.,', 'namae.y', 54) def _reduce_11(val, _values, result) result = Name.new(:given => val[0], :family => val[1], :suffix => val[2], :title => val[3]) - + result end .,., @@ -457,7 +457,7 @@ module_eval(<<'.,.,', 'namae.y', 59) def _reduce_12(val, _values, result) result = Name.new(:given => val[0], :nick => val[1], :family => val[2], :suffix => val[3], :title => val[4]) - + result end .,., @@ -467,7 +467,7 @@ module_eval(<<'.,.,', 'namae.y', 64) result = Name.new(:given => val[0], :nick => val[1], :particle => val[2], :family => val[3], :suffix => val[4], :title => val[5]) - + result end .,., @@ -476,7 +476,7 @@ module_eval(<<'.,.,', 'namae.y', 70) def _reduce_14(val, _values, result) result = Name.new(:given => val[0], :particle => val[1], :family => val[2]) - + result end .,., @@ -484,7 +484,7 @@ module_eval(<<'.,.,', 'namae.y', 70) module_eval(<<'.,.,', 'namae.y', 75) def _reduce_15(val, _values, result) result = Name.new(:particle => val[0], :family => val[1]) - + result end .,., @@ -493,7 +493,7 @@ module_eval(<<'.,.,', 'namae.y', 80) def _reduce_16(val, _values, result) result = Name.new({ :family => val[0], :suffix => val[2][0], :given => val[2][1] }, !!val[2][0]) - + result end .,., @@ -502,7 +502,7 @@ module_eval(<<'.,.,', 'namae.y', 85) def _reduce_17(val, _values, result) result = Name.new({ :particle => val[0], :family => val[1], :suffix => val[3][0], :given => val[3][1] }, !!val[3][0]) - + result end .,., @@ -511,7 +511,7 @@ module_eval(<<'.,.,', 'namae.y', 90) def _reduce_18(val, _values, result) result = Name.new({ :particle => val[0,2].join(' '), :family => val[2], :suffix => val[4][0], :given => val[4][1] }, !!val[4][0]) - + result end .,., @@ -520,14 +520,14 @@ module_eval(<<'.,.,', 'namae.y', 90) module_eval(<<'.,.,', 'namae.y', 96) def _reduce_20(val, _values, result) - result = val.join(' ') + result = val.join(' ') result end .,., module_eval(<<'.,.,', 'namae.y', 97) def _reduce_21(val, _values, result) - result = val.join(' ') + result = val.join(' ') result end .,., @@ -538,28 +538,28 @@ module_eval(<<'.,.,', 'namae.y', 97) module_eval(<<'.,.,', 'namae.y', 101) def _reduce_24(val, _values, result) - result = [nil,val[0]] + result = [nil,val[0]] result end .,., module_eval(<<'.,.,', 'namae.y', 102) def _reduce_25(val, _values, result) - result = [val[2],val[0]] + result = [val[2],val[0]] result end .,., module_eval(<<'.,.,', 'namae.y', 103) def _reduce_26(val, _values, result) - result = [val[0],nil] + result = [val[0],nil] result end .,., module_eval(<<'.,.,', 'namae.y', 104) def _reduce_27(val, _values, result) - result = [val[0],val[2]] + result = [val[0],val[2]] result end .,., @@ -568,7 +568,7 @@ module_eval(<<'.,.,', 'namae.y', 104) module_eval(<<'.,.,', 'namae.y', 107) def _reduce_29(val, _values, result) - result = val.join(' ') + result = val.join(' ') result end .,., @@ -581,7 +581,7 @@ module_eval(<<'.,.,', 'namae.y', 107) module_eval(<<'.,.,', 'namae.y', 112) def _reduce_33(val, _values, result) - result = val.join(' ') + result = val.join(' ') result end .,., @@ -608,7 +608,7 @@ module_eval(<<'.,.,', 'namae.y', 112) module_eval(<<'.,.,', 'namae.y', 122) def _reduce_44(val, _values, result) - result = val.join(' ') + result = val.join(' ') result end .,., @@ -621,7 +621,7 @@ module_eval(<<'.,.,', 'namae.y', 122) module_eval(<<'.,.,', 'namae.y', 127) def _reduce_48(val, _values, result) - result = val.join(' ') + result = val.join(' ') result end .,., diff --git a/test/racc/regress/nasl b/test/racc/regress/nasl index ec1cd77fd8..e1b82dc128 100644 --- a/test/racc/regress/nasl +++ b/test/racc/regress/nasl @@ -1024,1027 +1024,1027 @@ Racc_debug_parser = false module_eval(<<'.,.,', 'nasl.y', 61) def _reduce_1(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 63) def _reduce_2(val, _values) - [] + [] end .,., module_eval(<<'.,.,', 'nasl.y', 67) def _reduce_3(val, _values) - [val[0]] + val[1] + [val[0]] + val[1] end .,., module_eval(<<'.,.,', 'nasl.y', 69) def _reduce_4(val, _values) - [val[0]] + [val[0]] end .,., module_eval(<<'.,.,', 'nasl.y', 73) def _reduce_5(val, _values) - c(*val) + c(*val) end .,., module_eval(<<'.,.,', 'nasl.y', 75) def _reduce_6(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 77) def _reduce_7(val, _values) - c(*val) + c(*val) end .,., module_eval(<<'.,.,', 'nasl.y', 79) def _reduce_8(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 81) def _reduce_9(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 85) def _reduce_10(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 87) def _reduce_11(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 95) def _reduce_12(val, _values) - n(:Export, *val) + n(:Export, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 99) def _reduce_13(val, _values) - n(:Function, *val) + n(:Function, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 101) def _reduce_14(val, _values) - n(:Function, *val) + n(:Function, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 105) def _reduce_15(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 107) def _reduce_16(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 109) def _reduce_17(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 111) def _reduce_18(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 113) def _reduce_19(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 115) def _reduce_20(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 117) def _reduce_21(val, _values) - c(*val) + c(*val) end .,., module_eval(<<'.,.,', 'nasl.y', 119) def _reduce_22(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 121) def _reduce_23(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 123) def _reduce_24(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 125) def _reduce_25(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 127) def _reduce_26(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 129) def _reduce_27(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 131) def _reduce_28(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 135) def _reduce_29(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 137) def _reduce_30(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 139) def _reduce_31(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 141) def _reduce_32(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 143) def _reduce_33(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 145) def _reduce_34(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 153) def _reduce_35(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 157) def _reduce_36(val, _values) - n(:Break, *val) + n(:Break, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 161) def _reduce_37(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 165) def _reduce_38(val, _values) - n(:Continue, *val) + n(:Continue, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 169) def _reduce_39(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 173) def _reduce_40(val, _values) - n(:Empty, *val) + n(:Empty, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 177) def _reduce_41(val, _values) - n(:Global, *val) + n(:Global, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 181) def _reduce_42(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 185) def _reduce_43(val, _values) - n(:Import, *val) + n(:Import, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 189) def _reduce_44(val, _values) - n(:Include, *val) + n(:Include, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 193) def _reduce_45(val, _values) - n(:Local, *val) + n(:Local, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 197) def _reduce_46(val, _values) - n(:Repetition, *val[0..-1]) + n(:Repetition, *val[0..-1]) end .,., module_eval(<<'.,.,', 'nasl.y', 201) def _reduce_47(val, _values) - n(:Return, *val) + n(:Return, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 203) def _reduce_48(val, _values) - n(:Return, *val) + n(:Return, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 205) def _reduce_49(val, _values) - n(:Return, *val) + n(:Return, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 213) def _reduce_50(val, _values) - n(:Block, *val) + n(:Block, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 215) def _reduce_51(val, _values) - n(:Block, *val) + n(:Block, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 219) def _reduce_52(val, _values) - n(:For, *val) + n(:For, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 223) def _reduce_53(val, _values) - n(:Foreach, val[0], val[1], val[3], val[5]) + n(:Foreach, val[0], val[1], val[3], val[5]) end .,., module_eval(<<'.,.,', 'nasl.y', 225) def _reduce_54(val, _values) - n(:Foreach, val[0], val[2], val[4], val[6]) + n(:Foreach, val[0], val[2], val[4], val[6]) end .,., module_eval(<<'.,.,', 'nasl.y', 229) def _reduce_55(val, _values) - n(:If, *val) + n(:If, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 231) def _reduce_56(val, _values) - n(:If, *val) + n(:If, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 235) def _reduce_57(val, _values) - n(:Repeat, *val) + n(:Repeat, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 239) def _reduce_58(val, _values) - n(:While, *val) + n(:While, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 247) def _reduce_59(val, _values) - n(:Assignment, *val) + n(:Assignment, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 249) def _reduce_60(val, _values) - n(:Assignment, *val) + n(:Assignment, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 251) def _reduce_61(val, _values) - n(:Assignment, *val) + n(:Assignment, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 253) def _reduce_62(val, _values) - n(:Assignment, *val) + n(:Assignment, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 255) def _reduce_63(val, _values) - n(:Assignment, *val) + n(:Assignment, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 257) def _reduce_64(val, _values) - n(:Assignment, *val) + n(:Assignment, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 259) def _reduce_65(val, _values) - n(:Assignment, *val) + n(:Assignment, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 261) def _reduce_66(val, _values) - n(:Assignment, *val) + n(:Assignment, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 263) def _reduce_67(val, _values) - n(:Assignment, *val) + n(:Assignment, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 265) def _reduce_68(val, _values) - n(:Assignment, *val) + n(:Assignment, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 269) def _reduce_69(val, _values) - n(:Call, *val) + n(:Call, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 271) def _reduce_70(val, _values) - n(:Call, *val) + n(:Call, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 275) def _reduce_71(val, _values) - n(:Decrement, val[0]) + n(:Decrement, val[0]) end .,., module_eval(<<'.,.,', 'nasl.y', 277) def _reduce_72(val, _values) - n(:Decrement, val[0]) + n(:Decrement, val[0]) end .,., module_eval(<<'.,.,', 'nasl.y', 281) def _reduce_73(val, _values) - n(:Increment, val[0]) + n(:Increment, val[0]) end .,., module_eval(<<'.,.,', 'nasl.y', 283) def _reduce_74(val, _values) - n(:Increment, val[0]) + n(:Increment, val[0]) end .,., module_eval(<<'.,.,', 'nasl.y', 287) def _reduce_75(val, _values) - n(:Expression, *val) + n(:Expression, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 289) def _reduce_76(val, _values) - n(:Expression, *val) + n(:Expression, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 291) def _reduce_77(val, _values) - n(:Expression, *val) + n(:Expression, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 293) def _reduce_78(val, _values) - n(:Expression, *val) + n(:Expression, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 295) def _reduce_79(val, _values) - n(:Expression, *val) + n(:Expression, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 297) def _reduce_80(val, _values) - n(:Expression, *val) + n(:Expression, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 299) def _reduce_81(val, _values) - n(:Expression, *val) + n(:Expression, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 301) def _reduce_82(val, _values) - n(:Expression, *val) + n(:Expression, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 303) def _reduce_83(val, _values) - n(:Expression, *val) + n(:Expression, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 305) def _reduce_84(val, _values) - n(:Expression, *val) + n(:Expression, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 307) def _reduce_85(val, _values) - n(:Expression, *val) + n(:Expression, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 309) def _reduce_86(val, _values) - n(:Expression, *val) + n(:Expression, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 311) def _reduce_87(val, _values) - n(:Expression, *val) + n(:Expression, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 313) def _reduce_88(val, _values) - n(:Expression, *val) + n(:Expression, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 315) def _reduce_89(val, _values) - n(:Expression, *val) + n(:Expression, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 317) def _reduce_90(val, _values) - n(:Expression, *val) + n(:Expression, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 319) def _reduce_91(val, _values) - n(:Expression, *val) + n(:Expression, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 321) def _reduce_92(val, _values) - n(:Expression, *val) + n(:Expression, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 323) def _reduce_93(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 325) def _reduce_94(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 327) def _reduce_95(val, _values) - n(:Expression, *val) + n(:Expression, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 329) def _reduce_96(val, _values) - n(:Expression, *val) + n(:Expression, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 331) def _reduce_97(val, _values) - n(:Expression, *val) + n(:Expression, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 333) def _reduce_98(val, _values) - n(:Expression, *val) + n(:Expression, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 335) def _reduce_99(val, _values) - n(:Expression, *val) + n(:Expression, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 337) def _reduce_100(val, _values) - n(:Expression, *val) + n(:Expression, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 339) def _reduce_101(val, _values) - n(:Expression, *val) + n(:Expression, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 341) def _reduce_102(val, _values) - n(:Expression, *val) + n(:Expression, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 343) def _reduce_103(val, _values) - n(:Expression, *val) + n(:Expression, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 345) def _reduce_104(val, _values) - n(:Expression, *val) + n(:Expression, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 347) def _reduce_105(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 349) def _reduce_106(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 351) def _reduce_107(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 353) def _reduce_108(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 355) def _reduce_109(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 357) def _reduce_110(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 359) def _reduce_111(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 361) def _reduce_112(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 363) def _reduce_113(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 371) def _reduce_114(val, _values) - n(:Argument, *val) + n(:Argument, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 373) def _reduce_115(val, _values) - n(:Argument, *val) + n(:Argument, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 375) def _reduce_116(val, _values) - n(:Argument, *val) + n(:Argument, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 377) def _reduce_117(val, _values) - n(:Argument, *val) + n(:Argument, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 381) def _reduce_118(val, _values) - n(:KeyValuePair, *val) + n(:KeyValuePair, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 383) def _reduce_119(val, _values) - n(:KeyValuePair, *val) + n(:KeyValuePair, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 385) def _reduce_120(val, _values) - n(:KeyValuePair, *val) + n(:KeyValuePair, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 387) def _reduce_121(val, _values) - n(:KeyValuePair, *val) + n(:KeyValuePair, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 389) def _reduce_122(val, _values) - n(:KeyValuePair, *val) + n(:KeyValuePair, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 391) def _reduce_123(val, _values) - n(:KeyValuePair, *val) + n(:KeyValuePair, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 395) def _reduce_124(val, _values) - [val[0]] + val[2] + [val[0]] + val[2] end .,., module_eval(<<'.,.,', 'nasl.y', 397) def _reduce_125(val, _values) - [val[0]] + [val[0]] end .,., module_eval(<<'.,.,', 'nasl.y', 399) def _reduce_126(val, _values) - [val[0]] + [val[0]] end .,., module_eval(<<'.,.,', 'nasl.y', 403) def _reduce_127(val, _values) - n(:Lvalue, *val) + n(:Lvalue, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 405) def _reduce_128(val, _values) - n(:Lvalue, *val) + n(:Lvalue, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 409) def _reduce_129(val, _values) - n(:Reference, val[1]) + n(:Reference, val[1]) end .,., module_eval(<<'.,.,', 'nasl.y', 417) def _reduce_130(val, _values) - [val[0]] + val[2] + [val[0]] + val[2] end .,., module_eval(<<'.,.,', 'nasl.y', 419) def _reduce_131(val, _values) - [val[0]] + [val[0]] end .,., module_eval(<<'.,.,', 'nasl.y', 423) def _reduce_132(val, _values) - n(:Array, *val) + n(:Array, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 425) def _reduce_133(val, _values) - n(:Array, *val) + n(:Array, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 429) def _reduce_134(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 431) def _reduce_135(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 433) def _reduce_136(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 435) def _reduce_137(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 437) def _reduce_138(val, _values) - nil + nil end .,., module_eval(<<'.,.,', 'nasl.y', 441) def _reduce_139(val, _values) - val[1] + val[1] end .,., module_eval(<<'.,.,', 'nasl.y', 443) def _reduce_140(val, _values) - val[1] + val[1] end .,., module_eval(<<'.,.,', 'nasl.y', 447) def _reduce_141(val, _values) - [val[0]] + val[1] + [val[0]] + val[1] end .,., module_eval(<<'.,.,', 'nasl.y', 449) def _reduce_142(val, _values) - [val[0]] + [val[0]] end .,., module_eval(<<'.,.,', 'nasl.y', 453) def _reduce_143(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 455) def _reduce_144(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 459) def _reduce_145(val, _values) - [val[0]] + val[2] + [val[0]] + val[2] end .,., module_eval(<<'.,.,', 'nasl.y', 461) def _reduce_146(val, _values) - [val[0]] + [val[0]] end .,., module_eval(<<'.,.,', 'nasl.y', 465) def _reduce_147(val, _values) - n(:List, *val) + n(:List, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 467) def _reduce_148(val, _values) - n(:List, *val) + n(:List, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 471) def _reduce_149(val, _values) - n(:Parameter, val[1], 'reference') + n(:Parameter, val[1], 'reference') end .,., module_eval(<<'.,.,', 'nasl.y', 473) def _reduce_150(val, _values) - n(:Parameter, val[0], 'value') + n(:Parameter, val[0], 'value') end .,., module_eval(<<'.,.,', 'nasl.y', 477) def _reduce_151(val, _values) - [val[0]] + val[2] + [val[0]] + val[2] end .,., module_eval(<<'.,.,', 'nasl.y', 479) def _reduce_152(val, _values) - [val[0]] + [val[0]] end .,., module_eval(<<'.,.,', 'nasl.y', 483) def _reduce_153(val, _values) - [val[0]] + val[1] + [val[0]] + val[1] end .,., module_eval(<<'.,.,', 'nasl.y', 485) def _reduce_154(val, _values) - [val[0]] + [val[0]] end .,., module_eval(<<'.,.,', 'nasl.y', 489) def _reduce_155(val, _values) - n(:Assignment, *val) + n(:Assignment, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 491) def _reduce_156(val, _values) - n(:Assignment, *val) + n(:Assignment, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 493) def _reduce_157(val, _values) - val[0] + val[0] end .,., module_eval(<<'.,.,', 'nasl.y', 497) def _reduce_158(val, _values) - [val[0]] + val[2] + [val[0]] + val[2] end .,., module_eval(<<'.,.,', 'nasl.y', 499) def _reduce_159(val, _values) - [val[0]] + [val[0]] end .,., module_eval(<<'.,.,', 'nasl.y', 507) def _reduce_160(val, _values) - n(:Identifier, *val) + n(:Identifier, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 509) def _reduce_161(val, _values) - n(:Identifier, *val) + n(:Identifier, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 511) def _reduce_162(val, _values) - n(:Identifier, *val) + n(:Identifier, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 515) def _reduce_163(val, _values) - n(:Integer, *val) + n(:Integer, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 517) def _reduce_164(val, _values) - n(:Integer, *val) + n(:Integer, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 519) def _reduce_165(val, _values) - n(:Integer, *val) + n(:Integer, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 521) def _reduce_166(val, _values) - n(:Integer, *val) + n(:Integer, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 523) def _reduce_167(val, _values) - n(:Integer, *val) + n(:Integer, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 527) def _reduce_168(val, _values) - n(:Ip, *val) + n(:Ip, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 530) def _reduce_169(val, _values) - n(:String, *val) + n(:String, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 532) def _reduce_170(val, _values) - n(:String, *val) + n(:String, *val) end .,., module_eval(<<'.,.,', 'nasl.y', 536) def _reduce_171(val, _values) - n(:Undefined, *val) + n(:Undefined, *val) end .,., diff --git a/test/racc/regress/nokogiri-css b/test/racc/regress/nokogiri-css index f759a8c4c3..f10e24fb62 100644 --- a/test/racc/regress/nokogiri-css +++ b/test/racc/regress/nokogiri-css @@ -315,56 +315,56 @@ Racc_debug_parser = false module_eval(<<'.,.,', 'nokogiri-css.y', 9) def _reduce_1(val, _values, result) result = [val.first, val.last].flatten - + result end .,., module_eval(<<'.,.,', 'nokogiri-css.y', 11) def _reduce_2(val, _values, result) - result = val.flatten + result = val.flatten result end .,., module_eval(<<'.,.,', 'nokogiri-css.y', 12) def _reduce_3(val, _values, result) - result = [val.last].flatten + result = [val.last].flatten result end .,., module_eval(<<'.,.,', 'nokogiri-css.y', 15) def _reduce_4(val, _values, result) - result = :DIRECT_ADJACENT_SELECTOR + result = :DIRECT_ADJACENT_SELECTOR result end .,., module_eval(<<'.,.,', 'nokogiri-css.y', 16) def _reduce_5(val, _values, result) - result = :CHILD_SELECTOR + result = :CHILD_SELECTOR result end .,., module_eval(<<'.,.,', 'nokogiri-css.y', 17) def _reduce_6(val, _values, result) - result = :FOLLOWING_SELECTOR + result = :FOLLOWING_SELECTOR result end .,., module_eval(<<'.,.,', 'nokogiri-css.y', 18) def _reduce_7(val, _values, result) - result = :DESCENDANT_SELECTOR + result = :DESCENDANT_SELECTOR result end .,., module_eval(<<'.,.,', 'nokogiri-css.y', 19) def _reduce_8(val, _values, result) - result = :CHILD_SELECTOR + result = :CHILD_SELECTOR result end .,., @@ -376,7 +376,7 @@ module_eval(<<'.,.,', 'nokogiri-css.y', 23) else Node.new(:CONDITIONAL_SELECTOR, [val.first, val[1]]) end - + result end .,., @@ -386,7 +386,7 @@ module_eval(<<'.,.,', 'nokogiri-css.y', 23) module_eval(<<'.,.,', 'nokogiri-css.y', 31) def _reduce_11(val, _values, result) result = Node.new(:CONDITIONAL_SELECTOR, val) - + result end .,., @@ -394,7 +394,7 @@ module_eval(<<'.,.,', 'nokogiri-css.y', 31) module_eval(<<'.,.,', 'nokogiri-css.y', 34) def _reduce_12(val, _values, result) result = Node.new(:CONDITIONAL_SELECTOR, val) - + result end .,., @@ -404,7 +404,7 @@ module_eval(<<'.,.,', 'nokogiri-css.y', 37) result = Node.new(:CONDITIONAL_SELECTOR, [Node.new(:ELEMENT_NAME, ['*']), val.first] ) - + result end .,., @@ -412,7 +412,7 @@ module_eval(<<'.,.,', 'nokogiri-css.y', 37) module_eval(<<'.,.,', 'nokogiri-css.y', 44) def _reduce_14(val, _values, result) result = Node.new(val.first, [nil, val.last]) - + result end .,., @@ -420,7 +420,7 @@ module_eval(<<'.,.,', 'nokogiri-css.y', 44) module_eval(<<'.,.,', 'nokogiri-css.y', 49) def _reduce_15(val, _values, result) result = Node.new(val[1], [val.first, val.last]) - + result end .,., @@ -428,7 +428,7 @@ module_eval(<<'.,.,', 'nokogiri-css.y', 49) module_eval(<<'.,.,', 'nokogiri-css.y', 52) def _reduce_16(val, _values, result) result = Node.new(:DESCENDANT_SELECTOR, [val.first, val.last]) - + result end .,., @@ -437,7 +437,7 @@ module_eval(<<'.,.,', 'nokogiri-css.y', 52) module_eval(<<'.,.,', 'nokogiri-css.y', 57) def _reduce_18(val, _values, result) - result = Node.new(:CLASS_CONDITION, [val[1]]) + result = Node.new(:CLASS_CONDITION, [val[1]]) result end .,., @@ -446,7 +446,7 @@ module_eval(<<'.,.,', 'nokogiri-css.y', 57) module_eval(<<'.,.,', 'nokogiri-css.y', 61) def _reduce_20(val, _values, result) - result = Node.new(:ELEMENT_NAME, val) + result = Node.new(:ELEMENT_NAME, val) result end .,., @@ -456,7 +456,7 @@ module_eval(<<'.,.,', 'nokogiri-css.y', 65) result = Node.new(:ELEMENT_NAME, [[val.first, val.last].compact.join(':')] ) - + result end .,., @@ -465,14 +465,14 @@ module_eval(<<'.,.,', 'nokogiri-css.y', 70) def _reduce_22(val, _values, result) name = @namespaces.key?('xmlns') ? "xmlns:#{val.first}" : val.first result = Node.new(:ELEMENT_NAME, [name]) - + result end .,., module_eval(<<'.,.,', 'nokogiri-css.y', 75) def _reduce_23(val, _values, result) - result = val[0] + result = val[0] result end .,., @@ -484,7 +484,7 @@ module_eval(<<'.,.,', 'nokogiri-css.y', 80) result = Node.new(:ATTRIBUTE_CONDITION, [val[1]] + (val[2] || []) ) - + result end .,., @@ -494,7 +494,7 @@ module_eval(<<'.,.,', 'nokogiri-css.y', 85) result = Node.new(:ATTRIBUTE_CONDITION, [val[1]] + (val[2] || []) ) - + result end .,., @@ -505,7 +505,7 @@ module_eval(<<'.,.,', 'nokogiri-css.y', 90) result = Node.new(:PSEUDO_CLASS, [Node.new(:FUNCTION, ['nth-child(', val[1]])] ) - + result end .,., @@ -515,7 +515,7 @@ module_eval(<<'.,.,', 'nokogiri-css.y', 98) result = Node.new(:ELEMENT_NAME, [[val.first, val.last].compact.join(':')] ) - + result end .,., @@ -525,7 +525,7 @@ module_eval(<<'.,.,', 'nokogiri-css.y', 103) # Default namespace is not applied to attributes. # So we don't add prefix "xmlns:" as in namespaced_ident. result = Node.new(:ELEMENT_NAME, [val.first]) - + result end .,., @@ -533,7 +533,7 @@ module_eval(<<'.,.,', 'nokogiri-css.y', 103) module_eval(<<'.,.,', 'nokogiri-css.y', 110) def _reduce_30(val, _values, result) result = Node.new(:FUNCTION, [val.first.strip]) - + result end .,., @@ -541,7 +541,7 @@ module_eval(<<'.,.,', 'nokogiri-css.y', 110) module_eval(<<'.,.,', 'nokogiri-css.y', 113) def _reduce_31(val, _values, result) result = Node.new(:FUNCTION, [val.first.strip, val[1]].flatten) - + result end .,., @@ -549,7 +549,7 @@ module_eval(<<'.,.,', 'nokogiri-css.y', 113) module_eval(<<'.,.,', 'nokogiri-css.y', 116) def _reduce_32(val, _values, result) result = Node.new(:FUNCTION, [val.first.strip, val[1]].flatten) - + result end .,., @@ -557,7 +557,7 @@ module_eval(<<'.,.,', 'nokogiri-css.y', 116) module_eval(<<'.,.,', 'nokogiri-css.y', 119) def _reduce_33(val, _values, result) result = Node.new(:FUNCTION, [val.first.strip, val[1]].flatten) - + result end .,., @@ -565,28 +565,28 @@ module_eval(<<'.,.,', 'nokogiri-css.y', 119) module_eval(<<'.,.,', 'nokogiri-css.y', 122) def _reduce_34(val, _values, result) result = Node.new(:FUNCTION, [val.first.strip, val[1]].flatten) - + result end .,., module_eval(<<'.,.,', 'nokogiri-css.y', 126) def _reduce_35(val, _values, result) - result = [val.first, val.last] + result = [val.first, val.last] result end .,., module_eval(<<'.,.,', 'nokogiri-css.y', 127) def _reduce_36(val, _values, result) - result = [val.first, val.last] + result = [val.first, val.last] result end .,., module_eval(<<'.,.,', 'nokogiri-css.y', 128) def _reduce_37(val, _values, result) - result = [val.first, val.last] + result = [val.first, val.last] result end .,., @@ -611,7 +611,7 @@ module_eval(<<'.,.,', 'nokogiri-css.y', 133) # assert_xpath("//a[foo(., a, 10)]", @parser.parse('a:foo(a, 10)')) result = val end - + result end .,., @@ -623,7 +623,7 @@ module_eval(<<'.,.,', 'nokogiri-css.y', 152) else raise Racc::ParseError, "parse error on IDENT '#{val[1]}'" end - + result end .,., @@ -641,7 +641,7 @@ module_eval(<<'.,.,', 'nokogiri-css.y', 158) else raise Racc::ParseError, "parse error on IDENT '#{val[1]}'" end - + result end .,., @@ -663,7 +663,7 @@ module_eval(<<'.,.,', 'nokogiri-css.y', 170) else raise Racc::ParseError, "parse error on IDENT '#{val[1]}'" end - + result end .,., @@ -671,14 +671,14 @@ module_eval(<<'.,.,', 'nokogiri-css.y', 170) module_eval(<<'.,.,', 'nokogiri-css.y', 189) def _reduce_44(val, _values, result) result = Node.new(:PSEUDO_CLASS, [val[1]]) - + result end .,., module_eval(<<'.,.,', 'nokogiri-css.y', 191) def _reduce_45(val, _values, result) - result = Node.new(:PSEUDO_CLASS, [val[1]]) + result = Node.new(:PSEUDO_CLASS, [val[1]]) result end .,., @@ -690,7 +690,7 @@ module_eval(<<'.,.,', 'nokogiri-css.y', 191) module_eval(<<'.,.,', 'nokogiri-css.y', 199) def _reduce_48(val, _values, result) result = Node.new(:COMBINATOR, val) - + result end .,., @@ -698,7 +698,7 @@ module_eval(<<'.,.,', 'nokogiri-css.y', 199) module_eval(<<'.,.,', 'nokogiri-css.y', 202) def _reduce_49(val, _values, result) result = Node.new(:COMBINATOR, val) - + result end .,., @@ -706,7 +706,7 @@ module_eval(<<'.,.,', 'nokogiri-css.y', 202) module_eval(<<'.,.,', 'nokogiri-css.y', 205) def _reduce_50(val, _values, result) result = Node.new(:COMBINATOR, val) - + result end .,., @@ -714,7 +714,7 @@ module_eval(<<'.,.,', 'nokogiri-css.y', 205) module_eval(<<'.,.,', 'nokogiri-css.y', 208) def _reduce_51(val, _values, result) result = Node.new(:COMBINATOR, val) - + result end .,., @@ -722,7 +722,7 @@ module_eval(<<'.,.,', 'nokogiri-css.y', 208) module_eval(<<'.,.,', 'nokogiri-css.y', 211) def _reduce_52(val, _values, result) result = Node.new(:COMBINATOR, val) - + result end .,., @@ -739,21 +739,21 @@ module_eval(<<'.,.,', 'nokogiri-css.y', 211) module_eval(<<'.,.,', 'nokogiri-css.y', 220) def _reduce_58(val, _values, result) - result = Node.new(:ID, val) + result = Node.new(:ID, val) result end .,., module_eval(<<'.,.,', 'nokogiri-css.y', 223) def _reduce_59(val, _values, result) - result = [val.first, val[1]] + result = [val.first, val[1]] result end .,., module_eval(<<'.,.,', 'nokogiri-css.y', 224) def _reduce_60(val, _values, result) - result = [val.first, val[1]] + result = [val.first, val[1]] result end .,., @@ -762,49 +762,49 @@ module_eval(<<'.,.,', 'nokogiri-css.y', 224) module_eval(<<'.,.,', 'nokogiri-css.y', 228) def _reduce_62(val, _values, result) - result = :equal + result = :equal result end .,., module_eval(<<'.,.,', 'nokogiri-css.y', 229) def _reduce_63(val, _values, result) - result = :prefix_match + result = :prefix_match result end .,., module_eval(<<'.,.,', 'nokogiri-css.y', 230) def _reduce_64(val, _values, result) - result = :suffix_match + result = :suffix_match result end .,., module_eval(<<'.,.,', 'nokogiri-css.y', 231) def _reduce_65(val, _values, result) - result = :substring_match + result = :substring_match result end .,., module_eval(<<'.,.,', 'nokogiri-css.y', 232) def _reduce_66(val, _values, result) - result = :not_equal + result = :not_equal result end .,., module_eval(<<'.,.,', 'nokogiri-css.y', 233) def _reduce_67(val, _values, result) - result = :includes + result = :includes result end .,., module_eval(<<'.,.,', 'nokogiri-css.y', 234) def _reduce_68(val, _values, result) - result = :dash_match + result = :dash_match result end .,., @@ -812,7 +812,7 @@ module_eval(<<'.,.,', 'nokogiri-css.y', 234) module_eval(<<'.,.,', 'nokogiri-css.y', 238) def _reduce_69(val, _values, result) result = Node.new(:NOT, [val[1]]) - + result end .,., diff --git a/test/racc/regress/opal b/test/racc/regress/opal index f1edff8c4d..cfe2d4d81a 100644 --- a/test/racc/regress/opal +++ b/test/racc/regress/opal @@ -3156,7 +3156,7 @@ Racc_debug_parser = false module_eval(<<'.,.,', 'opal.y', 70) def _reduce_2(val, _values, result) result = new_compstmt val[0] - + result end .,., @@ -3164,7 +3164,7 @@ module_eval(<<'.,.,', 'opal.y', 70) module_eval(<<'.,.,', 'opal.y', 75) def _reduce_3(val, _values, result) result = new_block - + result end .,., @@ -3172,7 +3172,7 @@ module_eval(<<'.,.,', 'opal.y', 75) module_eval(<<'.,.,', 'opal.y', 79) def _reduce_4(val, _values, result) result = new_block val[0] - + result end .,., @@ -3181,7 +3181,7 @@ module_eval(<<'.,.,', 'opal.y', 83) def _reduce_5(val, _values, result) val[0] << val[2] result = val[0] - + result end .,., @@ -3191,7 +3191,7 @@ module_eval(<<'.,.,', 'opal.y', 83) module_eval(<<'.,.,', 'opal.y', 90) def _reduce_7(val, _values, result) result = val[2] - + result end .,., @@ -3199,7 +3199,7 @@ module_eval(<<'.,.,', 'opal.y', 90) module_eval(<<'.,.,', 'opal.y', 95) def _reduce_8(val, _values, result) result = new_body(val[0], val[1], val[2], val[3]) - + result end .,., @@ -3207,7 +3207,7 @@ module_eval(<<'.,.,', 'opal.y', 95) module_eval(<<'.,.,', 'opal.y', 100) def _reduce_9(val, _values, result) result = new_compstmt val[0] - + result end .,., @@ -3215,7 +3215,7 @@ module_eval(<<'.,.,', 'opal.y', 100) module_eval(<<'.,.,', 'opal.y', 105) def _reduce_10(val, _values, result) result = new_block - + result end .,., @@ -3223,7 +3223,7 @@ module_eval(<<'.,.,', 'opal.y', 105) module_eval(<<'.,.,', 'opal.y', 109) def _reduce_11(val, _values, result) result = new_block val[0] - + result end .,., @@ -3232,7 +3232,7 @@ module_eval(<<'.,.,', 'opal.y', 113) def _reduce_12(val, _values, result) val[0] << val[2] result = val[0] - + result end .,., @@ -3240,7 +3240,7 @@ module_eval(<<'.,.,', 'opal.y', 113) module_eval(<<'.,.,', 'opal.y', 119) def _reduce_13(val, _values, result) lexer.lex_state = :expr_fname - + result end .,., @@ -3248,7 +3248,7 @@ module_eval(<<'.,.,', 'opal.y', 119) module_eval(<<'.,.,', 'opal.y', 123) def _reduce_14(val, _values, result) result = new_alias(val[0], val[1], val[3]) - + result end .,., @@ -3256,7 +3256,7 @@ module_eval(<<'.,.,', 'opal.y', 123) module_eval(<<'.,.,', 'opal.y', 127) def _reduce_15(val, _values, result) result = s(:valias, value(val[1]).to_sym, value(val[2]).to_sym) - + result end .,., @@ -3266,7 +3266,7 @@ module_eval(<<'.,.,', 'opal.y', 127) module_eval(<<'.,.,', 'opal.y', 132) def _reduce_17(val, _values, result) result = s(:valias, value(val[1]).to_sym, value(val[2]).to_sym) - + result end .,., @@ -3274,7 +3274,7 @@ module_eval(<<'.,.,', 'opal.y', 132) module_eval(<<'.,.,', 'opal.y', 136) def _reduce_18(val, _values, result) result = val[1] - + result end .,., @@ -3282,7 +3282,7 @@ module_eval(<<'.,.,', 'opal.y', 136) module_eval(<<'.,.,', 'opal.y', 140) def _reduce_19(val, _values, result) result = new_if(val[1], val[2], val[0], nil) - + result end .,., @@ -3290,7 +3290,7 @@ module_eval(<<'.,.,', 'opal.y', 140) module_eval(<<'.,.,', 'opal.y', 144) def _reduce_20(val, _values, result) result = new_if(val[1], val[2], nil, val[0]) - + result end .,., @@ -3298,7 +3298,7 @@ module_eval(<<'.,.,', 'opal.y', 144) module_eval(<<'.,.,', 'opal.y', 148) def _reduce_21(val, _values, result) result = new_while(val[1], val[2], val[0]) - + result end .,., @@ -3306,7 +3306,7 @@ module_eval(<<'.,.,', 'opal.y', 148) module_eval(<<'.,.,', 'opal.y', 152) def _reduce_22(val, _values, result) result = new_until(val[1], val[2], val[0]) - + result end .,., @@ -3314,7 +3314,7 @@ module_eval(<<'.,.,', 'opal.y', 152) module_eval(<<'.,.,', 'opal.y', 156) def _reduce_23(val, _values, result) result = new_rescue_mod(val[1], val[0], val[2]) - + result end .,., @@ -3324,7 +3324,7 @@ module_eval(<<'.,.,', 'opal.y', 156) module_eval(<<'.,.,', 'opal.y', 161) def _reduce_25(val, _values, result) result = new_assign(val[0], val[1], val[2]) - + result end .,., @@ -3332,7 +3332,7 @@ module_eval(<<'.,.,', 'opal.y', 161) module_eval(<<'.,.,', 'opal.y', 165) def _reduce_26(val, _values, result) result = s(:masgn, val[0], s(:to_ary, val[2])) - + result end .,., @@ -3340,7 +3340,7 @@ module_eval(<<'.,.,', 'opal.y', 165) module_eval(<<'.,.,', 'opal.y', 169) def _reduce_27(val, _values, result) result = new_op_asgn val[1], val[0], val[2] - + result end .,., @@ -3352,7 +3352,7 @@ module_eval(<<'.,.,', 'opal.y', 169) module_eval(<<'.,.,', 'opal.y', 175) def _reduce_30(val, _values, result) result = s(:op_asgn2, val[0], op_to_setter(val[2]), value(val[3]).to_sym, val[4]) - + result end .,., @@ -3366,7 +3366,7 @@ module_eval(<<'.,.,', 'opal.y', 175) module_eval(<<'.,.,', 'opal.y', 182) def _reduce_34(val, _values, result) result = new_assign val[0], val[1], s(:svalue, val[2]) - + result end .,., @@ -3374,7 +3374,7 @@ module_eval(<<'.,.,', 'opal.y', 182) module_eval(<<'.,.,', 'opal.y', 186) def _reduce_35(val, _values, result) result = s(:masgn, val[0], s(:to_ary, val[2])) - + result end .,., @@ -3382,7 +3382,7 @@ module_eval(<<'.,.,', 'opal.y', 186) module_eval(<<'.,.,', 'opal.y', 190) def _reduce_36(val, _values, result) result = s(:masgn, val[0], val[2]) - + result end .,., @@ -3394,7 +3394,7 @@ module_eval(<<'.,.,', 'opal.y', 190) module_eval(<<'.,.,', 'opal.y', 197) def _reduce_39(val, _values, result) result = s(:and, val[0], val[2]) - + result end .,., @@ -3402,7 +3402,7 @@ module_eval(<<'.,.,', 'opal.y', 197) module_eval(<<'.,.,', 'opal.y', 201) def _reduce_40(val, _values, result) result = s(:or, val[0], val[2]) - + result end .,., @@ -3410,7 +3410,7 @@ module_eval(<<'.,.,', 'opal.y', 201) module_eval(<<'.,.,', 'opal.y', 205) def _reduce_41(val, _values, result) result = new_unary_call(['!', []], val[1]) - + result end .,., @@ -3418,7 +3418,7 @@ module_eval(<<'.,.,', 'opal.y', 205) module_eval(<<'.,.,', 'opal.y', 209) def _reduce_42(val, _values, result) result = new_unary_call(val[0], val[1]) - + result end .,., @@ -3434,7 +3434,7 @@ module_eval(<<'.,.,', 'opal.y', 209) module_eval(<<'.,.,', 'opal.y', 219) def _reduce_47(val, _values, result) result = new_return(val[0], val[1]) - + result end .,., @@ -3442,7 +3442,7 @@ module_eval(<<'.,.,', 'opal.y', 219) module_eval(<<'.,.,', 'opal.y', 223) def _reduce_48(val, _values, result) result = new_break(val[0], val[1]) - + result end .,., @@ -3450,7 +3450,7 @@ module_eval(<<'.,.,', 'opal.y', 223) module_eval(<<'.,.,', 'opal.y', 227) def _reduce_49(val, _values, result) result = new_next(val[0], val[1]) - + result end .,., @@ -3468,7 +3468,7 @@ module_eval(<<'.,.,', 'opal.y', 227) module_eval(<<'.,.,', 'opal.y', 239) def _reduce_55(val, _values, result) result = new_call(nil, val[0], val[1]) - + result end .,., @@ -3478,7 +3478,7 @@ module_eval(<<'.,.,', 'opal.y', 239) module_eval(<<'.,.,', 'opal.y', 244) def _reduce_57(val, _values, result) result = new_js_call(val[0], val[2], val[3]) - + result end .,., @@ -3488,7 +3488,7 @@ module_eval(<<'.,.,', 'opal.y', 244) module_eval(<<'.,.,', 'opal.y', 249) def _reduce_59(val, _values, result) result = new_call(val[0], val[2], val[3]) - + result end .,., @@ -3498,7 +3498,7 @@ module_eval(<<'.,.,', 'opal.y', 249) module_eval(<<'.,.,', 'opal.y', 254) def _reduce_61(val, _values, result) result = new_call(val[0], val[2], val[3]) - + result end .,., @@ -3508,7 +3508,7 @@ module_eval(<<'.,.,', 'opal.y', 254) module_eval(<<'.,.,', 'opal.y', 259) def _reduce_63(val, _values, result) result = new_super(val[0], val[1]) - + result end .,., @@ -3516,7 +3516,7 @@ module_eval(<<'.,.,', 'opal.y', 259) module_eval(<<'.,.,', 'opal.y', 263) def _reduce_64(val, _values, result) result = new_yield val[1] - + result end .,., @@ -3524,7 +3524,7 @@ module_eval(<<'.,.,', 'opal.y', 263) module_eval(<<'.,.,', 'opal.y', 268) def _reduce_65(val, _values, result) result = val[0] - + result end .,., @@ -3532,7 +3532,7 @@ module_eval(<<'.,.,', 'opal.y', 268) module_eval(<<'.,.,', 'opal.y', 272) def _reduce_66(val, _values, result) result = val[1] - + result end .,., @@ -3540,7 +3540,7 @@ module_eval(<<'.,.,', 'opal.y', 272) module_eval(<<'.,.,', 'opal.y', 277) def _reduce_67(val, _values, result) result = val[0] - + result end .,., @@ -3548,7 +3548,7 @@ module_eval(<<'.,.,', 'opal.y', 277) module_eval(<<'.,.,', 'opal.y', 281) def _reduce_68(val, _values, result) result = val[1] - + result end .,., @@ -3556,7 +3556,7 @@ module_eval(<<'.,.,', 'opal.y', 281) module_eval(<<'.,.,', 'opal.y', 286) def _reduce_69(val, _values, result) result = val[0] - + result end .,., @@ -3564,7 +3564,7 @@ module_eval(<<'.,.,', 'opal.y', 286) module_eval(<<'.,.,', 'opal.y', 290) def _reduce_70(val, _values, result) result = val[0] << val[1] - + result end .,., @@ -3572,7 +3572,7 @@ module_eval(<<'.,.,', 'opal.y', 290) module_eval(<<'.,.,', 'opal.y', 294) def _reduce_71(val, _values, result) result = val[0] << s(:splat, val[2]) - + result end .,., @@ -3582,7 +3582,7 @@ module_eval(<<'.,.,', 'opal.y', 294) module_eval(<<'.,.,', 'opal.y', 299) def _reduce_73(val, _values, result) result = val[0] << s(:splat) - + result end .,., @@ -3592,7 +3592,7 @@ module_eval(<<'.,.,', 'opal.y', 299) module_eval(<<'.,.,', 'opal.y', 304) def _reduce_75(val, _values, result) result = s(:array, s(:splat, val[1])) - + result end .,., @@ -3600,7 +3600,7 @@ module_eval(<<'.,.,', 'opal.y', 304) module_eval(<<'.,.,', 'opal.y', 308) def _reduce_76(val, _values, result) result = s(:array, s(:splat)) - + result end .,., @@ -3610,7 +3610,7 @@ module_eval(<<'.,.,', 'opal.y', 308) module_eval(<<'.,.,', 'opal.y', 314) def _reduce_78(val, _values, result) result = val[0] - + result end .,., @@ -3618,7 +3618,7 @@ module_eval(<<'.,.,', 'opal.y', 314) module_eval(<<'.,.,', 'opal.y', 318) def _reduce_79(val, _values, result) result = val[1] - + result end .,., @@ -3626,7 +3626,7 @@ module_eval(<<'.,.,', 'opal.y', 318) module_eval(<<'.,.,', 'opal.y', 323) def _reduce_80(val, _values, result) result = s(:array, val[0]) - + result end .,., @@ -3634,7 +3634,7 @@ module_eval(<<'.,.,', 'opal.y', 323) module_eval(<<'.,.,', 'opal.y', 327) def _reduce_81(val, _values, result) result = val[0] << val[1] - + result end .,., @@ -3646,7 +3646,7 @@ module_eval(<<'.,.,', 'opal.y', 327) module_eval(<<'.,.,', 'opal.y', 335) def _reduce_84(val, _values, result) result = new_assignable val[0] - + result end .,., @@ -3655,7 +3655,7 @@ module_eval(<<'.,.,', 'opal.y', 339) def _reduce_85(val, _values, result) args = val[2] ? val[2] : [] result = s(:attrasgn, val[0], :[]=, s(:arglist, *args)) - + result end .,., @@ -3663,7 +3663,7 @@ module_eval(<<'.,.,', 'opal.y', 339) module_eval(<<'.,.,', 'opal.y', 344) def _reduce_86(val, _values, result) result = new_call val[0], val[2], [] - + result end .,., @@ -3681,7 +3681,7 @@ module_eval(<<'.,.,', 'opal.y', 344) module_eval(<<'.,.,', 'opal.y', 354) def _reduce_92(val, _values, result) result = new_assignable val[0] - + result end .,., @@ -3689,7 +3689,7 @@ module_eval(<<'.,.,', 'opal.y', 354) module_eval(<<'.,.,', 'opal.y', 358) def _reduce_93(val, _values, result) result = new_js_attrasgn(val[0], val[2]) - + result end .,., @@ -3697,7 +3697,7 @@ module_eval(<<'.,.,', 'opal.y', 358) module_eval(<<'.,.,', 'opal.y', 362) def _reduce_94(val, _values, result) result = new_attrasgn(val[0], :[]=, val[2]) - + result end .,., @@ -3705,7 +3705,7 @@ module_eval(<<'.,.,', 'opal.y', 362) module_eval(<<'.,.,', 'opal.y', 366) def _reduce_95(val, _values, result) result = new_attrasgn(val[0], op_to_setter(val[2])) - + result end .,., @@ -3713,7 +3713,7 @@ module_eval(<<'.,.,', 'opal.y', 366) module_eval(<<'.,.,', 'opal.y', 370) def _reduce_96(val, _values, result) result = new_attrasgn(val[0], op_to_setter(val[2])) - + result end .,., @@ -3721,7 +3721,7 @@ module_eval(<<'.,.,', 'opal.y', 370) module_eval(<<'.,.,', 'opal.y', 374) def _reduce_97(val, _values, result) result = new_attrasgn(val[0], op_to_setter(val[2])) - + result end .,., @@ -3729,7 +3729,7 @@ module_eval(<<'.,.,', 'opal.y', 374) module_eval(<<'.,.,', 'opal.y', 378) def _reduce_98(val, _values, result) result = new_colon2(val[0], val[1], val[2]) - + result end .,., @@ -3737,7 +3737,7 @@ module_eval(<<'.,.,', 'opal.y', 378) module_eval(<<'.,.,', 'opal.y', 382) def _reduce_99(val, _values, result) result = new_colon3(val[0], val[1]) - + result end .,., @@ -3749,7 +3749,7 @@ module_eval(<<'.,.,', 'opal.y', 382) module_eval(<<'.,.,', 'opal.y', 390) def _reduce_102(val, _values, result) result = new_colon3(val[0], val[1]) - + result end .,., @@ -3757,7 +3757,7 @@ module_eval(<<'.,.,', 'opal.y', 390) module_eval(<<'.,.,', 'opal.y', 394) def _reduce_103(val, _values, result) result = new_const(val[0]) - + result end .,., @@ -3765,7 +3765,7 @@ module_eval(<<'.,.,', 'opal.y', 394) module_eval(<<'.,.,', 'opal.y', 398) def _reduce_104(val, _values, result) result = new_colon2(val[0], val[1], val[2]) - + result end .,., @@ -3780,7 +3780,7 @@ module_eval(<<'.,.,', 'opal.y', 406) def _reduce_108(val, _values, result) lexer.lex_state = :expr_end result = val[0] - + result end .,., @@ -3789,7 +3789,7 @@ module_eval(<<'.,.,', 'opal.y', 411) def _reduce_109(val, _values, result) lexer.lex_state = :expr_end result = val[0] - + result end .,., @@ -3797,7 +3797,7 @@ module_eval(<<'.,.,', 'opal.y', 411) module_eval(<<'.,.,', 'opal.y', 417) def _reduce_110(val, _values, result) result = new_sym(val[0]) - + result end .,., @@ -3807,7 +3807,7 @@ module_eval(<<'.,.,', 'opal.y', 417) module_eval(<<'.,.,', 'opal.y', 423) def _reduce_112(val, _values, result) result = s(:undef, val[0]) - + result end .,., @@ -3815,7 +3815,7 @@ module_eval(<<'.,.,', 'opal.y', 423) module_eval(<<'.,.,', 'opal.y', 427) def _reduce_113(val, _values, result) result = val[0] << val[2] - + result end .,., @@ -3971,7 +3971,7 @@ module_eval(<<'.,.,', 'opal.y', 427) module_eval(<<'.,.,', 'opal.y', 447) def _reduce_188(val, _values, result) result = new_assign(val[0], val[1], val[2]) - + result end .,., @@ -3979,7 +3979,7 @@ module_eval(<<'.,.,', 'opal.y', 447) module_eval(<<'.,.,', 'opal.y', 451) def _reduce_189(val, _values, result) result = new_assign val[0], val[1], s(:rescue_mod, val[2], val[4]) - + result end .,., @@ -3987,7 +3987,7 @@ module_eval(<<'.,.,', 'opal.y', 451) module_eval(<<'.,.,', 'opal.y', 455) def _reduce_190(val, _values, result) result = new_op_asgn val[1], val[0], val[2] - + result end .,., @@ -3995,7 +3995,7 @@ module_eval(<<'.,.,', 'opal.y', 455) module_eval(<<'.,.,', 'opal.y', 459) def _reduce_191(val, _values, result) result = new_op_asgn1(val[0], val[2], val[4], val[5]) - + result end .,., @@ -4003,7 +4003,7 @@ module_eval(<<'.,.,', 'opal.y', 459) module_eval(<<'.,.,', 'opal.y', 463) def _reduce_192(val, _values, result) raise ".JS[...] #{val[4]} is not supported" - + result end .,., @@ -4011,7 +4011,7 @@ module_eval(<<'.,.,', 'opal.y', 463) module_eval(<<'.,.,', 'opal.y', 467) def _reduce_193(val, _values, result) result = s(:op_asgn2, val[0], op_to_setter(val[2]), value(val[3]).to_sym, val[4]) - + result end .,., @@ -4029,7 +4029,7 @@ module_eval(<<'.,.,', 'opal.y', 467) module_eval(<<'.,.,', 'opal.y', 476) def _reduce_199(val, _values, result) result = new_irange(val[0], val[1], val[2]) - + result end .,., @@ -4037,7 +4037,7 @@ module_eval(<<'.,.,', 'opal.y', 476) module_eval(<<'.,.,', 'opal.y', 480) def _reduce_200(val, _values, result) result = new_erange(val[0], val[1], val[2]) - + result end .,., @@ -4045,7 +4045,7 @@ module_eval(<<'.,.,', 'opal.y', 480) module_eval(<<'.,.,', 'opal.y', 484) def _reduce_201(val, _values, result) result = new_binary_call(val[0], val[1], val[2]) - + result end .,., @@ -4053,7 +4053,7 @@ module_eval(<<'.,.,', 'opal.y', 484) module_eval(<<'.,.,', 'opal.y', 488) def _reduce_202(val, _values, result) result = new_binary_call(val[0], val[1], val[2]) - + result end .,., @@ -4061,7 +4061,7 @@ module_eval(<<'.,.,', 'opal.y', 488) module_eval(<<'.,.,', 'opal.y', 492) def _reduce_203(val, _values, result) result = new_binary_call(val[0], val[1], val[2]) - + result end .,., @@ -4069,7 +4069,7 @@ module_eval(<<'.,.,', 'opal.y', 492) module_eval(<<'.,.,', 'opal.y', 496) def _reduce_204(val, _values, result) result = new_binary_call(val[0], val[1], val[2]) - + result end .,., @@ -4077,7 +4077,7 @@ module_eval(<<'.,.,', 'opal.y', 496) module_eval(<<'.,.,', 'opal.y', 500) def _reduce_205(val, _values, result) result = new_binary_call(val[0], val[1], val[2]) - + result end .,., @@ -4085,7 +4085,7 @@ module_eval(<<'.,.,', 'opal.y', 500) module_eval(<<'.,.,', 'opal.y', 504) def _reduce_206(val, _values, result) result = new_binary_call(val[0], val[1], val[2]) - + result end .,., @@ -4093,7 +4093,7 @@ module_eval(<<'.,.,', 'opal.y', 504) module_eval(<<'.,.,', 'opal.y', 508) def _reduce_207(val, _values, result) result = new_call new_binary_call(new_int(val[1]), val[2], val[3]), [:"-@", []], [] - + result end .,., @@ -4101,7 +4101,7 @@ module_eval(<<'.,.,', 'opal.y', 508) module_eval(<<'.,.,', 'opal.y', 512) def _reduce_208(val, _values, result) result = new_call new_binary_call(new_float(val[1]), val[2], val[3]), [:"-@", []], [] - + result end .,., @@ -4112,7 +4112,7 @@ module_eval(<<'.,.,', 'opal.y', 516) if [:int, :float].include? val[1].type result = val[1] end - + result end .,., @@ -4127,7 +4127,7 @@ module_eval(<<'.,.,', 'opal.y', 523) val[1][1] = -val[1][1].to_f result = val[1] end - + result end .,., @@ -4135,7 +4135,7 @@ module_eval(<<'.,.,', 'opal.y', 523) module_eval(<<'.,.,', 'opal.y', 534) def _reduce_211(val, _values, result) result = new_binary_call(val[0], val[1], val[2]) - + result end .,., @@ -4143,7 +4143,7 @@ module_eval(<<'.,.,', 'opal.y', 534) module_eval(<<'.,.,', 'opal.y', 538) def _reduce_212(val, _values, result) result = new_binary_call(val[0], val[1], val[2]) - + result end .,., @@ -4151,7 +4151,7 @@ module_eval(<<'.,.,', 'opal.y', 538) module_eval(<<'.,.,', 'opal.y', 542) def _reduce_213(val, _values, result) result = new_binary_call(val[0], val[1], val[2]) - + result end .,., @@ -4159,7 +4159,7 @@ module_eval(<<'.,.,', 'opal.y', 542) module_eval(<<'.,.,', 'opal.y', 546) def _reduce_214(val, _values, result) result = new_binary_call(val[0], val[1], val[2]) - + result end .,., @@ -4167,7 +4167,7 @@ module_eval(<<'.,.,', 'opal.y', 546) module_eval(<<'.,.,', 'opal.y', 550) def _reduce_215(val, _values, result) result = new_binary_call(val[0], val[1], val[2]) - + result end .,., @@ -4175,7 +4175,7 @@ module_eval(<<'.,.,', 'opal.y', 550) module_eval(<<'.,.,', 'opal.y', 554) def _reduce_216(val, _values, result) result = new_binary_call(val[0], val[1], val[2]) - + result end .,., @@ -4183,7 +4183,7 @@ module_eval(<<'.,.,', 'opal.y', 554) module_eval(<<'.,.,', 'opal.y', 558) def _reduce_217(val, _values, result) result = new_binary_call(val[0], val[1], val[2]) - + result end .,., @@ -4191,7 +4191,7 @@ module_eval(<<'.,.,', 'opal.y', 558) module_eval(<<'.,.,', 'opal.y', 562) def _reduce_218(val, _values, result) result = new_binary_call(val[0], val[1], val[2]) - + result end .,., @@ -4199,7 +4199,7 @@ module_eval(<<'.,.,', 'opal.y', 562) module_eval(<<'.,.,', 'opal.y', 566) def _reduce_219(val, _values, result) result = new_binary_call(val[0], val[1], val[2]) - + result end .,., @@ -4207,7 +4207,7 @@ module_eval(<<'.,.,', 'opal.y', 566) module_eval(<<'.,.,', 'opal.y', 570) def _reduce_220(val, _values, result) result = new_binary_call(val[0], val[1], val[2]) - + result end .,., @@ -4215,7 +4215,7 @@ module_eval(<<'.,.,', 'opal.y', 570) module_eval(<<'.,.,', 'opal.y', 574) def _reduce_221(val, _values, result) result = new_binary_call(val[0], val[1], val[2]) - + result end .,., @@ -4223,7 +4223,7 @@ module_eval(<<'.,.,', 'opal.y', 574) module_eval(<<'.,.,', 'opal.y', 578) def _reduce_222(val, _values, result) result = new_binary_call(val[0], val[1], val[2]) - + result end .,., @@ -4231,7 +4231,7 @@ module_eval(<<'.,.,', 'opal.y', 578) module_eval(<<'.,.,', 'opal.y', 582) def _reduce_223(val, _values, result) result = new_binary_call(val[0], val[1], val[2]) - + result end .,., @@ -4239,7 +4239,7 @@ module_eval(<<'.,.,', 'opal.y', 582) module_eval(<<'.,.,', 'opal.y', 586) def _reduce_224(val, _values, result) result = new_unary_call(val[0], val[1]) - + result end .,., @@ -4247,7 +4247,7 @@ module_eval(<<'.,.,', 'opal.y', 586) module_eval(<<'.,.,', 'opal.y', 590) def _reduce_225(val, _values, result) result = new_unary_call(val[0], val[1]) - + result end .,., @@ -4255,7 +4255,7 @@ module_eval(<<'.,.,', 'opal.y', 590) module_eval(<<'.,.,', 'opal.y', 594) def _reduce_226(val, _values, result) result = new_binary_call(val[0], val[1], val[2]) - + result end .,., @@ -4263,7 +4263,7 @@ module_eval(<<'.,.,', 'opal.y', 594) module_eval(<<'.,.,', 'opal.y', 598) def _reduce_227(val, _values, result) result = new_binary_call(val[0], val[1], val[2]) - + result end .,., @@ -4271,7 +4271,7 @@ module_eval(<<'.,.,', 'opal.y', 598) module_eval(<<'.,.,', 'opal.y', 602) def _reduce_228(val, _values, result) result = new_and(val[0], val[1], val[2]) - + result end .,., @@ -4279,7 +4279,7 @@ module_eval(<<'.,.,', 'opal.y', 602) module_eval(<<'.,.,', 'opal.y', 606) def _reduce_229(val, _values, result) result = new_or(val[0], val[1], val[2]) - + result end .,., @@ -4287,7 +4287,7 @@ module_eval(<<'.,.,', 'opal.y', 606) module_eval(<<'.,.,', 'opal.y', 610) def _reduce_230(val, _values, result) result = s(:defined, val[2]) - + result end .,., @@ -4295,7 +4295,7 @@ module_eval(<<'.,.,', 'opal.y', 610) module_eval(<<'.,.,', 'opal.y', 614) def _reduce_231(val, _values, result) result = new_if(val[1], val[0], val[2], val[4]) - + result end .,., @@ -4307,7 +4307,7 @@ module_eval(<<'.,.,', 'opal.y', 614) module_eval(<<'.,.,', 'opal.y', 622) def _reduce_234(val, _values, result) result = nil - + result end .,., @@ -4315,7 +4315,7 @@ module_eval(<<'.,.,', 'opal.y', 622) module_eval(<<'.,.,', 'opal.y', 626) def _reduce_235(val, _values, result) result = [val[0]] - + result end .,., @@ -4323,7 +4323,7 @@ module_eval(<<'.,.,', 'opal.y', 626) module_eval(<<'.,.,', 'opal.y', 630) def _reduce_236(val, _values, result) result = val[0] - + result end .,., @@ -4332,7 +4332,7 @@ module_eval(<<'.,.,', 'opal.y', 634) def _reduce_237(val, _values, result) val[0] << s(:hash, *val[2]) result = val[0] - + result end .,., @@ -4340,7 +4340,7 @@ module_eval(<<'.,.,', 'opal.y', 634) module_eval(<<'.,.,', 'opal.y', 639) def _reduce_238(val, _values, result) result = [s(:hash, *val[0])] - + result end .,., @@ -4348,7 +4348,7 @@ module_eval(<<'.,.,', 'opal.y', 639) module_eval(<<'.,.,', 'opal.y', 644) def _reduce_239(val, _values, result) result = val[1] - + result end .,., @@ -4358,7 +4358,7 @@ module_eval(<<'.,.,', 'opal.y', 644) module_eval(<<'.,.,', 'opal.y', 651) def _reduce_241(val, _values, result) result = [] - + result end .,., @@ -4368,7 +4368,7 @@ module_eval(<<'.,.,', 'opal.y', 651) module_eval(<<'.,.,', 'opal.y', 657) def _reduce_243(val, _values, result) result = [] - + result end .,., @@ -4378,7 +4378,7 @@ module_eval(<<'.,.,', 'opal.y', 657) module_eval(<<'.,.,', 'opal.y', 662) def _reduce_245(val, _values, result) result = val[0] - + result end .,., @@ -4387,7 +4387,7 @@ module_eval(<<'.,.,', 'opal.y', 666) def _reduce_246(val, _values, result) result = val[0] result << new_hash(nil, val[2], nil) - + result end .,., @@ -4395,7 +4395,7 @@ module_eval(<<'.,.,', 'opal.y', 666) module_eval(<<'.,.,', 'opal.y', 671) def _reduce_247(val, _values, result) result = [new_hash(nil, val[0], nil)] - + result end .,., @@ -4403,7 +4403,7 @@ module_eval(<<'.,.,', 'opal.y', 671) module_eval(<<'.,.,', 'opal.y', 676) def _reduce_248(val, _values, result) result = [val[0]] - + result end .,., @@ -4412,7 +4412,7 @@ module_eval(<<'.,.,', 'opal.y', 680) def _reduce_249(val, _values, result) result = val[0] add_block_pass val[0], val[1] - + result end .,., @@ -4421,7 +4421,7 @@ module_eval(<<'.,.,', 'opal.y', 685) def _reduce_250(val, _values, result) result = [new_hash(nil, val[0], nil)] add_block_pass result, val[1] - + result end .,., @@ -4431,7 +4431,7 @@ module_eval(<<'.,.,', 'opal.y', 690) result = val[0] result << new_hash(nil, val[2], nil) result << val[3] if val[3] - + result end .,., @@ -4440,7 +4440,7 @@ module_eval(<<'.,.,', 'opal.y', 696) def _reduce_252(val, _values, result) result = [] add_block_pass result, val[0] - + result end .,., @@ -4452,7 +4452,7 @@ module_eval(<<'.,.,', 'opal.y', 696) module_eval(<<'.,.,', 'opal.y', 704) def _reduce_255(val, _values, result) lexer.cmdarg_push 1 - + result end .,., @@ -4461,7 +4461,7 @@ module_eval(<<'.,.,', 'opal.y', 708) def _reduce_256(val, _values, result) lexer.cmdarg_pop result = val[1] - + result end .,., @@ -4471,7 +4471,7 @@ module_eval(<<'.,.,', 'opal.y', 708) module_eval(<<'.,.,', 'opal.y', 715) def _reduce_258(val, _values, result) result = nil - + result end .,., @@ -4479,7 +4479,7 @@ module_eval(<<'.,.,', 'opal.y', 715) module_eval(<<'.,.,', 'opal.y', 719) def _reduce_259(val, _values, result) result = val[1] - + result end .,., @@ -4487,7 +4487,7 @@ module_eval(<<'.,.,', 'opal.y', 719) module_eval(<<'.,.,', 'opal.y', 724) def _reduce_260(val, _values, result) result = new_block_pass(val[0], val[1]) - + result end .,., @@ -4495,7 +4495,7 @@ module_eval(<<'.,.,', 'opal.y', 724) module_eval(<<'.,.,', 'opal.y', 729) def _reduce_261(val, _values, result) result = val[1] - + result end .,., @@ -4503,7 +4503,7 @@ module_eval(<<'.,.,', 'opal.y', 729) module_eval(<<'.,.,', 'opal.y', 733) def _reduce_262(val, _values, result) result = nil - + result end .,., @@ -4511,7 +4511,7 @@ module_eval(<<'.,.,', 'opal.y', 733) module_eval(<<'.,.,', 'opal.y', 738) def _reduce_263(val, _values, result) result = [val[0]] - + result end .,., @@ -4519,7 +4519,7 @@ module_eval(<<'.,.,', 'opal.y', 738) module_eval(<<'.,.,', 'opal.y', 742) def _reduce_264(val, _values, result) result = [new_splat(val[0], val[1])] - + result end .,., @@ -4527,7 +4527,7 @@ module_eval(<<'.,.,', 'opal.y', 742) module_eval(<<'.,.,', 'opal.y', 746) def _reduce_265(val, _values, result) result = val[0] << val[2] - + result end .,., @@ -4535,7 +4535,7 @@ module_eval(<<'.,.,', 'opal.y', 746) module_eval(<<'.,.,', 'opal.y', 750) def _reduce_266(val, _values, result) result = val[0] << new_splat(val[2], val[3]) - + result end .,., @@ -4544,7 +4544,7 @@ module_eval(<<'.,.,', 'opal.y', 755) def _reduce_267(val, _values, result) val[0] << val[2] result = s(:array, *val[0]) - + result end .,., @@ -4553,7 +4553,7 @@ module_eval(<<'.,.,', 'opal.y', 760) def _reduce_268(val, _values, result) val[0] << s(:splat, val[3]) result = s(:array, *val[0]) - + result end .,., @@ -4561,7 +4561,7 @@ module_eval(<<'.,.,', 'opal.y', 760) module_eval(<<'.,.,', 'opal.y', 765) def _reduce_269(val, _values, result) result = s(:splat, val[1]) - + result end .,., @@ -4587,7 +4587,7 @@ module_eval(<<'.,.,', 'opal.y', 765) module_eval(<<'.,.,', 'opal.y', 779) def _reduce_279(val, _values, result) result = lexer.line - + result end .,., @@ -4595,7 +4595,7 @@ module_eval(<<'.,.,', 'opal.y', 779) module_eval(<<'.,.,', 'opal.y', 783) def _reduce_280(val, _values, result) result = s(:begin, val[2]) - + result end .,., @@ -4603,7 +4603,7 @@ module_eval(<<'.,.,', 'opal.y', 783) module_eval(<<'.,.,', 'opal.y', 787) def _reduce_281(val, _values, result) result = val[1] - + result end .,., @@ -4611,7 +4611,7 @@ module_eval(<<'.,.,', 'opal.y', 787) module_eval(<<'.,.,', 'opal.y', 791) def _reduce_282(val, _values, result) result = new_paren(val[0], val[1], val[2]) - + result end .,., @@ -4619,7 +4619,7 @@ module_eval(<<'.,.,', 'opal.y', 791) module_eval(<<'.,.,', 'opal.y', 795) def _reduce_283(val, _values, result) result = new_colon2(val[0], val[1], val[2]) - + result end .,., @@ -4627,7 +4627,7 @@ module_eval(<<'.,.,', 'opal.y', 795) module_eval(<<'.,.,', 'opal.y', 799) def _reduce_284(val, _values, result) result = new_colon3(val[0], val[1]) - + result end .,., @@ -4635,7 +4635,7 @@ module_eval(<<'.,.,', 'opal.y', 799) module_eval(<<'.,.,', 'opal.y', 803) def _reduce_285(val, _values, result) result = new_call val[0], [:[], []], val[2] - + result end .,., @@ -4643,7 +4643,7 @@ module_eval(<<'.,.,', 'opal.y', 803) module_eval(<<'.,.,', 'opal.y', 807) def _reduce_286(val, _values, result) result = new_js_call val[0], [:[], []], val[2] - + result end .,., @@ -4651,7 +4651,7 @@ module_eval(<<'.,.,', 'opal.y', 807) module_eval(<<'.,.,', 'opal.y', 811) def _reduce_287(val, _values, result) result = new_array(val[0], val[1], val[2]) - + result end .,., @@ -4659,7 +4659,7 @@ module_eval(<<'.,.,', 'opal.y', 811) module_eval(<<'.,.,', 'opal.y', 815) def _reduce_288(val, _values, result) result = new_hash(val[0], val[1], val[2]) - + result end .,., @@ -4667,7 +4667,7 @@ module_eval(<<'.,.,', 'opal.y', 815) module_eval(<<'.,.,', 'opal.y', 819) def _reduce_289(val, _values, result) result = new_return(val[0]) - + result end .,., @@ -4675,7 +4675,7 @@ module_eval(<<'.,.,', 'opal.y', 819) module_eval(<<'.,.,', 'opal.y', 823) def _reduce_290(val, _values, result) result = new_yield val[2] - + result end .,., @@ -4683,7 +4683,7 @@ module_eval(<<'.,.,', 'opal.y', 823) module_eval(<<'.,.,', 'opal.y', 827) def _reduce_291(val, _values, result) result = s(:yield) - + result end .,., @@ -4691,7 +4691,7 @@ module_eval(<<'.,.,', 'opal.y', 827) module_eval(<<'.,.,', 'opal.y', 831) def _reduce_292(val, _values, result) result = s(:yield) - + result end .,., @@ -4699,7 +4699,7 @@ module_eval(<<'.,.,', 'opal.y', 831) module_eval(<<'.,.,', 'opal.y', 835) def _reduce_293(val, _values, result) result = s(:defined, val[3]) - + result end .,., @@ -4707,7 +4707,7 @@ module_eval(<<'.,.,', 'opal.y', 835) module_eval(<<'.,.,', 'opal.y', 839) def _reduce_294(val, _values, result) result = new_unary_call(['!', []], val[2]) - + result end .,., @@ -4715,7 +4715,7 @@ module_eval(<<'.,.,', 'opal.y', 839) module_eval(<<'.,.,', 'opal.y', 843) def _reduce_295(val, _values, result) result = new_unary_call(['!', []], new_nil(val[0])) - + result end .,., @@ -4724,7 +4724,7 @@ module_eval(<<'.,.,', 'opal.y', 847) def _reduce_296(val, _values, result) result = new_call(nil, val[0], []) result << val[1] - + result end .,., @@ -4735,7 +4735,7 @@ module_eval(<<'.,.,', 'opal.y', 853) def _reduce_298(val, _values, result) val[0] << val[1] result = val[0] - + result end .,., @@ -4743,7 +4743,7 @@ module_eval(<<'.,.,', 'opal.y', 853) module_eval(<<'.,.,', 'opal.y', 858) def _reduce_299(val, _values, result) result = val[1] - + result end .,., @@ -4751,7 +4751,7 @@ module_eval(<<'.,.,', 'opal.y', 858) module_eval(<<'.,.,', 'opal.y', 862) def _reduce_300(val, _values, result) result = new_if(val[0], val[1], val[3], val[4]) - + result end .,., @@ -4759,7 +4759,7 @@ module_eval(<<'.,.,', 'opal.y', 862) module_eval(<<'.,.,', 'opal.y', 866) def _reduce_301(val, _values, result) result = new_if(val[0], val[1], val[4], val[3]) - + result end .,., @@ -4768,7 +4768,7 @@ module_eval(<<'.,.,', 'opal.y', 870) def _reduce_302(val, _values, result) lexer.cond_push 1 result = lexer.line - + result end .,., @@ -4776,7 +4776,7 @@ module_eval(<<'.,.,', 'opal.y', 870) module_eval(<<'.,.,', 'opal.y', 875) def _reduce_303(val, _values, result) lexer.cond_pop - + result end .,., @@ -4784,7 +4784,7 @@ module_eval(<<'.,.,', 'opal.y', 875) module_eval(<<'.,.,', 'opal.y', 879) def _reduce_304(val, _values, result) result = s(:while, val[2], val[5]) - + result end .,., @@ -4793,7 +4793,7 @@ module_eval(<<'.,.,', 'opal.y', 883) def _reduce_305(val, _values, result) lexer.cond_push 1 result = lexer.line - + result end .,., @@ -4801,7 +4801,7 @@ module_eval(<<'.,.,', 'opal.y', 883) module_eval(<<'.,.,', 'opal.y', 888) def _reduce_306(val, _values, result) lexer.cond_pop - + result end .,., @@ -4809,7 +4809,7 @@ module_eval(<<'.,.,', 'opal.y', 888) module_eval(<<'.,.,', 'opal.y', 892) def _reduce_307(val, _values, result) result = s(:until, val[2], val[5]) - + result end .,., @@ -4817,7 +4817,7 @@ module_eval(<<'.,.,', 'opal.y', 892) module_eval(<<'.,.,', 'opal.y', 896) def _reduce_308(val, _values, result) result = s(:case, val[1], *val[3]) - + result end .,., @@ -4825,7 +4825,7 @@ module_eval(<<'.,.,', 'opal.y', 896) module_eval(<<'.,.,', 'opal.y', 900) def _reduce_309(val, _values, result) result = s(:case, nil, *val[2]) - + result end .,., @@ -4833,7 +4833,7 @@ module_eval(<<'.,.,', 'opal.y', 900) module_eval(<<'.,.,', 'opal.y', 904) def _reduce_310(val, _values, result) result = s(:case, nil, val[3]) - + result end .,., @@ -4842,7 +4842,7 @@ module_eval(<<'.,.,', 'opal.y', 908) def _reduce_311(val, _values, result) lexer.cond_push 1 result = lexer.line - + result end .,., @@ -4850,7 +4850,7 @@ module_eval(<<'.,.,', 'opal.y', 908) module_eval(<<'.,.,', 'opal.y', 913) def _reduce_312(val, _values, result) lexer.cond_pop - + result end .,., @@ -4858,7 +4858,7 @@ module_eval(<<'.,.,', 'opal.y', 913) module_eval(<<'.,.,', 'opal.y', 917) def _reduce_313(val, _values, result) result = s(:for, val[4], val[1], val[7]) - + result end .,., @@ -4866,7 +4866,7 @@ module_eval(<<'.,.,', 'opal.y', 917) module_eval(<<'.,.,', 'opal.y', 921) def _reduce_314(val, _values, result) # ... - + result end .,., @@ -4874,7 +4874,7 @@ module_eval(<<'.,.,', 'opal.y', 921) module_eval(<<'.,.,', 'opal.y', 925) def _reduce_315(val, _values, result) result = new_class val[0], val[1], val[2], val[4], val[5] - + result end .,., @@ -4882,7 +4882,7 @@ module_eval(<<'.,.,', 'opal.y', 925) module_eval(<<'.,.,', 'opal.y', 929) def _reduce_316(val, _values, result) result = lexer.line - + result end .,., @@ -4890,7 +4890,7 @@ module_eval(<<'.,.,', 'opal.y', 929) module_eval(<<'.,.,', 'opal.y', 933) def _reduce_317(val, _values, result) # ... - + result end .,., @@ -4898,7 +4898,7 @@ module_eval(<<'.,.,', 'opal.y', 933) module_eval(<<'.,.,', 'opal.y', 937) def _reduce_318(val, _values, result) result = new_sclass(val[0], val[3], val[6], val[7]) - + result end .,., @@ -4906,7 +4906,7 @@ module_eval(<<'.,.,', 'opal.y', 937) module_eval(<<'.,.,', 'opal.y', 941) def _reduce_319(val, _values, result) result = lexer.line - + result end .,., @@ -4914,7 +4914,7 @@ module_eval(<<'.,.,', 'opal.y', 941) module_eval(<<'.,.,', 'opal.y', 945) def _reduce_320(val, _values, result) # ... - + result end .,., @@ -4922,7 +4922,7 @@ module_eval(<<'.,.,', 'opal.y', 945) module_eval(<<'.,.,', 'opal.y', 949) def _reduce_321(val, _values, result) result = new_module(val[0], val[2], val[4], val[5]) - + result end .,., @@ -4931,7 +4931,7 @@ module_eval(<<'.,.,', 'opal.y', 953) def _reduce_322(val, _values, result) push_scope lexer.lex_state = :expr_endfn - + result end .,., @@ -4940,7 +4940,7 @@ module_eval(<<'.,.,', 'opal.y', 958) def _reduce_323(val, _values, result) result = new_def(val[0], nil, val[1], val[3], val[4], val[5]) pop_scope - + result end .,., @@ -4948,7 +4948,7 @@ module_eval(<<'.,.,', 'opal.y', 958) module_eval(<<'.,.,', 'opal.y', 963) def _reduce_324(val, _values, result) lexer.lex_state = :expr_fname - + result end .,., @@ -4957,7 +4957,7 @@ module_eval(<<'.,.,', 'opal.y', 967) def _reduce_325(val, _values, result) push_scope lexer.lex_state = :expr_endfn - + result end .,., @@ -4966,7 +4966,7 @@ module_eval(<<'.,.,', 'opal.y', 972) def _reduce_326(val, _values, result) result = new_def(val[0], val[1], val[4], val[6], val[7], val[8]) pop_scope - + result end .,., @@ -4974,7 +4974,7 @@ module_eval(<<'.,.,', 'opal.y', 972) module_eval(<<'.,.,', 'opal.y', 977) def _reduce_327(val, _values, result) result = new_break(val[0]) - + result end .,., @@ -4982,7 +4982,7 @@ module_eval(<<'.,.,', 'opal.y', 977) module_eval(<<'.,.,', 'opal.y', 981) def _reduce_328(val, _values, result) result = s(:next) - + result end .,., @@ -4990,7 +4990,7 @@ module_eval(<<'.,.,', 'opal.y', 981) module_eval(<<'.,.,', 'opal.y', 985) def _reduce_329(val, _values, result) result = s(:redo) - + result end .,., @@ -5017,7 +5017,7 @@ module_eval(<<'.,.,', 'opal.y', 1002) def _reduce_339(val, _values, result) result = new_call nil, [:lambda, []], [] result << new_iter(val[0], val[1]) - + result end .,., @@ -5025,7 +5025,7 @@ module_eval(<<'.,.,', 'opal.y', 1002) module_eval(<<'.,.,', 'opal.y', 1008) def _reduce_340(val, _values, result) result = val[1] - + result end .,., @@ -5033,7 +5033,7 @@ module_eval(<<'.,.,', 'opal.y', 1008) module_eval(<<'.,.,', 'opal.y', 1012) def _reduce_341(val, _values, result) result = nil - + result end .,., @@ -5045,7 +5045,7 @@ module_eval(<<'.,.,', 'opal.y', 1012) module_eval(<<'.,.,', 'opal.y', 1019) def _reduce_344(val, _values, result) result = val[1] - + result end .,., @@ -5053,7 +5053,7 @@ module_eval(<<'.,.,', 'opal.y', 1019) module_eval(<<'.,.,', 'opal.y', 1023) def _reduce_345(val, _values, result) result = val[1] - + result end .,., @@ -5061,7 +5061,7 @@ module_eval(<<'.,.,', 'opal.y', 1023) module_eval(<<'.,.,', 'opal.y', 1028) def _reduce_346(val, _values, result) result = val[0] - + result end .,., @@ -5069,7 +5069,7 @@ module_eval(<<'.,.,', 'opal.y', 1028) module_eval(<<'.,.,', 'opal.y', 1032) def _reduce_347(val, _values, result) result = new_if(val[0], val[1], val[3], val[4]) - + result end .,., @@ -5079,7 +5079,7 @@ module_eval(<<'.,.,', 'opal.y', 1032) module_eval(<<'.,.,', 'opal.y', 1038) def _reduce_349(val, _values, result) result = val[1] - + result end .,., @@ -5087,7 +5087,7 @@ module_eval(<<'.,.,', 'opal.y', 1038) module_eval(<<'.,.,', 'opal.y', 1043) def _reduce_350(val, _values, result) result = s(:block, val[0]) - + result end .,., @@ -5096,7 +5096,7 @@ module_eval(<<'.,.,', 'opal.y', 1047) def _reduce_351(val, _values, result) val[0] << val[2] result = val[0] - + result end .,., @@ -5105,7 +5105,7 @@ module_eval(<<'.,.,', 'opal.y', 1053) def _reduce_352(val, _values, result) result = new_assign(new_assignable(new_ident( val[0])), val[1], val[2]) - + result end .,., @@ -5115,7 +5115,7 @@ module_eval(<<'.,.,', 'opal.y', 1053) module_eval(<<'.,.,', 'opal.y', 1060) def _reduce_354(val, _values, result) result = nil - + result end .,., @@ -5123,7 +5123,7 @@ module_eval(<<'.,.,', 'opal.y', 1060) module_eval(<<'.,.,', 'opal.y', 1064) def _reduce_355(val, _values, result) result = nil - + result end .,., @@ -5131,7 +5131,7 @@ module_eval(<<'.,.,', 'opal.y', 1064) module_eval(<<'.,.,', 'opal.y', 1068) def _reduce_356(val, _values, result) result = val[1] - + result end .,., @@ -5139,7 +5139,7 @@ module_eval(<<'.,.,', 'opal.y', 1068) module_eval(<<'.,.,', 'opal.y', 1073) def _reduce_357(val, _values, result) result = val[0] - + result end .,., @@ -5147,7 +5147,7 @@ module_eval(<<'.,.,', 'opal.y', 1073) module_eval(<<'.,.,', 'opal.y', 1078) def _reduce_358(val, _values, result) result = val[1] - + result end .,., @@ -5155,7 +5155,7 @@ module_eval(<<'.,.,', 'opal.y', 1078) module_eval(<<'.,.,', 'opal.y', 1082) def _reduce_359(val, _values, result) nil - + result end .,., @@ -5163,7 +5163,7 @@ module_eval(<<'.,.,', 'opal.y', 1082) module_eval(<<'.,.,', 'opal.y', 1087) def _reduce_360(val, _values, result) result = new_block_args(val[0], val[2], val[4], val[5]) - + result end .,., @@ -5171,7 +5171,7 @@ module_eval(<<'.,.,', 'opal.y', 1087) module_eval(<<'.,.,', 'opal.y', 1091) def _reduce_361(val, _values, result) result = new_block_args(val[0], val[2], nil, val[3]) - + result end .,., @@ -5179,7 +5179,7 @@ module_eval(<<'.,.,', 'opal.y', 1091) module_eval(<<'.,.,', 'opal.y', 1095) def _reduce_362(val, _values, result) result = new_block_args(val[0], nil, val[2], val[3]) - + result end .,., @@ -5187,7 +5187,7 @@ module_eval(<<'.,.,', 'opal.y', 1095) module_eval(<<'.,.,', 'opal.y', 1099) def _reduce_363(val, _values, result) result = new_block_args(val[0], nil, nil, nil) - + result end .,., @@ -5195,7 +5195,7 @@ module_eval(<<'.,.,', 'opal.y', 1099) module_eval(<<'.,.,', 'opal.y', 1103) def _reduce_364(val, _values, result) result = new_block_args(val[0], nil, nil, val[1]) - + result end .,., @@ -5203,7 +5203,7 @@ module_eval(<<'.,.,', 'opal.y', 1103) module_eval(<<'.,.,', 'opal.y', 1107) def _reduce_365(val, _values, result) result = new_block_args(nil, val[0], val[2], val[3]) - + result end .,., @@ -5211,7 +5211,7 @@ module_eval(<<'.,.,', 'opal.y', 1107) module_eval(<<'.,.,', 'opal.y', 1111) def _reduce_366(val, _values, result) result = new_block_args(nil, val[0], nil, val[1]) - + result end .,., @@ -5219,7 +5219,7 @@ module_eval(<<'.,.,', 'opal.y', 1111) module_eval(<<'.,.,', 'opal.y', 1115) def _reduce_367(val, _values, result) result = new_block_args(nil, nil, val[0], val[1]) - + result end .,., @@ -5227,7 +5227,7 @@ module_eval(<<'.,.,', 'opal.y', 1115) module_eval(<<'.,.,', 'opal.y', 1119) def _reduce_368(val, _values, result) result = new_block_args(nil, nil, nil, val[0]) - + result end .,., @@ -5236,7 +5236,7 @@ module_eval(<<'.,.,', 'opal.y', 1124) def _reduce_369(val, _values, result) push_scope :block result = lexer.line - + result end .,., @@ -5245,7 +5245,7 @@ module_eval(<<'.,.,', 'opal.y', 1129) def _reduce_370(val, _values, result) result = new_iter val[2], val[3] pop_scope - + result end .,., @@ -5254,7 +5254,7 @@ module_eval(<<'.,.,', 'opal.y', 1135) def _reduce_371(val, _values, result) val[0] << val[1] result = val[0] - + result end .,., @@ -5268,7 +5268,7 @@ module_eval(<<'.,.,', 'opal.y', 1135) module_eval(<<'.,.,', 'opal.y', 1144) def _reduce_375(val, _values, result) result = new_call(nil, val[0], val[1]) - + result end .,., @@ -5276,7 +5276,7 @@ module_eval(<<'.,.,', 'opal.y', 1144) module_eval(<<'.,.,', 'opal.y', 1148) def _reduce_376(val, _values, result) result = new_call(val[0], val[2], val[3]) - + result end .,., @@ -5284,7 +5284,7 @@ module_eval(<<'.,.,', 'opal.y', 1148) module_eval(<<'.,.,', 'opal.y', 1152) def _reduce_377(val, _values, result) result = new_js_call(val[0], val[2], val[3]) - + result end .,., @@ -5292,7 +5292,7 @@ module_eval(<<'.,.,', 'opal.y', 1152) module_eval(<<'.,.,', 'opal.y', 1156) def _reduce_378(val, _values, result) result = new_call(val[0], [:call, []], val[2]) - + result end .,., @@ -5300,7 +5300,7 @@ module_eval(<<'.,.,', 'opal.y', 1156) module_eval(<<'.,.,', 'opal.y', 1160) def _reduce_379(val, _values, result) result = new_call(val[0], val[2], val[3]) - + result end .,., @@ -5308,7 +5308,7 @@ module_eval(<<'.,.,', 'opal.y', 1160) module_eval(<<'.,.,', 'opal.y', 1164) def _reduce_380(val, _values, result) result = new_call(val[0], val[2]) - + result end .,., @@ -5316,7 +5316,7 @@ module_eval(<<'.,.,', 'opal.y', 1164) module_eval(<<'.,.,', 'opal.y', 1168) def _reduce_381(val, _values, result) result = new_super(val[0], val[1]) - + result end .,., @@ -5324,7 +5324,7 @@ module_eval(<<'.,.,', 'opal.y', 1168) module_eval(<<'.,.,', 'opal.y', 1172) def _reduce_382(val, _values, result) result = new_super(val[0], nil) - + result end .,., @@ -5333,7 +5333,7 @@ module_eval(<<'.,.,', 'opal.y', 1177) def _reduce_383(val, _values, result) push_scope :block result = lexer.line - + result end .,., @@ -5342,7 +5342,7 @@ module_eval(<<'.,.,', 'opal.y', 1182) def _reduce_384(val, _values, result) result = new_iter val[2], val[3] pop_scope - + result end .,., @@ -5351,7 +5351,7 @@ module_eval(<<'.,.,', 'opal.y', 1187) def _reduce_385(val, _values, result) push_scope :block result = lexer.line - + result end .,., @@ -5360,7 +5360,7 @@ module_eval(<<'.,.,', 'opal.y', 1192) def _reduce_386(val, _values, result) result = new_iter val[2], val[3] pop_scope - + result end .,., @@ -5368,7 +5368,7 @@ module_eval(<<'.,.,', 'opal.y', 1192) module_eval(<<'.,.,', 'opal.y', 1198) def _reduce_387(val, _values, result) result = lexer.line - + result end .,., @@ -5378,7 +5378,7 @@ module_eval(<<'.,.,', 'opal.y', 1202) part = s(:when, s(:array, *val[2]), val[4]) result = [part] result.push(*val[5]) if val[5] - + result end .,., @@ -5386,7 +5386,7 @@ module_eval(<<'.,.,', 'opal.y', 1202) module_eval(<<'.,.,', 'opal.y', 1209) def _reduce_389(val, _values, result) result = [val[0]] - + result end .,., @@ -5399,7 +5399,7 @@ module_eval(<<'.,.,', 'opal.y', 1215) exc << new_assign(val[2], val[2], s(:gvar, '$!'.intern)) if val[2] result = [s(:resbody, exc, val[4])] result.push val[5].first if val[5] - + result end .,., @@ -5407,7 +5407,7 @@ module_eval(<<'.,.,', 'opal.y', 1215) module_eval(<<'.,.,', 'opal.y', 1222) def _reduce_392(val, _values, result) result = nil - + result end .,., @@ -5415,7 +5415,7 @@ module_eval(<<'.,.,', 'opal.y', 1222) module_eval(<<'.,.,', 'opal.y', 1227) def _reduce_393(val, _values, result) result = s(:array, val[0]) - + result end .,., @@ -5427,7 +5427,7 @@ module_eval(<<'.,.,', 'opal.y', 1227) module_eval(<<'.,.,', 'opal.y', 1234) def _reduce_396(val, _values, result) result = val[1] - + result end .,., @@ -5435,7 +5435,7 @@ module_eval(<<'.,.,', 'opal.y', 1234) module_eval(<<'.,.,', 'opal.y', 1238) def _reduce_397(val, _values, result) result = nil - + result end .,., @@ -5443,7 +5443,7 @@ module_eval(<<'.,.,', 'opal.y', 1238) module_eval(<<'.,.,', 'opal.y', 1243) def _reduce_398(val, _values, result) result = val[1].nil? ? s(:nil) : val[1] - + result end .,., @@ -5459,7 +5459,7 @@ module_eval(<<'.,.,', 'opal.y', 1243) module_eval(<<'.,.,', 'opal.y', 1253) def _reduce_403(val, _values, result) result = new_str val[0] - + result end .,., @@ -5469,7 +5469,7 @@ module_eval(<<'.,.,', 'opal.y', 1253) module_eval(<<'.,.,', 'opal.y', 1259) def _reduce_405(val, _values, result) result = str_append val[0], val[1] - + result end .,., @@ -5477,7 +5477,7 @@ module_eval(<<'.,.,', 'opal.y', 1259) module_eval(<<'.,.,', 'opal.y', 1264) def _reduce_406(val, _values, result) result = val[1] - + result end .,., @@ -5485,7 +5485,7 @@ module_eval(<<'.,.,', 'opal.y', 1264) module_eval(<<'.,.,', 'opal.y', 1268) def _reduce_407(val, _values, result) result = s(:str, value(val[0])) - + result end .,., @@ -5493,7 +5493,7 @@ module_eval(<<'.,.,', 'opal.y', 1268) module_eval(<<'.,.,', 'opal.y', 1273) def _reduce_408(val, _values, result) result = new_xstr(val[0], val[1], val[2]) - + result end .,., @@ -5501,7 +5501,7 @@ module_eval(<<'.,.,', 'opal.y', 1273) module_eval(<<'.,.,', 'opal.y', 1278) def _reduce_409(val, _values, result) result = new_regexp val[1], val[2] - + result end .,., @@ -5509,7 +5509,7 @@ module_eval(<<'.,.,', 'opal.y', 1278) module_eval(<<'.,.,', 'opal.y', 1283) def _reduce_410(val, _values, result) result = s(:array) - + result end .,., @@ -5517,7 +5517,7 @@ module_eval(<<'.,.,', 'opal.y', 1283) module_eval(<<'.,.,', 'opal.y', 1287) def _reduce_411(val, _values, result) result = val[1] - + result end .,., @@ -5525,7 +5525,7 @@ module_eval(<<'.,.,', 'opal.y', 1287) module_eval(<<'.,.,', 'opal.y', 1292) def _reduce_412(val, _values, result) result = s(:array) - + result end .,., @@ -5535,7 +5535,7 @@ module_eval(<<'.,.,', 'opal.y', 1296) part = val[1] part = s(:dstr, "", val[1]) if part.type == :evstr result = val[0] << part - + result end .,., @@ -5543,7 +5543,7 @@ module_eval(<<'.,.,', 'opal.y', 1296) module_eval(<<'.,.,', 'opal.y', 1303) def _reduce_414(val, _values, result) result = val[0] - + result end .,., @@ -5551,7 +5551,7 @@ module_eval(<<'.,.,', 'opal.y', 1303) module_eval(<<'.,.,', 'opal.y', 1307) def _reduce_415(val, _values, result) result = val[0].concat([val[1]]) - + result end .,., @@ -5559,7 +5559,7 @@ module_eval(<<'.,.,', 'opal.y', 1307) module_eval(<<'.,.,', 'opal.y', 1312) def _reduce_416(val, _values, result) result = s(:array) - + result end .,., @@ -5567,7 +5567,7 @@ module_eval(<<'.,.,', 'opal.y', 1312) module_eval(<<'.,.,', 'opal.y', 1316) def _reduce_417(val, _values, result) result = val[1] - + result end .,., @@ -5575,7 +5575,7 @@ module_eval(<<'.,.,', 'opal.y', 1316) module_eval(<<'.,.,', 'opal.y', 1321) def _reduce_418(val, _values, result) result = s(:array) - + result end .,., @@ -5583,7 +5583,7 @@ module_eval(<<'.,.,', 'opal.y', 1321) module_eval(<<'.,.,', 'opal.y', 1325) def _reduce_419(val, _values, result) result = val[0] << s(:str, value(val[1])) - + result end .,., @@ -5591,7 +5591,7 @@ module_eval(<<'.,.,', 'opal.y', 1325) module_eval(<<'.,.,', 'opal.y', 1330) def _reduce_420(val, _values, result) result = nil - + result end .,., @@ -5599,7 +5599,7 @@ module_eval(<<'.,.,', 'opal.y', 1330) module_eval(<<'.,.,', 'opal.y', 1334) def _reduce_421(val, _values, result) result = str_append val[0], val[1] - + result end .,., @@ -5607,7 +5607,7 @@ module_eval(<<'.,.,', 'opal.y', 1334) module_eval(<<'.,.,', 'opal.y', 1339) def _reduce_422(val, _values, result) result = nil - + result end .,., @@ -5615,7 +5615,7 @@ module_eval(<<'.,.,', 'opal.y', 1339) module_eval(<<'.,.,', 'opal.y', 1343) def _reduce_423(val, _values, result) result = str_append val[0], val[1] - + result end .,., @@ -5623,7 +5623,7 @@ module_eval(<<'.,.,', 'opal.y', 1343) module_eval(<<'.,.,', 'opal.y', 1348) def _reduce_424(val, _values, result) result = new_str_content(val[0]) - + result end .,., @@ -5632,7 +5632,7 @@ module_eval(<<'.,.,', 'opal.y', 1352) def _reduce_425(val, _values, result) result = lexer.strterm lexer.strterm = nil - + result end .,., @@ -5641,7 +5641,7 @@ module_eval(<<'.,.,', 'opal.y', 1357) def _reduce_426(val, _values, result) lexer.strterm = val[1] result = new_evstr(val[2]) - + result end .,., @@ -5653,7 +5653,7 @@ module_eval(<<'.,.,', 'opal.y', 1362) result = lexer.strterm lexer.strterm = nil lexer.lex_state = :expr_beg - + result end .,., @@ -5664,7 +5664,7 @@ module_eval(<<'.,.,', 'opal.y', 1370) lexer.cond_lexpop lexer.cmdarg_lexpop result = new_evstr(val[2]) - + result end .,., @@ -5672,7 +5672,7 @@ module_eval(<<'.,.,', 'opal.y', 1370) module_eval(<<'.,.,', 'opal.y', 1378) def _reduce_429(val, _values, result) result = new_gvar(val[0]) - + result end .,., @@ -5680,7 +5680,7 @@ module_eval(<<'.,.,', 'opal.y', 1378) module_eval(<<'.,.,', 'opal.y', 1382) def _reduce_430(val, _values, result) result = new_ivar(val[0]) - + result end .,., @@ -5688,7 +5688,7 @@ module_eval(<<'.,.,', 'opal.y', 1382) module_eval(<<'.,.,', 'opal.y', 1386) def _reduce_431(val, _values, result) result = new_cvar(val[0]) - + result end .,., @@ -5699,7 +5699,7 @@ module_eval(<<'.,.,', 'opal.y', 1393) def _reduce_433(val, _values, result) result = new_sym(val[1]) lexer.lex_state = :expr_end - + result end .,., @@ -5707,7 +5707,7 @@ module_eval(<<'.,.,', 'opal.y', 1393) module_eval(<<'.,.,', 'opal.y', 1398) def _reduce_434(val, _values, result) result = new_sym(val[0]) - + result end .,., @@ -5723,7 +5723,7 @@ module_eval(<<'.,.,', 'opal.y', 1398) module_eval(<<'.,.,', 'opal.y', 1408) def _reduce_439(val, _values, result) result = new_dsym val[1] - + result end .,., @@ -5731,7 +5731,7 @@ module_eval(<<'.,.,', 'opal.y', 1408) module_eval(<<'.,.,', 'opal.y', 1413) def _reduce_440(val, _values, result) result = new_int(val[0]) - + result end .,., @@ -5739,7 +5739,7 @@ module_eval(<<'.,.,', 'opal.y', 1413) module_eval(<<'.,.,', 'opal.y', 1417) def _reduce_441(val, _values, result) result = new_float(val[0]) - + result end .,., @@ -5747,7 +5747,7 @@ module_eval(<<'.,.,', 'opal.y', 1417) module_eval(<<'.,.,', 'opal.y', 1421) def _reduce_442(val, _values, result) result = negate_num(new_int(val[1])) - + result end .,., @@ -5755,7 +5755,7 @@ module_eval(<<'.,.,', 'opal.y', 1421) module_eval(<<'.,.,', 'opal.y', 1425) def _reduce_443(val, _values, result) result = negate_num(new_float(val[1])) - + result end .,., @@ -5763,7 +5763,7 @@ module_eval(<<'.,.,', 'opal.y', 1425) module_eval(<<'.,.,', 'opal.y', 1429) def _reduce_444(val, _values, result) result = new_int(val[1]) - + result end .,., @@ -5771,7 +5771,7 @@ module_eval(<<'.,.,', 'opal.y', 1429) module_eval(<<'.,.,', 'opal.y', 1433) def _reduce_445(val, _values, result) result = new_float(val[1]) - + result end .,., @@ -5779,7 +5779,7 @@ module_eval(<<'.,.,', 'opal.y', 1433) module_eval(<<'.,.,', 'opal.y', 1438) def _reduce_446(val, _values, result) result = new_ident(val[0]) - + result end .,., @@ -5787,7 +5787,7 @@ module_eval(<<'.,.,', 'opal.y', 1438) module_eval(<<'.,.,', 'opal.y', 1442) def _reduce_447(val, _values, result) result = new_ivar(val[0]) - + result end .,., @@ -5795,7 +5795,7 @@ module_eval(<<'.,.,', 'opal.y', 1442) module_eval(<<'.,.,', 'opal.y', 1446) def _reduce_448(val, _values, result) result = new_gvar(val[0]) - + result end .,., @@ -5803,7 +5803,7 @@ module_eval(<<'.,.,', 'opal.y', 1446) module_eval(<<'.,.,', 'opal.y', 1450) def _reduce_449(val, _values, result) result = new_const(val[0]) - + result end .,., @@ -5811,7 +5811,7 @@ module_eval(<<'.,.,', 'opal.y', 1450) module_eval(<<'.,.,', 'opal.y', 1454) def _reduce_450(val, _values, result) result = new_cvar(val[0]) - + result end .,., @@ -5819,7 +5819,7 @@ module_eval(<<'.,.,', 'opal.y', 1454) module_eval(<<'.,.,', 'opal.y', 1458) def _reduce_451(val, _values, result) result = new_nil(val[0]) - + result end .,., @@ -5827,7 +5827,7 @@ module_eval(<<'.,.,', 'opal.y', 1458) module_eval(<<'.,.,', 'opal.y', 1462) def _reduce_452(val, _values, result) result = new_self(val[0]) - + result end .,., @@ -5835,7 +5835,7 @@ module_eval(<<'.,.,', 'opal.y', 1462) module_eval(<<'.,.,', 'opal.y', 1466) def _reduce_453(val, _values, result) result = new_true(val[0]) - + result end .,., @@ -5843,7 +5843,7 @@ module_eval(<<'.,.,', 'opal.y', 1466) module_eval(<<'.,.,', 'opal.y', 1470) def _reduce_454(val, _values, result) result = new_false(val[0]) - + result end .,., @@ -5851,7 +5851,7 @@ module_eval(<<'.,.,', 'opal.y', 1470) module_eval(<<'.,.,', 'opal.y', 1474) def _reduce_455(val, _values, result) result = new___FILE__(val[0]) - + result end .,., @@ -5859,7 +5859,7 @@ module_eval(<<'.,.,', 'opal.y', 1474) module_eval(<<'.,.,', 'opal.y', 1478) def _reduce_456(val, _values, result) result = new___LINE__(val[0]) - + result end .,., @@ -5867,7 +5867,7 @@ module_eval(<<'.,.,', 'opal.y', 1478) module_eval(<<'.,.,', 'opal.y', 1483) def _reduce_457(val, _values, result) result = new_var_ref(val[0]) - + result end .,., @@ -5875,7 +5875,7 @@ module_eval(<<'.,.,', 'opal.y', 1483) module_eval(<<'.,.,', 'opal.y', 1488) def _reduce_458(val, _values, result) result = new_assignable val[0] - + result end .,., @@ -5883,7 +5883,7 @@ module_eval(<<'.,.,', 'opal.y', 1488) module_eval(<<'.,.,', 'opal.y', 1493) def _reduce_459(val, _values, result) result = s(:nth_ref, value(val[0])) - + result end .,., @@ -5893,7 +5893,7 @@ module_eval(<<'.,.,', 'opal.y', 1493) module_eval(<<'.,.,', 'opal.y', 1499) def _reduce_461(val, _values, result) result = nil - + result end .,., @@ -5901,7 +5901,7 @@ module_eval(<<'.,.,', 'opal.y', 1499) module_eval(<<'.,.,', 'opal.y', 1503) def _reduce_462(val, _values, result) result = val[1] - + result end .,., @@ -5909,7 +5909,7 @@ module_eval(<<'.,.,', 'opal.y', 1503) module_eval(<<'.,.,', 'opal.y', 1507) def _reduce_463(val, _values, result) result = nil - + result end .,., @@ -5918,7 +5918,7 @@ module_eval(<<'.,.,', 'opal.y', 1512) def _reduce_464(val, _values, result) result = val[1] lexer.lex_state = :expr_beg - + result end .,., @@ -5927,7 +5927,7 @@ module_eval(<<'.,.,', 'opal.y', 1517) def _reduce_465(val, _values, result) result = val[0] lexer.lex_state = :expr_beg - + result end .,., @@ -5939,7 +5939,7 @@ module_eval(<<'.,.,', 'opal.y', 1517) module_eval(<<'.,.,', 'opal.y', 1526) def _reduce_468(val, _values, result) result = new_kwrestarg(val[1]) - + result end .,., @@ -5947,7 +5947,7 @@ module_eval(<<'.,.,', 'opal.y', 1526) module_eval(<<'.,.,', 'opal.y', 1530) def _reduce_469(val, _values, result) result = new_kwrestarg() - + result end .,., @@ -5955,7 +5955,7 @@ module_eval(<<'.,.,', 'opal.y', 1530) module_eval(<<'.,.,', 'opal.y', 1535) def _reduce_470(val, _values, result) result = new_sym(val[0]) - + result end .,., @@ -5963,7 +5963,7 @@ module_eval(<<'.,.,', 'opal.y', 1535) module_eval(<<'.,.,', 'opal.y', 1540) def _reduce_471(val, _values, result) result = new_kwoptarg(val[0], val[1]) - + result end .,., @@ -5971,7 +5971,7 @@ module_eval(<<'.,.,', 'opal.y', 1540) module_eval(<<'.,.,', 'opal.y', 1544) def _reduce_472(val, _values, result) result = new_kwarg(val[0]) - + result end .,., @@ -5979,7 +5979,7 @@ module_eval(<<'.,.,', 'opal.y', 1544) module_eval(<<'.,.,', 'opal.y', 1549) def _reduce_473(val, _values, result) result = [val[0]] - + result end .,., @@ -5988,7 +5988,7 @@ module_eval(<<'.,.,', 'opal.y', 1553) def _reduce_474(val, _values, result) result = val[0] result << val[2] - + result end .,., @@ -5996,7 +5996,7 @@ module_eval(<<'.,.,', 'opal.y', 1553) module_eval(<<'.,.,', 'opal.y', 1559) def _reduce_475(val, _values, result) result = new_args_tail(val[0], val[2], val[3]) - + result end .,., @@ -6004,7 +6004,7 @@ module_eval(<<'.,.,', 'opal.y', 1559) module_eval(<<'.,.,', 'opal.y', 1563) def _reduce_476(val, _values, result) result = new_args_tail(val[0], nil, val[1]) - + result end .,., @@ -6012,7 +6012,7 @@ module_eval(<<'.,.,', 'opal.y', 1563) module_eval(<<'.,.,', 'opal.y', 1567) def _reduce_477(val, _values, result) result = new_args_tail(nil, val[0], val[1]) - + result end .,., @@ -6020,7 +6020,7 @@ module_eval(<<'.,.,', 'opal.y', 1567) module_eval(<<'.,.,', 'opal.y', 1571) def _reduce_478(val, _values, result) result = new_args_tail(nil, nil, val[0]) - + result end .,., @@ -6028,7 +6028,7 @@ module_eval(<<'.,.,', 'opal.y', 1571) module_eval(<<'.,.,', 'opal.y', 1576) def _reduce_479(val, _values, result) result = val[1] - + result end .,., @@ -6036,7 +6036,7 @@ module_eval(<<'.,.,', 'opal.y', 1576) module_eval(<<'.,.,', 'opal.y', 1580) def _reduce_480(val, _values, result) result = new_args_tail(nil, nil, nil) - + result end .,., @@ -6044,7 +6044,7 @@ module_eval(<<'.,.,', 'opal.y', 1580) module_eval(<<'.,.,', 'opal.y', 1585) def _reduce_481(val, _values, result) result = new_args(val[0], val[2], val[4], val[5]) - + result end .,., @@ -6052,7 +6052,7 @@ module_eval(<<'.,.,', 'opal.y', 1585) module_eval(<<'.,.,', 'opal.y', 1589) def _reduce_482(val, _values, result) result = new_args(val[0], val[2], nil, val[3]) - + result end .,., @@ -6060,7 +6060,7 @@ module_eval(<<'.,.,', 'opal.y', 1589) module_eval(<<'.,.,', 'opal.y', 1593) def _reduce_483(val, _values, result) result = new_args(val[0], nil, val[2], val[3]) - + result end .,., @@ -6068,7 +6068,7 @@ module_eval(<<'.,.,', 'opal.y', 1593) module_eval(<<'.,.,', 'opal.y', 1597) def _reduce_484(val, _values, result) result = new_args(val[0], nil, nil, val[1]) - + result end .,., @@ -6076,7 +6076,7 @@ module_eval(<<'.,.,', 'opal.y', 1597) module_eval(<<'.,.,', 'opal.y', 1601) def _reduce_485(val, _values, result) result = new_args(nil, val[0], val[2], val[3]) - + result end .,., @@ -6084,7 +6084,7 @@ module_eval(<<'.,.,', 'opal.y', 1601) module_eval(<<'.,.,', 'opal.y', 1605) def _reduce_486(val, _values, result) result = new_args(nil, val[0], nil, val[1]) - + result end .,., @@ -6092,7 +6092,7 @@ module_eval(<<'.,.,', 'opal.y', 1605) module_eval(<<'.,.,', 'opal.y', 1609) def _reduce_487(val, _values, result) result = new_args(nil, nil, val[0], val[1]) - + result end .,., @@ -6100,7 +6100,7 @@ module_eval(<<'.,.,', 'opal.y', 1609) module_eval(<<'.,.,', 'opal.y', 1613) def _reduce_488(val, _values, result) result = new_args(nil, nil, nil, val[0]) - + result end .,., @@ -6108,7 +6108,7 @@ module_eval(<<'.,.,', 'opal.y', 1613) module_eval(<<'.,.,', 'opal.y', 1617) def _reduce_489(val, _values, result) result = new_args(nil, nil, nil, nil) - + result end .,., @@ -6119,7 +6119,7 @@ module_eval(<<'.,.,', 'opal.y', 1623) def _reduce_491(val, _values, result) result = value(val[0]).to_sym scope.add_local result - + result end .,., @@ -6127,7 +6127,7 @@ module_eval(<<'.,.,', 'opal.y', 1623) module_eval(<<'.,.,', 'opal.y', 1629) def _reduce_492(val, _values, result) raise 'formal argument cannot be a constant' - + result end .,., @@ -6135,7 +6135,7 @@ module_eval(<<'.,.,', 'opal.y', 1629) module_eval(<<'.,.,', 'opal.y', 1633) def _reduce_493(val, _values, result) raise 'formal argument cannot be an instance variable' - + result end .,., @@ -6143,7 +6143,7 @@ module_eval(<<'.,.,', 'opal.y', 1633) module_eval(<<'.,.,', 'opal.y', 1637) def _reduce_494(val, _values, result) raise 'formal argument cannot be a class variable' - + result end .,., @@ -6151,7 +6151,7 @@ module_eval(<<'.,.,', 'opal.y', 1637) module_eval(<<'.,.,', 'opal.y', 1641) def _reduce_495(val, _values, result) raise 'formal argument cannot be a global variable' - + result end .,., @@ -6159,7 +6159,7 @@ module_eval(<<'.,.,', 'opal.y', 1641) module_eval(<<'.,.,', 'opal.y', 1646) def _reduce_496(val, _values, result) result = val[0] - + result end .,., @@ -6167,7 +6167,7 @@ module_eval(<<'.,.,', 'opal.y', 1646) module_eval(<<'.,.,', 'opal.y', 1650) def _reduce_497(val, _values, result) result = val[1] - + result end .,., @@ -6179,7 +6179,7 @@ module_eval(<<'.,.,', 'opal.y', 1650) module_eval(<<'.,.,', 'opal.y', 1658) def _reduce_500(val, _values, result) result = s(:lasgn, val[0]) - + result end .,., @@ -6189,7 +6189,7 @@ module_eval(<<'.,.,', 'opal.y', 1658) module_eval(<<'.,.,', 'opal.y', 1664) def _reduce_502(val, _values, result) result = s(:array, val[0]) - + result end .,., @@ -6198,7 +6198,7 @@ module_eval(<<'.,.,', 'opal.y', 1668) def _reduce_503(val, _values, result) val[0] << val[2] result = val[0] - + result end .,., @@ -6216,7 +6216,7 @@ module_eval(<<'.,.,', 'opal.y', 1668) module_eval(<<'.,.,', 'opal.y', 1680) def _reduce_509(val, _values, result) result = [val[0]] - + result end .,., @@ -6225,7 +6225,7 @@ module_eval(<<'.,.,', 'opal.y', 1684) def _reduce_510(val, _values, result) val[0] << val[2] result = val[0] - + result end .,., @@ -6233,7 +6233,7 @@ module_eval(<<'.,.,', 'opal.y', 1684) module_eval(<<'.,.,', 'opal.y', 1690) def _reduce_511(val, _values, result) result = new_assign(new_assignable(new_ident(val[0])), val[1], val[2]) - + result end .,., @@ -6241,7 +6241,7 @@ module_eval(<<'.,.,', 'opal.y', 1690) module_eval(<<'.,.,', 'opal.y', 1695) def _reduce_512(val, _values, result) result = s(:block, val[0]) - + result end .,., @@ -6250,7 +6250,7 @@ module_eval(<<'.,.,', 'opal.y', 1699) def _reduce_513(val, _values, result) result = val[0] val[0] << val[2] - + result end .,., @@ -6262,7 +6262,7 @@ module_eval(<<'.,.,', 'opal.y', 1699) module_eval(<<'.,.,', 'opal.y', 1708) def _reduce_516(val, _values, result) result = "*#{value(val[1])}".to_sym - + result end .,., @@ -6270,7 +6270,7 @@ module_eval(<<'.,.,', 'opal.y', 1708) module_eval(<<'.,.,', 'opal.y', 1712) def _reduce_517(val, _values, result) result = :"*" - + result end .,., @@ -6282,7 +6282,7 @@ module_eval(<<'.,.,', 'opal.y', 1712) module_eval(<<'.,.,', 'opal.y', 1720) def _reduce_520(val, _values, result) result = "&#{value(val[1])}".to_sym - + result end .,., @@ -6290,7 +6290,7 @@ module_eval(<<'.,.,', 'opal.y', 1720) module_eval(<<'.,.,', 'opal.y', 1725) def _reduce_521(val, _values, result) result = val[1] - + result end .,., @@ -6298,7 +6298,7 @@ module_eval(<<'.,.,', 'opal.y', 1725) module_eval(<<'.,.,', 'opal.y', 1729) def _reduce_522(val, _values, result) result = nil - + result end .,., @@ -6306,7 +6306,7 @@ module_eval(<<'.,.,', 'opal.y', 1729) module_eval(<<'.,.,', 'opal.y', 1734) def _reduce_523(val, _values, result) result = val[0] - + result end .,., @@ -6314,7 +6314,7 @@ module_eval(<<'.,.,', 'opal.y', 1734) module_eval(<<'.,.,', 'opal.y', 1738) def _reduce_524(val, _values, result) result = val[1] - + result end .,., @@ -6322,7 +6322,7 @@ module_eval(<<'.,.,', 'opal.y', 1738) module_eval(<<'.,.,', 'opal.y', 1743) def _reduce_525(val, _values, result) result = [] - + result end .,., @@ -6330,7 +6330,7 @@ module_eval(<<'.,.,', 'opal.y', 1743) module_eval(<<'.,.,', 'opal.y', 1747) def _reduce_526(val, _values, result) result = val[0] - + result end .,., @@ -6338,7 +6338,7 @@ module_eval(<<'.,.,', 'opal.y', 1747) module_eval(<<'.,.,', 'opal.y', 1752) def _reduce_527(val, _values, result) result = val[0] - + result end .,., @@ -6346,7 +6346,7 @@ module_eval(<<'.,.,', 'opal.y', 1752) module_eval(<<'.,.,', 'opal.y', 1756) def _reduce_528(val, _values, result) result = val[0].push(*val[2]) - + result end .,., @@ -6354,7 +6354,7 @@ module_eval(<<'.,.,', 'opal.y', 1756) module_eval(<<'.,.,', 'opal.y', 1761) def _reduce_529(val, _values, result) result = [val[0], val[2]] - + result end .,., @@ -6362,7 +6362,7 @@ module_eval(<<'.,.,', 'opal.y', 1761) module_eval(<<'.,.,', 'opal.y', 1765) def _reduce_530(val, _values, result) result = [new_sym(val[0]), val[1]] - + result end .,., @@ -6416,7 +6416,7 @@ module_eval(<<'.,.,', 'opal.y', 1765) module_eval(<<'.,.,', 'opal.y', 1802) def _reduce_554(val, _values, result) result = nil - + result end .,., diff --git a/test/racc/regress/php_serialization b/test/racc/regress/php_serialization index 63afbf1206..3146d548e0 100644 --- a/test/racc/regress/php_serialization +++ b/test/racc/regress/php_serialization @@ -181,84 +181,84 @@ Racc_debug_parser = false module_eval(<<'.,.,', 'php_serialization.y', 6) def _reduce_1(val, _values, result) - @object = val[0] + @object = val[0] result end .,., module_eval(<<'.,.,', 'php_serialization.y', 7) def _reduce_2(val, _values, result) - @object = val[0] + @object = val[0] result end .,., module_eval(<<'.,.,', 'php_serialization.y', 8) def _reduce_3(val, _values, result) - @object = val[0] + @object = val[0] result end .,., module_eval(<<'.,.,', 'php_serialization.y', 9) def _reduce_4(val, _values, result) - @object = val[0] + @object = val[0] result end .,., module_eval(<<'.,.,', 'php_serialization.y', 10) def _reduce_5(val, _values, result) - @object = val[0] + @object = val[0] result end .,., module_eval(<<'.,.,', 'php_serialization.y', 11) def _reduce_6(val, _values, result) - @object = val[0] + @object = val[0] result end .,., module_eval(<<'.,.,', 'php_serialization.y', 12) def _reduce_7(val, _values, result) - @object = val[0] + @object = val[0] result end .,., module_eval(<<'.,.,', 'php_serialization.y', 15) def _reduce_8(val, _values, result) - result = nil + result = nil result end .,., module_eval(<<'.,.,', 'php_serialization.y', 18) def _reduce_9(val, _values, result) - result = Integer(val[2]) > 0 + result = Integer(val[2]) > 0 result end .,., module_eval(<<'.,.,', 'php_serialization.y', 21) def _reduce_10(val, _values, result) - result = Integer(val[2]) + result = Integer(val[2]) result end .,., module_eval(<<'.,.,', 'php_serialization.y', 24) def _reduce_11(val, _values, result) - result = Float(val[2]) + result = Float(val[2]) result end .,., module_eval(<<'.,.,', 'php_serialization.y', 27) def _reduce_12(val, _values, result) - result = val[4] + result = val[4] result end .,., @@ -286,28 +286,28 @@ module_eval(<<'.,.,', 'php_serialization.y', 32) result = Struct.new(klass_name, *attr_names).new(*values) result.instance_variable_set("@_php_class", klass_name) end - + result end .,., module_eval(<<'.,.,', 'php_serialization.y', 56) def _reduce_14(val, _values, result) - result = val[0] << val[1] + result = val[0] << val[1] result end .,., module_eval(<<'.,.,', 'php_serialization.y', 57) def _reduce_15(val, _values, result) - result = [] + result = [] result end .,., module_eval(<<'.,.,', 'php_serialization.y', 60) def _reduce_16(val, _values, result) - result = val + result = val result end .,., @@ -323,7 +323,7 @@ module_eval(<<'.,.,', 'php_serialization.y', 65) else result = Hash[val[5]] end - + result end .,., diff --git a/test/racc/regress/riml b/test/racc/regress/riml index 70cf8dc567..7a455eaeaf 100644 --- a/test/racc/regress/riml +++ b/test/racc/regress/riml @@ -1485,1806 +1485,1806 @@ Racc_debug_parser = false module_eval(<<'.,.,', 'riml.y', 61) def _reduce_1(val, _values, result) - result = make_node(val) { |_| Riml::Nodes.new([]) } + result = make_node(val) { |_| Riml::Nodes.new([]) } result end .,., module_eval(<<'.,.,', 'riml.y', 62) def _reduce_2(val, _values, result) - result = make_node(val) { |_| Riml::Nodes.new([]) } + result = make_node(val) { |_| Riml::Nodes.new([]) } result end .,., module_eval(<<'.,.,', 'riml.y', 63) def _reduce_3(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 68) def _reduce_4(val, _values, result) - result = make_node(val) { |v| Riml::Nodes.new([ v[0] ]) } + result = make_node(val) { |v| Riml::Nodes.new([ v[0] ]) } result end .,., module_eval(<<'.,.,', 'riml.y', 69) def _reduce_5(val, _values, result) - result = val[0] << val[2] + result = val[0] << val[2] result end .,., module_eval(<<'.,.,', 'riml.y', 70) def _reduce_6(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 71) def _reduce_7(val, _values, result) - result = make_node(val) { |v| Riml::Nodes.new(v[1]) } + result = make_node(val) { |v| Riml::Nodes.new(v[1]) } result end .,., module_eval(<<'.,.,', 'riml.y', 76) def _reduce_8(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 77) def _reduce_9(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 78) def _reduce_10(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 79) def _reduce_11(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 80) def _reduce_12(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 81) def _reduce_13(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 82) def _reduce_14(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 83) def _reduce_15(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 84) def _reduce_16(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 85) def _reduce_17(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 86) def _reduce_18(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 87) def _reduce_19(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 88) def _reduce_20(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 89) def _reduce_21(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 90) def _reduce_22(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 91) def _reduce_23(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 92) def _reduce_24(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 93) def _reduce_25(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 97) def _reduce_26(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 98) def _reduce_27(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 99) def _reduce_28(val, _values, result) - result = make_node(val) { |v| Riml::DictGetDotNode.new(v[0], v[1]) } + result = make_node(val) { |v| Riml::DictGetDotNode.new(v[0], v[1]) } result end .,., module_eval(<<'.,.,', 'riml.y', 100) def _reduce_29(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 101) def _reduce_30(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 102) def _reduce_31(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 103) def _reduce_32(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 104) def _reduce_33(val, _values, result) - result = make_node(val) { |v| Riml::WrapInParensNode.new(v[1]) } + result = make_node(val) { |v| Riml::WrapInParensNode.new(v[1]) } result end .,., module_eval(<<'.,.,', 'riml.y', 108) def _reduce_34(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 109) def _reduce_35(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 110) def _reduce_36(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 111) def _reduce_37(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 112) def _reduce_38(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 113) def _reduce_39(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 114) def _reduce_40(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 115) def _reduce_41(val, _values, result) - result = make_node(val) { |v| Riml::WrapInParensNode.new(v[1]) } + result = make_node(val) { |v| Riml::WrapInParensNode.new(v[1]) } result end .,., module_eval(<<'.,.,', 'riml.y', 120) def _reduce_42(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 121) def _reduce_43(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 122) def _reduce_44(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 123) def _reduce_45(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 124) def _reduce_46(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 125) def _reduce_47(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 126) def _reduce_48(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 130) def _reduce_49(val, _values, result) - result = nil + result = nil result end .,., module_eval(<<'.,.,', 'riml.y', 131) def _reduce_50(val, _values, result) - result = nil + result = nil result end .,., module_eval(<<'.,.,', 'riml.y', 135) def _reduce_51(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 136) def _reduce_52(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 137) def _reduce_53(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 138) def _reduce_54(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 139) def _reduce_55(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 140) def _reduce_56(val, _values, result) - result = make_node(val) { |_| Riml::TrueNode.new } + result = make_node(val) { |_| Riml::TrueNode.new } result end .,., module_eval(<<'.,.,', 'riml.y', 141) def _reduce_57(val, _values, result) - result = make_node(val) { |_| Riml::FalseNode.new } + result = make_node(val) { |_| Riml::FalseNode.new } result end .,., module_eval(<<'.,.,', 'riml.y', 145) def _reduce_58(val, _values, result) - result = make_node(val) { |v| Riml::NumberNode.new(v[0]) } + result = make_node(val) { |v| Riml::NumberNode.new(v[0]) } result end .,., module_eval(<<'.,.,', 'riml.y', 149) def _reduce_59(val, _values, result) - result = make_node(val) { |v| Riml::StringNode.new(v[0], :s) } + result = make_node(val) { |v| Riml::StringNode.new(v[0], :s) } result end .,., module_eval(<<'.,.,', 'riml.y', 150) def _reduce_60(val, _values, result) - result = make_node(val) { |v| Riml::StringNode.new(v[0], :d) } + result = make_node(val) { |v| Riml::StringNode.new(v[0], :d) } result end .,., module_eval(<<'.,.,', 'riml.y', 151) def _reduce_61(val, _values, result) - result = make_node(val) { |v| Riml::StringLiteralConcatNode.new(v[0], Riml::StringNode.new(v[1], :s)) } + result = make_node(val) { |v| Riml::StringLiteralConcatNode.new(v[0], Riml::StringNode.new(v[1], :s)) } result end .,., module_eval(<<'.,.,', 'riml.y', 152) def _reduce_62(val, _values, result) - result = make_node(val) { |v| Riml::StringLiteralConcatNode.new(v[0], Riml::StringNode.new(v[1], :d)) } + result = make_node(val) { |v| Riml::StringLiteralConcatNode.new(v[0], Riml::StringNode.new(v[1], :d)) } result end .,., module_eval(<<'.,.,', 'riml.y', 156) def _reduce_63(val, _values, result) - result = make_node(val) { |v| Riml::RegexpNode.new(v[0]) } + result = make_node(val) { |v| Riml::RegexpNode.new(v[0]) } result end .,., module_eval(<<'.,.,', 'riml.y', 160) def _reduce_64(val, _values, result) - result = make_node(val) { |v| Riml::ScopeModifierLiteralNode.new(v[0]) } + result = make_node(val) { |v| Riml::ScopeModifierLiteralNode.new(v[0]) } result end .,., module_eval(<<'.,.,', 'riml.y', 164) def _reduce_65(val, _values, result) - result = make_node(val) { |v| Riml::ListNode.new(v[0]) } + result = make_node(val) { |v| Riml::ListNode.new(v[0]) } result end .,., module_eval(<<'.,.,', 'riml.y', 168) def _reduce_66(val, _values, result) - result = make_node(val) { |v| Riml::ListUnpackNode.new(v[1] << v[3]) } + result = make_node(val) { |v| Riml::ListUnpackNode.new(v[1] << v[3]) } result end .,., module_eval(<<'.,.,', 'riml.y', 172) def _reduce_67(val, _values, result) - result = val[1] + result = val[1] result end .,., module_eval(<<'.,.,', 'riml.y', 173) def _reduce_68(val, _values, result) - result = val[1] + result = val[1] result end .,., module_eval(<<'.,.,', 'riml.y', 177) def _reduce_69(val, _values, result) - result = [] + result = [] result end .,., module_eval(<<'.,.,', 'riml.y', 178) def _reduce_70(val, _values, result) - result = [val[0]] + result = [val[0]] result end .,., module_eval(<<'.,.,', 'riml.y', 179) def _reduce_71(val, _values, result) - result = val[0] << val[2] + result = val[0] << val[2] result end .,., module_eval(<<'.,.,', 'riml.y', 183) def _reduce_72(val, _values, result) - result = make_node(val) { |v| Riml::DictionaryNode.new(v[0]) } + result = make_node(val) { |v| Riml::DictionaryNode.new(v[0]) } result end .,., module_eval(<<'.,.,', 'riml.y', 190) def _reduce_73(val, _values, result) - result = val[1] + result = val[1] result end .,., module_eval(<<'.,.,', 'riml.y', 191) def _reduce_74(val, _values, result) - result = val[1] + result = val[1] result end .,., module_eval(<<'.,.,', 'riml.y', 196) def _reduce_75(val, _values, result) - result = [] + result = [] result end .,., module_eval(<<'.,.,', 'riml.y', 197) def _reduce_76(val, _values, result) - result = val + result = val result end .,., module_eval(<<'.,.,', 'riml.y', 198) def _reduce_77(val, _values, result) - result = val[0] << val[2] + result = val[0] << val[2] result end .,., module_eval(<<'.,.,', 'riml.y', 203) def _reduce_78(val, _values, result) - result = [val[0], val[2]] + result = [val[0], val[2]] result end .,., module_eval(<<'.,.,', 'riml.y', 207) def _reduce_79(val, _values, result) - result = make_node(val) { |v| Riml::DictGetDotNode.new(v[0], v[1]) } + result = make_node(val) { |v| Riml::DictGetDotNode.new(v[0], v[1]) } result end .,., module_eval(<<'.,.,', 'riml.y', 208) def _reduce_80(val, _values, result) - result = make_node(val) { |v| Riml::DictGetDotNode.new(v[0], v[1]) } + result = make_node(val) { |v| Riml::DictGetDotNode.new(v[0], v[1]) } result end .,., module_eval(<<'.,.,', 'riml.y', 209) def _reduce_81(val, _values, result) - result = make_node(val) { |v| Riml::DictGetDotNode.new(v[0], v[1]) } + result = make_node(val) { |v| Riml::DictGetDotNode.new(v[0], v[1]) } result end .,., module_eval(<<'.,.,', 'riml.y', 210) def _reduce_82(val, _values, result) - result = make_node(val) { |v| Riml::DictGetDotNode.new(Riml::WrapInParensNode.new(v[1]), v[3]) } + result = make_node(val) { |v| Riml::DictGetDotNode.new(Riml::WrapInParensNode.new(v[1]), v[3]) } result end .,., module_eval(<<'.,.,', 'riml.y', 214) def _reduce_83(val, _values, result) - result = make_node(val) { |v| Riml::ListOrDictGetNode.new(v[0], v[1]) } + result = make_node(val) { |v| Riml::ListOrDictGetNode.new(v[0], v[1]) } result end .,., module_eval(<<'.,.,', 'riml.y', 215) def _reduce_84(val, _values, result) - result = make_node(val) { |v| Riml::ListOrDictGetNode.new(Riml::WrapInParensNode.new(v[1]), v[3]) } + result = make_node(val) { |v| Riml::ListOrDictGetNode.new(Riml::WrapInParensNode.new(v[1]), v[3]) } result end .,., module_eval(<<'.,.,', 'riml.y', 219) def _reduce_85(val, _values, result) - result = make_node(val) { |v| Riml::ListOrDictGetNode.new(v[0], v[1]) } + result = make_node(val) { |v| Riml::ListOrDictGetNode.new(v[0], v[1]) } result end .,., module_eval(<<'.,.,', 'riml.y', 223) def _reduce_86(val, _values, result) - result = [val[1]] + result = [val[1]] result end .,., module_eval(<<'.,.,', 'riml.y', 224) def _reduce_87(val, _values, result) - result = [val[1]] + result = [val[1]] result end .,., module_eval(<<'.,.,', 'riml.y', 225) def _reduce_88(val, _values, result) - result = val[0] << val[2] + result = val[0] << val[2] result end .,., module_eval(<<'.,.,', 'riml.y', 226) def _reduce_89(val, _values, result) - result = val[0] << val[2] + result = val[0] << val[2] result end .,., module_eval(<<'.,.,', 'riml.y', 230) def _reduce_90(val, _values, result) - result = make_node(val) { |v| Riml::SublistNode.new([v[0], Riml::LiteralNode.new(' : '), v[2]]) } + result = make_node(val) { |v| Riml::SublistNode.new([v[0], Riml::LiteralNode.new(' : '), v[2]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 231) def _reduce_91(val, _values, result) - result = make_node(val) { |v| Riml::SublistNode.new([v[0], Riml::LiteralNode.new(' :')]) } + result = make_node(val) { |v| Riml::SublistNode.new([v[0], Riml::LiteralNode.new(' :')]) } result end .,., module_eval(<<'.,.,', 'riml.y', 232) def _reduce_92(val, _values, result) - result = make_node(val) { |v| Riml::SublistNode.new([Riml::LiteralNode.new(': '), v[1]]) } + result = make_node(val) { |v| Riml::SublistNode.new([Riml::LiteralNode.new(': '), v[1]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 233) def _reduce_93(val, _values, result) - result = make_node(val) { |_| Riml::SublistNode.new([Riml::LiteralNode.new(':')]) } + result = make_node(val) { |_| Riml::SublistNode.new([Riml::LiteralNode.new(':')]) } result end .,., module_eval(<<'.,.,', 'riml.y', 237) def _reduce_94(val, _values, result) - result = [val[0]] + result = [val[0]] result end .,., module_eval(<<'.,.,', 'riml.y', 238) def _reduce_95(val, _values, result) - result = val[0] << val[1] + result = val[0] << val[1] result end .,., module_eval(<<'.,.,', 'riml.y', 242) def _reduce_96(val, _values, result) - result = [val[1]] + result = [val[1]] result end .,., module_eval(<<'.,.,', 'riml.y', 243) def _reduce_97(val, _values, result) - result = val[0] << val[1] + result = val[0] << val[1] result end .,., module_eval(<<'.,.,', 'riml.y', 247) def _reduce_98(val, _values, result) - result = make_node(val) { |v| Riml::CallNode.new(v[0], v[1], v[3]) } + result = make_node(val) { |v| Riml::CallNode.new(v[0], v[1], v[3]) } result end .,., module_eval(<<'.,.,', 'riml.y', 248) def _reduce_99(val, _values, result) - result = make_node(val) { |v| Riml::CallNode.new(nil, v[0], v[2]) } + result = make_node(val) { |v| Riml::CallNode.new(nil, v[0], v[2]) } result end .,., module_eval(<<'.,.,', 'riml.y', 249) def _reduce_100(val, _values, result) - result = make_node(val) { |v| Riml::CallNode.new(nil, v[0], v[2]) } + result = make_node(val) { |v| Riml::CallNode.new(nil, v[0], v[2]) } result end .,., module_eval(<<'.,.,', 'riml.y', 250) def _reduce_101(val, _values, result) - result = make_node(val) { |v| Riml::CallNode.new(nil, v[0], v[1]) } + result = make_node(val) { |v| Riml::CallNode.new(nil, v[0], v[1]) } result end .,., module_eval(<<'.,.,', 'riml.y', 251) def _reduce_102(val, _values, result) - result = make_node(val) { |v| Riml::CallNode.new(nil, v[0], []) } + result = make_node(val) { |v| Riml::CallNode.new(nil, v[0], []) } result end .,., module_eval(<<'.,.,', 'riml.y', 252) def _reduce_103(val, _values, result) - result = make_node(val) { |v| Riml::ExplicitCallNode.new(nil, nil, v[2]) } + result = make_node(val) { |v| Riml::ExplicitCallNode.new(nil, nil, v[2]) } result end .,., module_eval(<<'.,.,', 'riml.y', 256) def _reduce_104(val, _values, result) - result = make_node(val) { |v| Riml::CallNode.new(v[0], v[1], v[3]) } + result = make_node(val) { |v| Riml::CallNode.new(v[0], v[1], v[3]) } result end .,., module_eval(<<'.,.,', 'riml.y', 257) def _reduce_105(val, _values, result) - result = make_node(val) { |v| Riml::CallNode.new(v[0], v[1], []) } + result = make_node(val) { |v| Riml::CallNode.new(v[0], v[1], []) } result end .,., module_eval(<<'.,.,', 'riml.y', 261) def _reduce_106(val, _values, result) - result = make_node(val) { |v| Riml::RimlFileCommandNode.new(nil, v[0], v[2]) } + result = make_node(val) { |v| Riml::RimlFileCommandNode.new(nil, v[0], v[2]) } result end .,., module_eval(<<'.,.,', 'riml.y', 262) def _reduce_107(val, _values, result) - result = make_node(val) { |v| Riml::RimlFileCommandNode.new(nil, v[0], v[1]) } + result = make_node(val) { |v| Riml::RimlFileCommandNode.new(nil, v[0], v[1]) } result end .,., module_eval(<<'.,.,', 'riml.y', 266) def _reduce_108(val, _values, result) - result = make_node(val) { |v| Riml::RimlClassCommandNode.new(nil, v[0], v[2]) } + result = make_node(val) { |v| Riml::RimlClassCommandNode.new(nil, v[0], v[2]) } result end .,., module_eval(<<'.,.,', 'riml.y', 267) def _reduce_109(val, _values, result) - result = make_node(val) { |v| Riml::RimlClassCommandNode.new(nil, v[0], v[1]) } + result = make_node(val) { |v| Riml::RimlClassCommandNode.new(nil, v[0], v[1]) } result end .,., module_eval(<<'.,.,', 'riml.y', 271) def _reduce_110(val, _values, result) - result = ["#{val[0]}#{val[1]}"] + result = ["#{val[0]}#{val[1]}"] result end .,., module_eval(<<'.,.,', 'riml.y', 272) def _reduce_111(val, _values, result) - result = val + result = val result end .,., module_eval(<<'.,.,', 'riml.y', 273) def _reduce_112(val, _values, result) - result = val[0].concat ["#{val[2]}#{val[3]}"] + result = val[0].concat ["#{val[2]}#{val[3]}"] result end .,., module_eval(<<'.,.,', 'riml.y', 277) def _reduce_113(val, _values, result) - result = make_node(val) { |v| Riml::ExplicitCallNode.new(v[1], v[2], v[4]) } + result = make_node(val) { |v| Riml::ExplicitCallNode.new(v[1], v[2], v[4]) } result end .,., module_eval(<<'.,.,', 'riml.y', 278) def _reduce_114(val, _values, result) - result = make_node(val) { |v| Riml::ExplicitCallNode.new(nil, v[1], v[3]) } + result = make_node(val) { |v| Riml::ExplicitCallNode.new(nil, v[1], v[3]) } result end .,., module_eval(<<'.,.,', 'riml.y', 282) def _reduce_115(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 283) def _reduce_116(val, _values, result) - result = nil + result = nil result end .,., module_eval(<<'.,.,', 'riml.y', 288) def _reduce_117(val, _values, result) - result = [ nil, val[0] ] + result = [ nil, val[0] ] result end .,., module_eval(<<'.,.,', 'riml.y', 289) def _reduce_118(val, _values, result) - result = [ make_node(val) { |v| Riml::SIDNode.new(v[1]) }, val[3] ] + result = [ make_node(val) { |v| Riml::SIDNode.new(v[1]) }, val[3] ] result end .,., module_eval(<<'.,.,', 'riml.y', 293) def _reduce_119(val, _values, result) - result = [] + result = [] result end .,., module_eval(<<'.,.,', 'riml.y', 294) def _reduce_120(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 298) def _reduce_121(val, _values, result) - result = [] + result = [] result end .,., module_eval(<<'.,.,', 'riml.y', 299) def _reduce_122(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 303) def _reduce_123(val, _values, result) - result = val + result = val result end .,., module_eval(<<'.,.,', 'riml.y', 304) def _reduce_124(val, _values, result) - result = [ make_node(val) { |v| Riml::SplatNode.new(v[1]) } ] + result = [ make_node(val) { |v| Riml::SplatNode.new(v[1]) } ] result end .,., module_eval(<<'.,.,', 'riml.y', 305) def _reduce_125(val, _values, result) - result = val[0] << val[2] + result = val[0] << val[2] result end .,., module_eval(<<'.,.,', 'riml.y', 306) def _reduce_126(val, _values, result) - result = val[0] << make_node(val) { |v| Riml::SplatNode.new(v[3]) } + result = val[0] << make_node(val) { |v| Riml::SplatNode.new(v[3]) } result end .,., module_eval(<<'.,.,', 'riml.y', 310) def _reduce_127(val, _values, result) - result = val + result = val result end .,., module_eval(<<'.,.,', 'riml.y', 311) def _reduce_128(val, _values, result) - result = val[0] << val[2] + result = val[0] << val[2] result end .,., module_eval(<<'.,.,', 'riml.y', 315) def _reduce_129(val, _values, result) - result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } + result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 316) def _reduce_130(val, _values, result) - result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } + result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 318) def _reduce_131(val, _values, result) - result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } + result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 319) def _reduce_132(val, _values, result) - result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } + result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 320) def _reduce_133(val, _values, result) - result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } + result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 323) def _reduce_134(val, _values, result) - result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } + result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 325) def _reduce_135(val, _values, result) - result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } + result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 326) def _reduce_136(val, _values, result) - result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } + result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 327) def _reduce_137(val, _values, result) - result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } + result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 329) def _reduce_138(val, _values, result) - result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } + result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 330) def _reduce_139(val, _values, result) - result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } + result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 331) def _reduce_140(val, _values, result) - result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } + result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 333) def _reduce_141(val, _values, result) - result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } + result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 334) def _reduce_142(val, _values, result) - result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } + result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 335) def _reduce_143(val, _values, result) - result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } + result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 337) def _reduce_144(val, _values, result) - result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } + result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 338) def _reduce_145(val, _values, result) - result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } + result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 339) def _reduce_146(val, _values, result) - result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } + result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 341) def _reduce_147(val, _values, result) - result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } + result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 342) def _reduce_148(val, _values, result) - result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } + result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 343) def _reduce_149(val, _values, result) - result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } + result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 345) def _reduce_150(val, _values, result) - result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } + result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 346) def _reduce_151(val, _values, result) - result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } + result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 347) def _reduce_152(val, _values, result) - result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } + result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 349) def _reduce_153(val, _values, result) - result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } + result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 350) def _reduce_154(val, _values, result) - result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } + result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 351) def _reduce_155(val, _values, result) - result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } + result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 353) def _reduce_156(val, _values, result) - result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } + result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 354) def _reduce_157(val, _values, result) - result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } + result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 355) def _reduce_158(val, _values, result) - result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } + result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 356) def _reduce_159(val, _values, result) - result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } + result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 357) def _reduce_160(val, _values, result) - result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } + result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 358) def _reduce_161(val, _values, result) - result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } + result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 360) def _reduce_162(val, _values, result) - result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } + result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 361) def _reduce_163(val, _values, result) - result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } + result = make_node(val) { |v| Riml::BinaryOperatorNode.new(v[1], [v[0], v[2]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 365) def _reduce_164(val, _values, result) - result = make_node(val) { |v| Riml::UnaryOperatorNode.new(val[0], [val[1]]) } + result = make_node(val) { |v| Riml::UnaryOperatorNode.new(val[0], [val[1]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 366) def _reduce_165(val, _values, result) - result = make_node(val) { |v| Riml::UnaryOperatorNode.new(val[0], [val[1]]) } + result = make_node(val) { |v| Riml::UnaryOperatorNode.new(val[0], [val[1]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 367) def _reduce_166(val, _values, result) - result = make_node(val) { |v| Riml::UnaryOperatorNode.new(val[0], [val[1]]) } + result = make_node(val) { |v| Riml::UnaryOperatorNode.new(val[0], [val[1]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 372) def _reduce_167(val, _values, result) - result = make_node(val) { |v| Riml::AssignNode.new(v[1][0], v[1][1], v[1][2]) } + result = make_node(val) { |v| Riml::AssignNode.new(v[1][0], v[1][1], v[1][2]) } result end .,., module_eval(<<'.,.,', 'riml.y', 373) def _reduce_168(val, _values, result) - result = make_node(val) { |v| Riml::AssignNode.new(v[0][0], v[0][1], v[0][2]) } + result = make_node(val) { |v| Riml::AssignNode.new(v[0][0], v[0][1], v[0][2]) } result end .,., module_eval(<<'.,.,', 'riml.y', 377) def _reduce_169(val, _values, result) - result = make_node(val) { |v| Riml::MultiAssignNode.new([v[0], v[2]]) } + result = make_node(val) { |v| Riml::MultiAssignNode.new([v[0], v[2]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 378) def _reduce_170(val, _values, result) - val[0].assigns << val[2]; result = val[0] + val[0].assigns << val[2]; result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 383) def _reduce_171(val, _values, result) - result = [val[1], val[0], val[2]] + result = [val[1], val[0], val[2]] result end .,., module_eval(<<'.,.,', 'riml.y', 384) def _reduce_172(val, _values, result) - result = [val[1], val[0], val[2]] + result = [val[1], val[0], val[2]] result end .,., module_eval(<<'.,.,', 'riml.y', 385) def _reduce_173(val, _values, result) - result = [val[1], val[0], val[2]] + result = [val[1], val[0], val[2]] result end .,., module_eval(<<'.,.,', 'riml.y', 386) def _reduce_174(val, _values, result) - result = [val[1], val[0], val[2]] + result = [val[1], val[0], val[2]] result end .,., module_eval(<<'.,.,', 'riml.y', 390) def _reduce_175(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 391) def _reduce_176(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 392) def _reduce_177(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 393) def _reduce_178(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 394) def _reduce_179(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 399) def _reduce_180(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 400) def _reduce_181(val, _values, result) - result = make_node(val) { |v| Riml::GetSpecialVariableNode.new(v[0], v[1]) } + result = make_node(val) { |v| Riml::GetSpecialVariableNode.new(v[0], v[1]) } result end .,., module_eval(<<'.,.,', 'riml.y', 401) def _reduce_182(val, _values, result) - result = make_node(val) { |v| Riml::GetVariableByScopeAndDictNameNode.new(v[0], v[1]) } + result = make_node(val) { |v| Riml::GetVariableByScopeAndDictNameNode.new(v[0], v[1]) } result end .,., module_eval(<<'.,.,', 'riml.y', 405) def _reduce_183(val, _values, result) - result = make_node(val) { |v| Riml::GetVariableNode.new(v[0], v[1]) } + result = make_node(val) { |v| Riml::GetVariableNode.new(v[0], v[1]) } result end .,., module_eval(<<'.,.,', 'riml.y', 409) def _reduce_184(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 410) def _reduce_185(val, _values, result) - result = make_node(val) { |v| Riml::GetCurlyBraceNameNode.new(v[0], v[1]) } + result = make_node(val) { |v| Riml::GetCurlyBraceNameNode.new(v[0], v[1]) } result end .,., module_eval(<<'.,.,', 'riml.y', 414) def _reduce_186(val, _values, result) - result = make_node(val) { |v| Riml::UnletVariableNode.new('!', [ v[1] ]) } + result = make_node(val) { |v| Riml::UnletVariableNode.new('!', [ v[1] ]) } result end .,., module_eval(<<'.,.,', 'riml.y', 415) def _reduce_187(val, _values, result) - result = make_node(val) { |v| Riml::UnletVariableNode.new('!', [ v[1] ]) } + result = make_node(val) { |v| Riml::UnletVariableNode.new('!', [ v[1] ]) } result end .,., module_eval(<<'.,.,', 'riml.y', 416) def _reduce_188(val, _values, result) - result = val[0] << val[1] + result = val[0] << val[1] result end .,., module_eval(<<'.,.,', 'riml.y', 420) def _reduce_189(val, _values, result) - result = make_node(val) { |v| Riml::CurlyBraceVariable.new([ v[0] ]) } + result = make_node(val) { |v| Riml::CurlyBraceVariable.new([ v[0] ]) } result end .,., module_eval(<<'.,.,', 'riml.y', 421) def _reduce_190(val, _values, result) - result = make_node(val) { |v| Riml::CurlyBraceVariable.new([ Riml::CurlyBracePart.new(v[0]), v[1] ]) } + result = make_node(val) { |v| Riml::CurlyBraceVariable.new([ Riml::CurlyBracePart.new(v[0]), v[1] ]) } result end .,., module_eval(<<'.,.,', 'riml.y', 422) def _reduce_191(val, _values, result) - result = val[0] << make_node(val) { |v| Riml::CurlyBracePart.new(v[1]) } + result = val[0] << make_node(val) { |v| Riml::CurlyBracePart.new(v[1]) } result end .,., module_eval(<<'.,.,', 'riml.y', 423) def _reduce_192(val, _values, result) - result = val[0] << val[1] + result = val[0] << val[1] result end .,., module_eval(<<'.,.,', 'riml.y', 427) def _reduce_193(val, _values, result) - result = make_node(val) { |v| Riml::CurlyBracePart.new(v[1]) } + result = make_node(val) { |v| Riml::CurlyBracePart.new(v[1]) } result end .,., module_eval(<<'.,.,', 'riml.y', 428) def _reduce_194(val, _values, result) - result = make_node(val) { |v| Riml::CurlyBracePart.new([v[1], v[2]]) } + result = make_node(val) { |v| Riml::CurlyBracePart.new([v[1], v[2]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 429) def _reduce_195(val, _values, result) - result = make_node(val) { |v| Riml::CurlyBracePart.new([v[1], v[2]]) } + result = make_node(val) { |v| Riml::CurlyBracePart.new([v[1], v[2]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 435) def _reduce_196(val, _values, result) - result = make_node(val) { |v| Riml.const_get(val[0]).new('!', v[1][0], v[1][1], v[2], [], v[3], v[4]) } + result = make_node(val) { |v| Riml.const_get(val[0]).new('!', v[1][0], v[1][1], v[2], [], v[3], v[4]) } result end .,., module_eval(<<'.,.,', 'riml.y', 436) def _reduce_197(val, _values, result) - result = make_node(val) { |v| Riml.const_get(val[0]).new('!', v[1][0], v[1][1], v[2], v[4], v[6], v[7]) } + result = make_node(val) { |v| Riml.const_get(val[0]).new('!', v[1][0], v[1][1], v[2], v[4], v[6], v[7]) } result end .,., module_eval(<<'.,.,', 'riml.y', 437) def _reduce_198(val, _values, result) - result = make_node(val) { |v| Riml.const_get(val[0]).new('!', v[1][0], v[1][1], v[2], [v[4]], v[6], v[7]) } + result = make_node(val) { |v| Riml.const_get(val[0]).new('!', v[1][0], v[1][1], v[2], [v[4]], v[6], v[7]) } result end .,., module_eval(<<'.,.,', 'riml.y', 438) def _reduce_199(val, _values, result) - result = make_node(val) { |v| Riml.const_get(val[0]).new('!', v[1][0], v[1][1], v[2], v[4] << v[6], v[8], v[9]) } + result = make_node(val) { |v| Riml.const_get(val[0]).new('!', v[1][0], v[1][1], v[2], v[4] << v[6], v[8], v[9]) } result end .,., module_eval(<<'.,.,', 'riml.y', 442) def _reduce_200(val, _values, result) - result = "DefNode" + result = "DefNode" result end .,., module_eval(<<'.,.,', 'riml.y', 443) def _reduce_201(val, _values, result) - result = "DefNode" + result = "DefNode" result end .,., module_eval(<<'.,.,', 'riml.y', 444) def _reduce_202(val, _values, result) - result = "DefMethodNode" + result = "DefMethodNode" result end .,., module_eval(<<'.,.,', 'riml.y', 449) def _reduce_203(val, _values, result) - result = make_node(val) { |v| Riml::GetCurlyBraceNameNode.new('', v[0]) } + result = make_node(val) { |v| Riml::GetCurlyBraceNameNode.new('', v[0]) } result end .,., module_eval(<<'.,.,', 'riml.y', 450) def _reduce_204(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 455) def _reduce_205(val, _values, result) - result = [val[0]] + result = [val[0]] result end .,., module_eval(<<'.,.,', 'riml.y', 456) def _reduce_206(val, _values, result) - result = val[0] << val[1] + result = val[0] << val[1] result end .,., module_eval(<<'.,.,', 'riml.y', 457) def _reduce_207(val, _values, result) - result = nil + result = nil result end .,., module_eval(<<'.,.,', 'riml.y', 461) def _reduce_208(val, _values, result) - result = [] + result = [] result end .,., module_eval(<<'.,.,', 'riml.y', 462) def _reduce_209(val, _values, result) - result = val + result = val result end .,., module_eval(<<'.,.,', 'riml.y', 463) def _reduce_210(val, _values, result) - result = val + result = val result end .,., module_eval(<<'.,.,', 'riml.y', 464) def _reduce_211(val, _values, result) - result = val[0] << val[2] + result = val[0] << val[2] result end .,., module_eval(<<'.,.,', 'riml.y', 465) def _reduce_212(val, _values, result) - result = val[0] << val[2] + result = val[0] << val[2] result end .,., module_eval(<<'.,.,', 'riml.y', 469) def _reduce_213(val, _values, result) - result = make_node(val) { |v| Riml::DefaultParamNode.new(v[0], v[2]) } + result = make_node(val) { |v| Riml::DefaultParamNode.new(v[0], v[2]) } result end .,., module_eval(<<'.,.,', 'riml.y', 473) def _reduce_214(val, _values, result) - result = make_node(val) { |v| Riml::ReturnNode.new(v[1]) } + result = make_node(val) { |v| Riml::ReturnNode.new(v[1]) } result end .,., module_eval(<<'.,.,', 'riml.y', 474) def _reduce_215(val, _values, result) - result = make_node(val) { |v| Riml::IfNode.new(v[3], Nodes.new([ReturnNode.new(v[1])])) } + result = make_node(val) { |v| Riml::IfNode.new(v[3], Nodes.new([ReturnNode.new(v[1])])) } result end .,., module_eval(<<'.,.,', 'riml.y', 475) def _reduce_216(val, _values, result) - result = make_node(val) { |v| Riml::UnlessNode.new(v[3], Nodes.new([ReturnNode.new(v[1])])) } + result = make_node(val) { |v| Riml::UnlessNode.new(v[3], Nodes.new([ReturnNode.new(v[1])])) } result end .,., module_eval(<<'.,.,', 'riml.y', 479) def _reduce_217(val, _values, result) - result = nil + result = nil result end .,., module_eval(<<'.,.,', 'riml.y', 480) def _reduce_218(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 484) def _reduce_219(val, _values, result) - result = make_node(val) { |_| Riml::FinishNode.new } + result = make_node(val) { |_| Riml::FinishNode.new } result end .,., module_eval(<<'.,.,', 'riml.y', 489) def _reduce_220(val, _values, result) - result = make_node(val) { |v| Riml::IfNode.new(v[1], v[2]) } + result = make_node(val) { |v| Riml::IfNode.new(v[1], v[2]) } result end .,., module_eval(<<'.,.,', 'riml.y', 490) def _reduce_221(val, _values, result) - result = make_node(val) { |v| Riml::IfNode.new(v[1], Riml::Nodes.new([v[3]])) } + result = make_node(val) { |v| Riml::IfNode.new(v[1], Riml::Nodes.new([v[3]])) } result end .,., module_eval(<<'.,.,', 'riml.y', 491) def _reduce_222(val, _values, result) - result = make_node(val) { |v| Riml::IfNode.new(v[2], Riml::Nodes.new([v[0]])) } + result = make_node(val) { |v| Riml::IfNode.new(v[2], Riml::Nodes.new([v[0]])) } result end .,., module_eval(<<'.,.,', 'riml.y', 495) def _reduce_223(val, _values, result) - result = make_node(val) { |v| Riml::UnlessNode.new(v[1], v[2]) } + result = make_node(val) { |v| Riml::UnlessNode.new(v[1], v[2]) } result end .,., module_eval(<<'.,.,', 'riml.y', 496) def _reduce_224(val, _values, result) - result = make_node(val) { |v| Riml::UnlessNode.new(v[1], Riml::Nodes.new([v[3]])) } + result = make_node(val) { |v| Riml::UnlessNode.new(v[1], Riml::Nodes.new([v[3]])) } result end .,., module_eval(<<'.,.,', 'riml.y', 497) def _reduce_225(val, _values, result) - result = make_node(val) { |v| Riml::UnlessNode.new(v[2], Riml::Nodes.new([v[0]])) } + result = make_node(val) { |v| Riml::UnlessNode.new(v[2], Riml::Nodes.new([v[0]])) } result end .,., module_eval(<<'.,.,', 'riml.y', 501) def _reduce_226(val, _values, result) - result = make_node(val) { |v| Riml::TernaryOperatorNode.new([v[0], v[2], v[4]]) } + result = make_node(val) { |v| Riml::TernaryOperatorNode.new([v[0], v[2], v[4]]) } result end .,., module_eval(<<'.,.,', 'riml.y', 505) def _reduce_227(val, _values, result) - result = make_node(val) { |v| Riml::WhileNode.new(v[1], v[2]) } + result = make_node(val) { |v| Riml::WhileNode.new(v[1], v[2]) } result end .,., module_eval(<<'.,.,', 'riml.y', 509) def _reduce_228(val, _values, result) - result = make_node(val) { |_| Riml::BreakNode.new } + result = make_node(val) { |_| Riml::BreakNode.new } result end .,., module_eval(<<'.,.,', 'riml.y', 510) def _reduce_229(val, _values, result) - result = make_node(val) { |_| Riml::ContinueNode.new } + result = make_node(val) { |_| Riml::ContinueNode.new } result end .,., module_eval(<<'.,.,', 'riml.y', 514) def _reduce_230(val, _values, result) - result = make_node(val) { |v| Riml::UntilNode.new(v[1], v[2]) } + result = make_node(val) { |v| Riml::UntilNode.new(v[1], v[2]) } result end .,., module_eval(<<'.,.,', 'riml.y', 518) def _reduce_231(val, _values, result) - result = make_node(val) { |v| Riml::ForNode.new(v[1], v[3], v[4]) } + result = make_node(val) { |v| Riml::ForNode.new(v[1], v[3], v[4]) } result end .,., module_eval(<<'.,.,', 'riml.y', 519) def _reduce_232(val, _values, result) - result = make_node(val) { |v| Riml::ForNode.new(v[1], v[3], v[4]) } + result = make_node(val) { |v| Riml::ForNode.new(v[1], v[3], v[4]) } result end .,., module_eval(<<'.,.,', 'riml.y', 520) def _reduce_233(val, _values, result) - result = make_node(val) { |v| Riml::ForNode.new(v[1], v[3], v[4]) } + result = make_node(val) { |v| Riml::ForNode.new(v[1], v[3], v[4]) } result end .,., module_eval(<<'.,.,', 'riml.y', 524) def _reduce_234(val, _values, result) - result = make_node(val) { |v| Riml::TryNode.new(v[1], nil, nil) } + result = make_node(val) { |v| Riml::TryNode.new(v[1], nil, nil) } result end .,., module_eval(<<'.,.,', 'riml.y', 525) def _reduce_235(val, _values, result) - result = make_node(val) { |v| Riml::TryNode.new(v[1], v[2], nil) } + result = make_node(val) { |v| Riml::TryNode.new(v[1], v[2], nil) } result end .,., module_eval(<<'.,.,', 'riml.y', 526) def _reduce_236(val, _values, result) - result = make_node(val) { |v| Riml::TryNode.new(v[1], v[2], v[4]) } + result = make_node(val) { |v| Riml::TryNode.new(v[1], v[2], v[4]) } result end .,., module_eval(<<'.,.,', 'riml.y', 530) def _reduce_237(val, _values, result) - result = nil + result = nil result end .,., module_eval(<<'.,.,', 'riml.y', 531) def _reduce_238(val, _values, result) - result = [ make_node(val) { |v| Riml::CatchNode.new(nil, v[1]) } ] + result = [ make_node(val) { |v| Riml::CatchNode.new(nil, v[1]) } ] result end .,., module_eval(<<'.,.,', 'riml.y', 532) def _reduce_239(val, _values, result) - result = [ make_node(val) { |v| Riml::CatchNode.new(v[1], v[2]) } ] + result = [ make_node(val) { |v| Riml::CatchNode.new(v[1], v[2]) } ] result end .,., module_eval(<<'.,.,', 'riml.y', 533) def _reduce_240(val, _values, result) - result = val[0] << make_node(val) { |v| Riml::CatchNode.new(nil, v[2]) } + result = val[0] << make_node(val) { |v| Riml::CatchNode.new(nil, v[2]) } result end .,., module_eval(<<'.,.,', 'riml.y', 534) def _reduce_241(val, _values, result) - result = val[0] << make_node(val) { |v| Riml::CatchNode.new(v[2], v[3]) } + result = val[0] << make_node(val) { |v| Riml::CatchNode.new(v[2], v[3]) } result end .,., module_eval(<<'.,.,', 'riml.y', 538) def _reduce_242(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 539) def _reduce_243(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 546) def _reduce_244(val, _values, result) - result = val[1] + result = val[1] result end .,., module_eval(<<'.,.,', 'riml.y', 547) def _reduce_245(val, _values, result) - result = make_node(val) { |_| Riml::Nodes.new([]) } + result = make_node(val) { |_| Riml::Nodes.new([]) } result end .,., module_eval(<<'.,.,', 'riml.y', 551) def _reduce_246(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'riml.y', 552) def _reduce_247(val, _values, result) - result = val[1] << val[2] + result = val[1] << val[2] result end .,., module_eval(<<'.,.,', 'riml.y', 553) def _reduce_248(val, _values, result) - result = val[1] << val[2] + result = val[1] << val[2] result end .,., module_eval(<<'.,.,', 'riml.y', 554) def _reduce_249(val, _values, result) - result = val[1] << val[2] << val[3] + result = val[1] << val[2] << val[3] result end .,., module_eval(<<'.,.,', 'riml.y', 558) def _reduce_250(val, _values, result) - result = make_node(val) { |v| Riml::ElseNode.new(v[2]) } + result = make_node(val) { |v| Riml::ElseNode.new(v[2]) } result end .,., module_eval(<<'.,.,', 'riml.y', 562) def _reduce_251(val, _values, result) - result = make_node(val) { |v| Riml::Nodes.new([Riml::ElseifNode.new(v[1], v[3])]) } + result = make_node(val) { |v| Riml::Nodes.new([Riml::ElseifNode.new(v[1], v[3])]) } result end .,., module_eval(<<'.,.,', 'riml.y', 563) def _reduce_252(val, _values, result) - result = val[0] << make_node(val) { |v| Riml::ElseifNode.new(v[2], v[4]) } + result = val[0] << make_node(val) { |v| Riml::ElseifNode.new(v[2], v[4]) } result end .,., module_eval(<<'.,.,', 'riml.y', 567) def _reduce_253(val, _values, result) - result = make_node(val) { |v| Riml::ClassDefinitionNode.new(v[1], v[2], nil, v[3]) } + result = make_node(val) { |v| Riml::ClassDefinitionNode.new(v[1], v[2], nil, v[3]) } result end .,., module_eval(<<'.,.,', 'riml.y', 568) def _reduce_254(val, _values, result) - result = make_node(val) { |v| Riml::ClassDefinitionNode.new(v[1], v[2], (v[4] || ClassDefinitionNode::DEFAULT_SCOPE_MODIFIER) + v[5], v[6]) } + result = make_node(val) { |v| Riml::ClassDefinitionNode.new(v[1], v[2], (v[4] || ClassDefinitionNode::DEFAULT_SCOPE_MODIFIER) + v[5], v[6]) } result end .,., module_eval(<<'.,.,', 'riml.y', 572) def _reduce_255(val, _values, result) - result = make_node(val) { |v| Riml::ObjectInstantiationNode.new(v[1]) } + result = make_node(val) { |v| Riml::ObjectInstantiationNode.new(v[1]) } result end .,., module_eval(<<'.,.,', 'riml.y', 576) def _reduce_256(val, _values, result) - result = make_node(val) { |v| Riml::SuperNode.new(v[2], true) } + result = make_node(val) { |v| Riml::SuperNode.new(v[2], true) } result end .,., module_eval(<<'.,.,', 'riml.y', 577) def _reduce_257(val, _values, result) - result = make_node(val) { |_| Riml::SuperNode.new([], false) } + result = make_node(val) { |_| Riml::SuperNode.new([], false) } result end .,., module_eval(<<'.,.,', 'riml.y', 581) def _reduce_258(val, _values, result) - result = make_node(val) { |v| Riml::ExLiteralNode.new(v[0]) } + result = make_node(val) { |v| Riml::ExLiteralNode.new(v[0]) } result end .,., diff --git a/test/racc/regress/ruby18 b/test/racc/regress/ruby18 index fe03f3dda8..6858c1c042 100644 --- a/test/racc/regress/ruby18 +++ b/test/racc/regress/ruby18 @@ -2976,7 +2976,7 @@ Racc_debug_parser = false module_eval(<<'.,.,', 'ruby18.y', 73) def _reduce_1(val, _values, result) result = val[0] - + result end .,., @@ -2995,7 +2995,7 @@ module_eval(<<'.,.,', 'ruby18.y', 78) rescue_bodies, else_t, else_, ensure_t, ensure_) - + result end .,., @@ -3003,7 +3003,7 @@ module_eval(<<'.,.,', 'ruby18.y', 78) module_eval(<<'.,.,', 'ruby18.y', 94) def _reduce_3(val, _values, result) result = @builder.compstmt(val[0]) - + result end .,., @@ -3011,7 +3011,7 @@ module_eval(<<'.,.,', 'ruby18.y', 94) module_eval(<<'.,.,', 'ruby18.y', 99) def _reduce_4(val, _values, result) result = [] - + result end .,., @@ -3019,7 +3019,7 @@ module_eval(<<'.,.,', 'ruby18.y', 99) module_eval(<<'.,.,', 'ruby18.y', 103) def _reduce_5(val, _values, result) result = [ val[0] ] - + result end .,., @@ -3027,7 +3027,7 @@ module_eval(<<'.,.,', 'ruby18.y', 103) module_eval(<<'.,.,', 'ruby18.y', 107) def _reduce_6(val, _values, result) result = [ val[1] ] - + result end .,., @@ -3035,7 +3035,7 @@ module_eval(<<'.,.,', 'ruby18.y', 107) module_eval(<<'.,.,', 'ruby18.y', 111) def _reduce_7(val, _values, result) result = val[0] << val[2] - + result end .,., @@ -3043,7 +3043,7 @@ module_eval(<<'.,.,', 'ruby18.y', 111) module_eval(<<'.,.,', 'ruby18.y', 116) def _reduce_8(val, _values, result) @lexer.state = :expr_fname - + result end .,., @@ -3051,7 +3051,7 @@ module_eval(<<'.,.,', 'ruby18.y', 116) module_eval(<<'.,.,', 'ruby18.y', 120) def _reduce_9(val, _values, result) result = @builder.alias(val[0], val[1], val[3]) - + result end .,., @@ -3061,7 +3061,7 @@ module_eval(<<'.,.,', 'ruby18.y', 124) result = @builder.alias(val[0], @builder.gvar(val[1]), @builder.gvar(val[2])) - + result end .,., @@ -3071,7 +3071,7 @@ module_eval(<<'.,.,', 'ruby18.y', 130) result = @builder.alias(val[0], @builder.gvar(val[1]), @builder.back_ref(val[2])) - + result end .,., @@ -3079,7 +3079,7 @@ module_eval(<<'.,.,', 'ruby18.y', 130) module_eval(<<'.,.,', 'ruby18.y', 136) def _reduce_12(val, _values, result) diagnostic :error, :nth_ref_alias, nil, val[2] - + result end .,., @@ -3087,7 +3087,7 @@ module_eval(<<'.,.,', 'ruby18.y', 136) module_eval(<<'.,.,', 'ruby18.y', 140) def _reduce_13(val, _values, result) result = @builder.undef_method(val[0], val[1]) - + result end .,., @@ -3096,7 +3096,7 @@ module_eval(<<'.,.,', 'ruby18.y', 144) def _reduce_14(val, _values, result) result = @builder.condition_mod(val[0], nil, val[1], val[2]) - + result end .,., @@ -3105,7 +3105,7 @@ module_eval(<<'.,.,', 'ruby18.y', 149) def _reduce_15(val, _values, result) result = @builder.condition_mod(nil, val[0], val[1], val[2]) - + result end .,., @@ -3113,7 +3113,7 @@ module_eval(<<'.,.,', 'ruby18.y', 149) module_eval(<<'.,.,', 'ruby18.y', 154) def _reduce_16(val, _values, result) result = @builder.loop_mod(:while, val[0], val[1], val[2]) - + result end .,., @@ -3121,7 +3121,7 @@ module_eval(<<'.,.,', 'ruby18.y', 154) module_eval(<<'.,.,', 'ruby18.y', 158) def _reduce_17(val, _values, result) result = @builder.loop_mod(:until, val[0], val[1], val[2]) - + result end .,., @@ -3133,7 +3133,7 @@ module_eval(<<'.,.,', 'ruby18.y', 162) nil, val[2]) result = @builder.begin_body(val[0], [ rescue_body ]) - + result end .,., @@ -3145,7 +3145,7 @@ module_eval(<<'.,.,', 'ruby18.y', 170) end result = @builder.preexe(val[0], val[1], val[2], val[3]) - + result end .,., @@ -3153,7 +3153,7 @@ module_eval(<<'.,.,', 'ruby18.y', 170) module_eval(<<'.,.,', 'ruby18.y', 178) def _reduce_20(val, _values, result) result = @builder.postexe(val[0], val[1], val[2], val[3]) - + result end .,., @@ -3161,7 +3161,7 @@ module_eval(<<'.,.,', 'ruby18.y', 178) module_eval(<<'.,.,', 'ruby18.y', 182) def _reduce_21(val, _values, result) result = @builder.assign(val[0], val[1], val[2]) - + result end .,., @@ -3169,7 +3169,7 @@ module_eval(<<'.,.,', 'ruby18.y', 182) module_eval(<<'.,.,', 'ruby18.y', 186) def _reduce_22(val, _values, result) result = @builder.multi_assign(val[0], val[1], val[2]) - + result end .,., @@ -3177,7 +3177,7 @@ module_eval(<<'.,.,', 'ruby18.y', 186) module_eval(<<'.,.,', 'ruby18.y', 190) def _reduce_23(val, _values, result) result = @builder.op_assign(val[0], val[1], val[2]) - + result end .,., @@ -3188,7 +3188,7 @@ module_eval(<<'.,.,', 'ruby18.y', 194) @builder.index( val[0], val[1], val[2], val[3]), val[4], val[5]) - + result end .,., @@ -3199,7 +3199,7 @@ module_eval(<<'.,.,', 'ruby18.y', 201) @builder.call_method( val[0], val[1], val[2]), val[3], val[4]) - + result end .,., @@ -3210,7 +3210,7 @@ module_eval(<<'.,.,', 'ruby18.y', 208) @builder.call_method( val[0], val[1], val[2]), val[3], val[4]) - + result end .,., @@ -3221,7 +3221,7 @@ module_eval(<<'.,.,', 'ruby18.y', 215) @builder.call_method( val[0], val[1], val[2]), val[3], val[4]) - + result end .,., @@ -3229,7 +3229,7 @@ module_eval(<<'.,.,', 'ruby18.y', 215) module_eval(<<'.,.,', 'ruby18.y', 222) def _reduce_28(val, _values, result) @builder.op_assign(val[0], val[1], val[2]) - + result end .,., @@ -3238,7 +3238,7 @@ module_eval(<<'.,.,', 'ruby18.y', 226) def _reduce_29(val, _values, result) result = @builder.assign(val[0], val[1], @builder.array(nil, val[2], nil)) - + result end .,., @@ -3246,7 +3246,7 @@ module_eval(<<'.,.,', 'ruby18.y', 226) module_eval(<<'.,.,', 'ruby18.y', 231) def _reduce_30(val, _values, result) result = @builder.multi_assign(val[0], val[1], val[2]) - + result end .,., @@ -3255,7 +3255,7 @@ module_eval(<<'.,.,', 'ruby18.y', 235) def _reduce_31(val, _values, result) result = @builder.multi_assign(val[0], val[1], @builder.array(nil, val[2], nil)) - + result end .,., @@ -3267,7 +3267,7 @@ module_eval(<<'.,.,', 'ruby18.y', 235) module_eval(<<'.,.,', 'ruby18.y', 243) def _reduce_34(val, _values, result) result = @builder.logical_op(:and, val[0], val[1], val[2]) - + result end .,., @@ -3275,7 +3275,7 @@ module_eval(<<'.,.,', 'ruby18.y', 243) module_eval(<<'.,.,', 'ruby18.y', 247) def _reduce_35(val, _values, result) result = @builder.logical_op(:or, val[0], val[1], val[2]) - + result end .,., @@ -3283,7 +3283,7 @@ module_eval(<<'.,.,', 'ruby18.y', 247) module_eval(<<'.,.,', 'ruby18.y', 251) def _reduce_36(val, _values, result) result = @builder.not_op(val[0], nil, val[1], nil) - + result end .,., @@ -3291,7 +3291,7 @@ module_eval(<<'.,.,', 'ruby18.y', 251) module_eval(<<'.,.,', 'ruby18.y', 255) def _reduce_37(val, _values, result) result = @builder.not_op(val[0], nil, val[1], nil) - + result end .,., @@ -3308,7 +3308,7 @@ module_eval(<<'.,.,', 'ruby18.y', 265) def _reduce_42(val, _values, result) result = @builder.keyword_cmd(:return, val[0], nil, val[1], nil) - + result end .,., @@ -3317,7 +3317,7 @@ module_eval(<<'.,.,', 'ruby18.y', 270) def _reduce_43(val, _values, result) result = @builder.keyword_cmd(:break, val[0], nil, val[1], nil) - + result end .,., @@ -3326,7 +3326,7 @@ module_eval(<<'.,.,', 'ruby18.y', 275) def _reduce_44(val, _values, result) result = @builder.keyword_cmd(:next, val[0], nil, val[1], nil) - + result end .,., @@ -3338,7 +3338,7 @@ module_eval(<<'.,.,', 'ruby18.y', 282) lparen_t, args, rparen_t = val[3] result = @builder.call_method(val[0], val[1], val[2], lparen_t, args, rparen_t) - + result end .,., @@ -3348,7 +3348,7 @@ module_eval(<<'.,.,', 'ruby18.y', 288) lparen_t, args, rparen_t = val[3] result = @builder.call_method(val[0], val[1], val[2], lparen_t, args, rparen_t) - + result end .,., @@ -3356,7 +3356,7 @@ module_eval(<<'.,.,', 'ruby18.y', 288) module_eval(<<'.,.,', 'ruby18.y', 295) def _reduce_48(val, _values, result) @static_env.extend_dynamic - + result end .,., @@ -3366,7 +3366,7 @@ module_eval(<<'.,.,', 'ruby18.y', 299) result = [ val[0], val[2], val[3], val[4] ] @static_env.unextend - + result end .,., @@ -3376,7 +3376,7 @@ module_eval(<<'.,.,', 'ruby18.y', 306) lparen_t, args, rparen_t = val[1] result = @builder.call_method(nil, nil, val[0], lparen_t, args, rparen_t) - + result end .,., @@ -3390,7 +3390,7 @@ module_eval(<<'.,.,', 'ruby18.y', 312) begin_t, block_args, body, end_t = val[2] result = @builder.block(method_call, begin_t, block_args, body, end_t) - + result end .,., @@ -3401,7 +3401,7 @@ module_eval(<<'.,.,', 'ruby18.y', 322) result = @builder.call_method(val[0], val[1], val[2], lparen_t, args, rparen_t) - + result end .,., @@ -3415,7 +3415,7 @@ module_eval(<<'.,.,', 'ruby18.y', 329) begin_t, block_args, body, end_t = val[4] result = @builder.block(method_call, begin_t, block_args, body, end_t) - + result end .,., @@ -3425,7 +3425,7 @@ module_eval(<<'.,.,', 'ruby18.y', 339) lparen_t, args, rparen_t = val[3] result = @builder.call_method(val[0], val[1], val[2], lparen_t, args, rparen_t) - + result end .,., @@ -3439,7 +3439,7 @@ module_eval(<<'.,.,', 'ruby18.y', 345) begin_t, block_args, body, end_t = val[4] result = @builder.block(method_call, begin_t, block_args, body, end_t) - + result end .,., @@ -3449,7 +3449,7 @@ module_eval(<<'.,.,', 'ruby18.y', 355) lparen_t, args, rparen_t = val[1] result = @builder.keyword_cmd(:super, val[0], lparen_t, args, rparen_t) - + result end .,., @@ -3459,7 +3459,7 @@ module_eval(<<'.,.,', 'ruby18.y', 361) lparen_t, args, rparen_t = val[1] result = @builder.keyword_cmd(:yield, val[0], lparen_t, args, rparen_t) - + result end .,., @@ -3467,7 +3467,7 @@ module_eval(<<'.,.,', 'ruby18.y', 361) module_eval(<<'.,.,', 'ruby18.y', 368) def _reduce_58(val, _values, result) result = @builder.multi_lhs(nil, val[0], nil) - + result end .,., @@ -3475,7 +3475,7 @@ module_eval(<<'.,.,', 'ruby18.y', 368) module_eval(<<'.,.,', 'ruby18.y', 372) def _reduce_59(val, _values, result) result = @builder.begin(val[0], val[1], val[2]) - + result end .,., @@ -3483,7 +3483,7 @@ module_eval(<<'.,.,', 'ruby18.y', 372) module_eval(<<'.,.,', 'ruby18.y', 377) def _reduce_60(val, _values, result) result = @builder.multi_lhs(nil, val[0], nil) - + result end .,., @@ -3491,7 +3491,7 @@ module_eval(<<'.,.,', 'ruby18.y', 377) module_eval(<<'.,.,', 'ruby18.y', 381) def _reduce_61(val, _values, result) result = @builder.multi_lhs(val[0], val[1], val[2]) - + result end .,., @@ -3499,7 +3499,7 @@ module_eval(<<'.,.,', 'ruby18.y', 381) module_eval(<<'.,.,', 'ruby18.y', 386) def _reduce_62(val, _values, result) result = val[0] - + result end .,., @@ -3507,7 +3507,7 @@ module_eval(<<'.,.,', 'ruby18.y', 386) module_eval(<<'.,.,', 'ruby18.y', 390) def _reduce_63(val, _values, result) result = val[0] << val[1] - + result end .,., @@ -3515,7 +3515,7 @@ module_eval(<<'.,.,', 'ruby18.y', 390) module_eval(<<'.,.,', 'ruby18.y', 394) def _reduce_64(val, _values, result) result = val[0] << @builder.splat(val[1], val[2]) - + result end .,., @@ -3523,7 +3523,7 @@ module_eval(<<'.,.,', 'ruby18.y', 394) module_eval(<<'.,.,', 'ruby18.y', 398) def _reduce_65(val, _values, result) result = val[0] << @builder.splat(val[1]) - + result end .,., @@ -3531,7 +3531,7 @@ module_eval(<<'.,.,', 'ruby18.y', 398) module_eval(<<'.,.,', 'ruby18.y', 402) def _reduce_66(val, _values, result) result = [ @builder.splat(val[0], val[1]) ] - + result end .,., @@ -3539,7 +3539,7 @@ module_eval(<<'.,.,', 'ruby18.y', 402) module_eval(<<'.,.,', 'ruby18.y', 406) def _reduce_67(val, _values, result) result = [ @builder.splat(val[0]) ] - + result end .,., @@ -3549,7 +3549,7 @@ module_eval(<<'.,.,', 'ruby18.y', 406) module_eval(<<'.,.,', 'ruby18.y', 412) def _reduce_69(val, _values, result) result = @builder.begin(val[0], val[1], val[2]) - + result end .,., @@ -3557,7 +3557,7 @@ module_eval(<<'.,.,', 'ruby18.y', 412) module_eval(<<'.,.,', 'ruby18.y', 417) def _reduce_70(val, _values, result) result = [ val[0] ] - + result end .,., @@ -3565,7 +3565,7 @@ module_eval(<<'.,.,', 'ruby18.y', 417) module_eval(<<'.,.,', 'ruby18.y', 421) def _reduce_71(val, _values, result) result = val[0] << val[1] - + result end .,., @@ -3573,7 +3573,7 @@ module_eval(<<'.,.,', 'ruby18.y', 421) module_eval(<<'.,.,', 'ruby18.y', 426) def _reduce_72(val, _values, result) result = @builder.assignable(val[0]) - + result end .,., @@ -3581,7 +3581,7 @@ module_eval(<<'.,.,', 'ruby18.y', 426) module_eval(<<'.,.,', 'ruby18.y', 430) def _reduce_73(val, _values, result) result = @builder.index_asgn(val[0], val[1], val[2], val[3]) - + result end .,., @@ -3589,7 +3589,7 @@ module_eval(<<'.,.,', 'ruby18.y', 430) module_eval(<<'.,.,', 'ruby18.y', 434) def _reduce_74(val, _values, result) result = @builder.attr_asgn(val[0], val[1], val[2]) - + result end .,., @@ -3597,7 +3597,7 @@ module_eval(<<'.,.,', 'ruby18.y', 434) module_eval(<<'.,.,', 'ruby18.y', 438) def _reduce_75(val, _values, result) result = @builder.attr_asgn(val[0], val[1], val[2]) - + result end .,., @@ -3605,7 +3605,7 @@ module_eval(<<'.,.,', 'ruby18.y', 438) module_eval(<<'.,.,', 'ruby18.y', 442) def _reduce_76(val, _values, result) result = @builder.attr_asgn(val[0], val[1], val[2]) - + result end .,., @@ -3614,7 +3614,7 @@ module_eval(<<'.,.,', 'ruby18.y', 446) def _reduce_77(val, _values, result) result = @builder.assignable( @builder.const_fetch(val[0], val[1], val[2])) - + result end .,., @@ -3623,7 +3623,7 @@ module_eval(<<'.,.,', 'ruby18.y', 451) def _reduce_78(val, _values, result) result = @builder.assignable( @builder.const_global(val[0], val[1])) - + result end .,., @@ -3631,7 +3631,7 @@ module_eval(<<'.,.,', 'ruby18.y', 451) module_eval(<<'.,.,', 'ruby18.y', 456) def _reduce_79(val, _values, result) result = @builder.assignable(val[0]) - + result end .,., @@ -3639,7 +3639,7 @@ module_eval(<<'.,.,', 'ruby18.y', 456) module_eval(<<'.,.,', 'ruby18.y', 461) def _reduce_80(val, _values, result) result = @builder.assignable(val[0]) - + result end .,., @@ -3647,7 +3647,7 @@ module_eval(<<'.,.,', 'ruby18.y', 461) module_eval(<<'.,.,', 'ruby18.y', 465) def _reduce_81(val, _values, result) result = @builder.index_asgn(val[0], val[1], val[2], val[3]) - + result end .,., @@ -3655,7 +3655,7 @@ module_eval(<<'.,.,', 'ruby18.y', 465) module_eval(<<'.,.,', 'ruby18.y', 469) def _reduce_82(val, _values, result) result = @builder.attr_asgn(val[0], val[1], val[2]) - + result end .,., @@ -3663,7 +3663,7 @@ module_eval(<<'.,.,', 'ruby18.y', 469) module_eval(<<'.,.,', 'ruby18.y', 473) def _reduce_83(val, _values, result) result = @builder.attr_asgn(val[0], val[1], val[2]) - + result end .,., @@ -3671,7 +3671,7 @@ module_eval(<<'.,.,', 'ruby18.y', 473) module_eval(<<'.,.,', 'ruby18.y', 477) def _reduce_84(val, _values, result) result = @builder.attr_asgn(val[0], val[1], val[2]) - + result end .,., @@ -3680,7 +3680,7 @@ module_eval(<<'.,.,', 'ruby18.y', 481) def _reduce_85(val, _values, result) result = @builder.assignable( @builder.const_fetch(val[0], val[1], val[2])) - + result end .,., @@ -3689,7 +3689,7 @@ module_eval(<<'.,.,', 'ruby18.y', 486) def _reduce_86(val, _values, result) result = @builder.assignable( @builder.const_global(val[0], val[1])) - + result end .,., @@ -3697,7 +3697,7 @@ module_eval(<<'.,.,', 'ruby18.y', 486) module_eval(<<'.,.,', 'ruby18.y', 491) def _reduce_87(val, _values, result) result = @builder.assignable(val[0]) - + result end .,., @@ -3705,7 +3705,7 @@ module_eval(<<'.,.,', 'ruby18.y', 491) module_eval(<<'.,.,', 'ruby18.y', 496) def _reduce_88(val, _values, result) diagnostic :error, :module_name_const, nil, val[0] - + result end .,., @@ -3715,7 +3715,7 @@ module_eval(<<'.,.,', 'ruby18.y', 496) module_eval(<<'.,.,', 'ruby18.y', 502) def _reduce_90(val, _values, result) result = @builder.const_global(val[0], val[1]) - + result end .,., @@ -3723,7 +3723,7 @@ module_eval(<<'.,.,', 'ruby18.y', 502) module_eval(<<'.,.,', 'ruby18.y', 506) def _reduce_91(val, _values, result) result = @builder.const(val[0]) - + result end .,., @@ -3731,7 +3731,7 @@ module_eval(<<'.,.,', 'ruby18.y', 506) module_eval(<<'.,.,', 'ruby18.y', 510) def _reduce_92(val, _values, result) result = @builder.const_fetch(val[0], val[1], val[2]) - + result end .,., @@ -3749,7 +3749,7 @@ module_eval(<<'.,.,', 'ruby18.y', 510) module_eval(<<'.,.,', 'ruby18.y', 519) def _reduce_98(val, _values, result) result = @builder.symbol(val[0]) - + result end .,., @@ -3763,7 +3763,7 @@ module_eval(<<'.,.,', 'ruby18.y', 519) module_eval(<<'.,.,', 'ruby18.y', 528) def _reduce_102(val, _values, result) result = [ val[0] ] - + result end .,., @@ -3771,7 +3771,7 @@ module_eval(<<'.,.,', 'ruby18.y', 528) module_eval(<<'.,.,', 'ruby18.y', 532) def _reduce_103(val, _values, result) @lexer.state = :expr_fname - + result end .,., @@ -3779,7 +3779,7 @@ module_eval(<<'.,.,', 'ruby18.y', 532) module_eval(<<'.,.,', 'ruby18.y', 536) def _reduce_104(val, _values, result) result = val[0] << val[3] - + result end .,., @@ -3919,7 +3919,7 @@ module_eval(<<'.,.,', 'ruby18.y', 536) module_eval(<<'.,.,', 'ruby18.y', 555) def _reduce_171(val, _values, result) result = @builder.assign(val[0], val[1], val[2]) - + result end .,., @@ -3933,7 +3933,7 @@ module_eval(<<'.,.,', 'ruby18.y', 559) rescue_ = @builder.begin_body(val[2], [ rescue_body ]) result = @builder.assign(val[0], val[1], rescue_) - + result end .,., @@ -3941,7 +3941,7 @@ module_eval(<<'.,.,', 'ruby18.y', 559) module_eval(<<'.,.,', 'ruby18.y', 569) def _reduce_173(val, _values, result) result = @builder.op_assign(val[0], val[1], val[2]) - + result end .,., @@ -3952,7 +3952,7 @@ module_eval(<<'.,.,', 'ruby18.y', 573) @builder.index( val[0], val[1], val[2], val[3]), val[4], val[5]) - + result end .,., @@ -3963,7 +3963,7 @@ module_eval(<<'.,.,', 'ruby18.y', 580) @builder.call_method( val[0], val[1], val[2]), val[3], val[4]) - + result end .,., @@ -3974,7 +3974,7 @@ module_eval(<<'.,.,', 'ruby18.y', 587) @builder.call_method( val[0], val[1], val[2]), val[3], val[4]) - + result end .,., @@ -3985,7 +3985,7 @@ module_eval(<<'.,.,', 'ruby18.y', 594) @builder.call_method( val[0], val[1], val[2]), val[3], val[4]) - + result end .,., @@ -3993,7 +3993,7 @@ module_eval(<<'.,.,', 'ruby18.y', 594) module_eval(<<'.,.,', 'ruby18.y', 601) def _reduce_178(val, _values, result) diagnostic :error, :dynamic_const, nil, val[2], [ val[3] ] - + result end .,., @@ -4001,7 +4001,7 @@ module_eval(<<'.,.,', 'ruby18.y', 601) module_eval(<<'.,.,', 'ruby18.y', 605) def _reduce_179(val, _values, result) diagnostic :error, :dynamic_const, nil, val[1], [ val[2] ] - + result end .,., @@ -4009,7 +4009,7 @@ module_eval(<<'.,.,', 'ruby18.y', 605) module_eval(<<'.,.,', 'ruby18.y', 609) def _reduce_180(val, _values, result) result = @builder.op_assign(val[0], val[1], val[2]) - + result end .,., @@ -4017,7 +4017,7 @@ module_eval(<<'.,.,', 'ruby18.y', 609) module_eval(<<'.,.,', 'ruby18.y', 613) def _reduce_181(val, _values, result) result = @builder.range_inclusive(val[0], val[1], val[2]) - + result end .,., @@ -4025,7 +4025,7 @@ module_eval(<<'.,.,', 'ruby18.y', 613) module_eval(<<'.,.,', 'ruby18.y', 617) def _reduce_182(val, _values, result) result = @builder.range_exclusive(val[0], val[1], val[2]) - + result end .,., @@ -4033,7 +4033,7 @@ module_eval(<<'.,.,', 'ruby18.y', 617) module_eval(<<'.,.,', 'ruby18.y', 621) def _reduce_183(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) - + result end .,., @@ -4041,7 +4041,7 @@ module_eval(<<'.,.,', 'ruby18.y', 621) module_eval(<<'.,.,', 'ruby18.y', 625) def _reduce_184(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) - + result end .,., @@ -4049,7 +4049,7 @@ module_eval(<<'.,.,', 'ruby18.y', 625) module_eval(<<'.,.,', 'ruby18.y', 629) def _reduce_185(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) - + result end .,., @@ -4057,7 +4057,7 @@ module_eval(<<'.,.,', 'ruby18.y', 629) module_eval(<<'.,.,', 'ruby18.y', 633) def _reduce_186(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) - + result end .,., @@ -4065,7 +4065,7 @@ module_eval(<<'.,.,', 'ruby18.y', 633) module_eval(<<'.,.,', 'ruby18.y', 637) def _reduce_187(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) - + result end .,., @@ -4073,7 +4073,7 @@ module_eval(<<'.,.,', 'ruby18.y', 637) module_eval(<<'.,.,', 'ruby18.y', 641) def _reduce_188(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) - + result end .,., @@ -4084,7 +4084,7 @@ module_eval(<<'.,.,', 'ruby18.y', 645) @builder.binary_op( @builder.integer(val[1]), val[2], val[3])) - + result end .,., @@ -4095,7 +4095,7 @@ module_eval(<<'.,.,', 'ruby18.y', 652) @builder.binary_op( @builder.float(val[1]), val[2], val[3])) - + result end .,., @@ -4103,7 +4103,7 @@ module_eval(<<'.,.,', 'ruby18.y', 652) module_eval(<<'.,.,', 'ruby18.y', 659) def _reduce_191(val, _values, result) result = @builder.unary_op(val[0], val[1]) - + result end .,., @@ -4111,7 +4111,7 @@ module_eval(<<'.,.,', 'ruby18.y', 659) module_eval(<<'.,.,', 'ruby18.y', 663) def _reduce_192(val, _values, result) result = @builder.unary_op(val[0], val[1]) - + result end .,., @@ -4119,7 +4119,7 @@ module_eval(<<'.,.,', 'ruby18.y', 663) module_eval(<<'.,.,', 'ruby18.y', 667) def _reduce_193(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) - + result end .,., @@ -4127,7 +4127,7 @@ module_eval(<<'.,.,', 'ruby18.y', 667) module_eval(<<'.,.,', 'ruby18.y', 671) def _reduce_194(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) - + result end .,., @@ -4135,7 +4135,7 @@ module_eval(<<'.,.,', 'ruby18.y', 671) module_eval(<<'.,.,', 'ruby18.y', 675) def _reduce_195(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) - + result end .,., @@ -4143,7 +4143,7 @@ module_eval(<<'.,.,', 'ruby18.y', 675) module_eval(<<'.,.,', 'ruby18.y', 679) def _reduce_196(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) - + result end .,., @@ -4151,7 +4151,7 @@ module_eval(<<'.,.,', 'ruby18.y', 679) module_eval(<<'.,.,', 'ruby18.y', 683) def _reduce_197(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) - + result end .,., @@ -4159,7 +4159,7 @@ module_eval(<<'.,.,', 'ruby18.y', 683) module_eval(<<'.,.,', 'ruby18.y', 687) def _reduce_198(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) - + result end .,., @@ -4167,7 +4167,7 @@ module_eval(<<'.,.,', 'ruby18.y', 687) module_eval(<<'.,.,', 'ruby18.y', 691) def _reduce_199(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) - + result end .,., @@ -4175,7 +4175,7 @@ module_eval(<<'.,.,', 'ruby18.y', 691) module_eval(<<'.,.,', 'ruby18.y', 695) def _reduce_200(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) - + result end .,., @@ -4183,7 +4183,7 @@ module_eval(<<'.,.,', 'ruby18.y', 695) module_eval(<<'.,.,', 'ruby18.y', 699) def _reduce_201(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) - + result end .,., @@ -4191,7 +4191,7 @@ module_eval(<<'.,.,', 'ruby18.y', 699) module_eval(<<'.,.,', 'ruby18.y', 703) def _reduce_202(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) - + result end .,., @@ -4199,7 +4199,7 @@ module_eval(<<'.,.,', 'ruby18.y', 703) module_eval(<<'.,.,', 'ruby18.y', 707) def _reduce_203(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) - + result end .,., @@ -4207,7 +4207,7 @@ module_eval(<<'.,.,', 'ruby18.y', 707) module_eval(<<'.,.,', 'ruby18.y', 711) def _reduce_204(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) - + result end .,., @@ -4215,7 +4215,7 @@ module_eval(<<'.,.,', 'ruby18.y', 711) module_eval(<<'.,.,', 'ruby18.y', 715) def _reduce_205(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) - + result end .,., @@ -4223,7 +4223,7 @@ module_eval(<<'.,.,', 'ruby18.y', 715) module_eval(<<'.,.,', 'ruby18.y', 719) def _reduce_206(val, _values, result) result = @builder.not_op(val[0], nil, val[1], nil) - + result end .,., @@ -4231,7 +4231,7 @@ module_eval(<<'.,.,', 'ruby18.y', 719) module_eval(<<'.,.,', 'ruby18.y', 723) def _reduce_207(val, _values, result) result = @builder.unary_op(val[0], val[1]) - + result end .,., @@ -4239,7 +4239,7 @@ module_eval(<<'.,.,', 'ruby18.y', 723) module_eval(<<'.,.,', 'ruby18.y', 727) def _reduce_208(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) - + result end .,., @@ -4247,7 +4247,7 @@ module_eval(<<'.,.,', 'ruby18.y', 727) module_eval(<<'.,.,', 'ruby18.y', 731) def _reduce_209(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) - + result end .,., @@ -4255,7 +4255,7 @@ module_eval(<<'.,.,', 'ruby18.y', 731) module_eval(<<'.,.,', 'ruby18.y', 735) def _reduce_210(val, _values, result) result = @builder.logical_op(:and, val[0], val[1], val[2]) - + result end .,., @@ -4263,7 +4263,7 @@ module_eval(<<'.,.,', 'ruby18.y', 735) module_eval(<<'.,.,', 'ruby18.y', 739) def _reduce_211(val, _values, result) result = @builder.logical_op(:or, val[0], val[1], val[2]) - + result end .,., @@ -4271,7 +4271,7 @@ module_eval(<<'.,.,', 'ruby18.y', 739) module_eval(<<'.,.,', 'ruby18.y', 743) def _reduce_212(val, _values, result) result = @builder.keyword_cmd(:defined?, val[0], nil, [ val[2] ], nil) - + result end .,., @@ -4280,7 +4280,7 @@ module_eval(<<'.,.,', 'ruby18.y', 747) def _reduce_213(val, _values, result) result = @builder.ternary(val[0], val[1], val[2], val[3], val[4]) - + result end .,., @@ -4294,7 +4294,7 @@ module_eval(<<'.,.,', 'ruby18.y', 747) module_eval(<<'.,.,', 'ruby18.y', 757) def _reduce_217(val, _values, result) result = [ val[0] ] - + result end .,., @@ -4302,7 +4302,7 @@ module_eval(<<'.,.,', 'ruby18.y', 757) module_eval(<<'.,.,', 'ruby18.y', 761) def _reduce_218(val, _values, result) result = val[0] - + result end .,., @@ -4310,7 +4310,7 @@ module_eval(<<'.,.,', 'ruby18.y', 761) module_eval(<<'.,.,', 'ruby18.y', 765) def _reduce_219(val, _values, result) result = val[0] << @builder.splat(val[2], val[3]) - + result end .,., @@ -4318,7 +4318,7 @@ module_eval(<<'.,.,', 'ruby18.y', 765) module_eval(<<'.,.,', 'ruby18.y', 769) def _reduce_220(val, _values, result) result = [ @builder.associate(nil, val[0], nil) ] - + result end .,., @@ -4326,7 +4326,7 @@ module_eval(<<'.,.,', 'ruby18.y', 769) module_eval(<<'.,.,', 'ruby18.y', 773) def _reduce_221(val, _values, result) result = [ @builder.splat(val[0], val[1]) ] - + result end .,., @@ -4334,7 +4334,7 @@ module_eval(<<'.,.,', 'ruby18.y', 773) module_eval(<<'.,.,', 'ruby18.y', 778) def _reduce_222(val, _values, result) result = [ val[0], [], val[2] ] - + result end .,., @@ -4342,7 +4342,7 @@ module_eval(<<'.,.,', 'ruby18.y', 778) module_eval(<<'.,.,', 'ruby18.y', 782) def _reduce_223(val, _values, result) result = [ val[0], val[1], val[3] ] - + result end .,., @@ -4350,7 +4350,7 @@ module_eval(<<'.,.,', 'ruby18.y', 782) module_eval(<<'.,.,', 'ruby18.y', 786) def _reduce_224(val, _values, result) result = [ val[0], [ val[1] ], val[3] ] - + result end .,., @@ -4358,7 +4358,7 @@ module_eval(<<'.,.,', 'ruby18.y', 786) module_eval(<<'.,.,', 'ruby18.y', 790) def _reduce_225(val, _values, result) result = [ val[0], val[1] << val[3], val[5] ] - + result end .,., @@ -4366,7 +4366,7 @@ module_eval(<<'.,.,', 'ruby18.y', 790) module_eval(<<'.,.,', 'ruby18.y', 795) def _reduce_226(val, _values, result) result = [ nil, [], nil ] - + result end .,., @@ -4376,7 +4376,7 @@ module_eval(<<'.,.,', 'ruby18.y', 795) module_eval(<<'.,.,', 'ruby18.y', 801) def _reduce_228(val, _values, result) result = [ val[0] ] - + result end .,., @@ -4384,7 +4384,7 @@ module_eval(<<'.,.,', 'ruby18.y', 801) module_eval(<<'.,.,', 'ruby18.y', 805) def _reduce_229(val, _values, result) result = val[0].concat(val[1]) - + result end .,., @@ -4394,7 +4394,7 @@ module_eval(<<'.,.,', 'ruby18.y', 809) result = val[0].concat( [ @builder.splat(val[2], val[3]), *val[4] ]) - + result end .,., @@ -4403,7 +4403,7 @@ module_eval(<<'.,.,', 'ruby18.y', 815) def _reduce_231(val, _values, result) result = [ @builder.associate(nil, val[0], nil), *val[1] ] - + result end .,., @@ -4413,7 +4413,7 @@ module_eval(<<'.,.,', 'ruby18.y', 820) result = [ @builder.associate(nil, val[0], nil), @builder.splat(val[2], val[3]), *val[4] ] - + result end .,., @@ -4423,7 +4423,7 @@ module_eval(<<'.,.,', 'ruby18.y', 826) result = val[0].concat( [ @builder.associate(nil, val[2], nil), *val[3] ]) - + result end .,., @@ -4434,7 +4434,7 @@ module_eval(<<'.,.,', 'ruby18.y', 832) [ @builder.associate(nil, val[2], nil), @builder.splat(val[4], val[5]), *val[6] ]) - + result end .,., @@ -4443,7 +4443,7 @@ module_eval(<<'.,.,', 'ruby18.y', 839) def _reduce_235(val, _values, result) result = [ @builder.splat(val[0], val[1]), *val[2] ] - + result end .,., @@ -4451,7 +4451,7 @@ module_eval(<<'.,.,', 'ruby18.y', 839) module_eval(<<'.,.,', 'ruby18.y', 844) def _reduce_236(val, _values, result) result = [ val[0] ] - + result end .,., @@ -4459,7 +4459,7 @@ module_eval(<<'.,.,', 'ruby18.y', 844) module_eval(<<'.,.,', 'ruby18.y', 849) def _reduce_237(val, _values, result) result = [ val[0], *val[2].concat(val[3]) ] - + result end .,., @@ -4467,7 +4467,7 @@ module_eval(<<'.,.,', 'ruby18.y', 849) module_eval(<<'.,.,', 'ruby18.y', 853) def _reduce_238(val, _values, result) result = [ val[0], val[2] ] - + result end .,., @@ -4477,7 +4477,7 @@ module_eval(<<'.,.,', 'ruby18.y', 857) result = [ val[0], @builder.splat(val[2], val[3]), *val[4] ] - + result end .,., @@ -4488,7 +4488,7 @@ module_eval(<<'.,.,', 'ruby18.y', 863) *val[2]. push(@builder.splat(val[4], val[5])). concat(val[6]) ] - + result end .,., @@ -4497,7 +4497,7 @@ module_eval(<<'.,.,', 'ruby18.y', 870) def _reduce_241(val, _values, result) result = [ @builder.associate(nil, val[0], nil), *val[1] ] - + result end .,., @@ -4507,7 +4507,7 @@ module_eval(<<'.,.,', 'ruby18.y', 875) result = [ @builder.associate(nil, val[0], nil), @builder.splat(val[2], val[3]), *val[4] ] - + result end .,., @@ -4517,7 +4517,7 @@ module_eval(<<'.,.,', 'ruby18.y', 881) result = [ val[0], @builder.associate(nil, val[2], nil), *val[3] ] - + result end .,., @@ -4528,7 +4528,7 @@ module_eval(<<'.,.,', 'ruby18.y', 887) *val[2]. push(@builder.associate(nil, val[4], nil)). concat(val[5]) ] - + result end .,., @@ -4539,7 +4539,7 @@ module_eval(<<'.,.,', 'ruby18.y', 894) @builder.associate(nil, val[2], nil), @builder.splat(val[4], val[5]), *val[6] ] - + result end .,., @@ -4551,7 +4551,7 @@ module_eval(<<'.,.,', 'ruby18.y', 901) push(@builder.associate(nil, val[4], nil)). push(@builder.splat(val[6], val[7])). concat(val[8]) ] - + result end .,., @@ -4560,7 +4560,7 @@ module_eval(<<'.,.,', 'ruby18.y', 909) def _reduce_247(val, _values, result) result = [ @builder.splat(val[0], val[1]), *val[2] ] - + result end .,., @@ -4568,7 +4568,7 @@ module_eval(<<'.,.,', 'ruby18.y', 909) module_eval(<<'.,.,', 'ruby18.y', 914) def _reduce_248(val, _values, result) result = [ val[0] ] - + result end .,., @@ -4577,7 +4577,7 @@ module_eval(<<'.,.,', 'ruby18.y', 918) def _reduce_249(val, _values, result) result = @lexer.cmdarg.dup @lexer.cmdarg.push(true) - + result end .,., @@ -4587,7 +4587,7 @@ module_eval(<<'.,.,', 'ruby18.y', 923) @lexer.cmdarg = val[0] result = val[1] - + result end .,., @@ -4595,7 +4595,7 @@ module_eval(<<'.,.,', 'ruby18.y', 923) module_eval(<<'.,.,', 'ruby18.y', 930) def _reduce_251(val, _values, result) result = [ nil, val[0], nil ] - + result end .,., @@ -4603,7 +4603,7 @@ module_eval(<<'.,.,', 'ruby18.y', 930) module_eval(<<'.,.,', 'ruby18.y', 934) def _reduce_252(val, _values, result) @lexer.state = :expr_endarg - + result end .,., @@ -4611,7 +4611,7 @@ module_eval(<<'.,.,', 'ruby18.y', 934) module_eval(<<'.,.,', 'ruby18.y', 938) def _reduce_253(val, _values, result) result = [ val[0], [], val[2] ] - + result end .,., @@ -4619,7 +4619,7 @@ module_eval(<<'.,.,', 'ruby18.y', 938) module_eval(<<'.,.,', 'ruby18.y', 942) def _reduce_254(val, _values, result) @lexer.state = :expr_endarg - + result end .,., @@ -4627,7 +4627,7 @@ module_eval(<<'.,.,', 'ruby18.y', 942) module_eval(<<'.,.,', 'ruby18.y', 946) def _reduce_255(val, _values, result) result = [ val[0], val[1], val[3] ] - + result end .,., @@ -4635,7 +4635,7 @@ module_eval(<<'.,.,', 'ruby18.y', 946) module_eval(<<'.,.,', 'ruby18.y', 951) def _reduce_256(val, _values, result) result = @builder.block_pass(val[0], val[1]) - + result end .,., @@ -4643,7 +4643,7 @@ module_eval(<<'.,.,', 'ruby18.y', 951) module_eval(<<'.,.,', 'ruby18.y', 956) def _reduce_257(val, _values, result) result = [ val[1] ] - + result end .,., @@ -4651,7 +4651,7 @@ module_eval(<<'.,.,', 'ruby18.y', 956) module_eval(<<'.,.,', 'ruby18.y', 960) def _reduce_258(val, _values, result) result = [] - + result end .,., @@ -4659,7 +4659,7 @@ module_eval(<<'.,.,', 'ruby18.y', 960) module_eval(<<'.,.,', 'ruby18.y', 965) def _reduce_259(val, _values, result) result = [ val[0] ] - + result end .,., @@ -4667,7 +4667,7 @@ module_eval(<<'.,.,', 'ruby18.y', 965) module_eval(<<'.,.,', 'ruby18.y', 969) def _reduce_260(val, _values, result) result = val[0] << val[2] - + result end .,., @@ -4675,7 +4675,7 @@ module_eval(<<'.,.,', 'ruby18.y', 969) module_eval(<<'.,.,', 'ruby18.y', 974) def _reduce_261(val, _values, result) result = val[0] << val[2] - + result end .,., @@ -4683,7 +4683,7 @@ module_eval(<<'.,.,', 'ruby18.y', 974) module_eval(<<'.,.,', 'ruby18.y', 978) def _reduce_262(val, _values, result) result = val[0] << @builder.splat(val[2], val[3]) - + result end .,., @@ -4691,7 +4691,7 @@ module_eval(<<'.,.,', 'ruby18.y', 978) module_eval(<<'.,.,', 'ruby18.y', 982) def _reduce_263(val, _values, result) result = [ @builder.splat(val[0], val[1]) ] - + result end .,., @@ -4715,7 +4715,7 @@ module_eval(<<'.,.,', 'ruby18.y', 982) module_eval(<<'.,.,', 'ruby18.y', 995) def _reduce_272(val, _values, result) result = @builder.call_method(nil, nil, val[0]) - + result end .,., @@ -4723,7 +4723,7 @@ module_eval(<<'.,.,', 'ruby18.y', 995) module_eval(<<'.,.,', 'ruby18.y', 999) def _reduce_273(val, _values, result) result = @builder.begin_keyword(val[0], val[1], val[2]) - + result end .,., @@ -4731,7 +4731,7 @@ module_eval(<<'.,.,', 'ruby18.y', 999) module_eval(<<'.,.,', 'ruby18.y', 1003) def _reduce_274(val, _values, result) @lexer.state = :expr_endarg - + result end .,., @@ -4739,7 +4739,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1003) module_eval(<<'.,.,', 'ruby18.y', 1007) def _reduce_275(val, _values, result) result = @builder.begin(val[0], val[1], val[4]) - + result end .,., @@ -4747,7 +4747,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1007) module_eval(<<'.,.,', 'ruby18.y', 1011) def _reduce_276(val, _values, result) result = @builder.begin(val[0], val[1], val[2]) - + result end .,., @@ -4755,7 +4755,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1011) module_eval(<<'.,.,', 'ruby18.y', 1015) def _reduce_277(val, _values, result) result = @builder.const_fetch(val[0], val[1], val[2]) - + result end .,., @@ -4763,7 +4763,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1015) module_eval(<<'.,.,', 'ruby18.y', 1019) def _reduce_278(val, _values, result) result = @builder.const_global(val[0], val[1]) - + result end .,., @@ -4771,7 +4771,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1019) module_eval(<<'.,.,', 'ruby18.y', 1023) def _reduce_279(val, _values, result) result = @builder.index(val[0], val[1], val[2], val[3]) - + result end .,., @@ -4779,7 +4779,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1023) module_eval(<<'.,.,', 'ruby18.y', 1027) def _reduce_280(val, _values, result) result = @builder.array(val[0], val[1], val[2]) - + result end .,., @@ -4787,7 +4787,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1027) module_eval(<<'.,.,', 'ruby18.y', 1031) def _reduce_281(val, _values, result) result = @builder.associate(val[0], val[1], val[2]) - + result end .,., @@ -4795,7 +4795,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1031) module_eval(<<'.,.,', 'ruby18.y', 1035) def _reduce_282(val, _values, result) result = @builder.keyword_cmd(:return, val[0]) - + result end .,., @@ -4803,7 +4803,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1035) module_eval(<<'.,.,', 'ruby18.y', 1039) def _reduce_283(val, _values, result) result = @builder.keyword_cmd(:yield, val[0], val[1], val[2], val[3]) - + result end .,., @@ -4811,7 +4811,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1039) module_eval(<<'.,.,', 'ruby18.y', 1043) def _reduce_284(val, _values, result) result = @builder.keyword_cmd(:yield, val[0], val[1], [], val[2]) - + result end .,., @@ -4819,7 +4819,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1043) module_eval(<<'.,.,', 'ruby18.y', 1047) def _reduce_285(val, _values, result) result = @builder.keyword_cmd(:yield, val[0]) - + result end .,., @@ -4828,7 +4828,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1051) def _reduce_286(val, _values, result) result = @builder.keyword_cmd(:defined?, val[0], val[2], [ val[3] ], val[4]) - + result end .,., @@ -4840,7 +4840,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1056) begin_t, args, body, end_t = val[1] result = @builder.block(method_call, begin_t, args, body, end_t) - + result end .,., @@ -4852,7 +4852,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1065) begin_t, args, body, end_t = val[1] result = @builder.block(val[0], begin_t, args, body, end_t) - + result end .,., @@ -4863,7 +4863,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1071) result = @builder.condition(val[0], val[1], val[2], val[3], else_t, else_, val[5]) - + result end .,., @@ -4874,7 +4874,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1078) result = @builder.condition(val[0], val[1], val[2], else_, else_t, val[3], val[5]) - + result end .,., @@ -4882,7 +4882,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1078) module_eval(<<'.,.,', 'ruby18.y', 1085) def _reduce_292(val, _values, result) @lexer.cond.push(true) - + result end .,., @@ -4890,7 +4890,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1085) module_eval(<<'.,.,', 'ruby18.y', 1089) def _reduce_293(val, _values, result) @lexer.cond.pop - + result end .,., @@ -4899,7 +4899,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1093) def _reduce_294(val, _values, result) result = @builder.loop(:while, val[0], val[2], val[3], val[5], val[6]) - + result end .,., @@ -4907,7 +4907,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1093) module_eval(<<'.,.,', 'ruby18.y', 1098) def _reduce_295(val, _values, result) @lexer.cond.push(true) - + result end .,., @@ -4915,7 +4915,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1098) module_eval(<<'.,.,', 'ruby18.y', 1102) def _reduce_296(val, _values, result) @lexer.cond.pop - + result end .,., @@ -4924,7 +4924,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1106) def _reduce_297(val, _values, result) result = @builder.loop(:until, val[0], val[2], val[3], val[5], val[6]) - + result end .,., @@ -4937,7 +4937,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1111) result = @builder.case(val[0], val[1], when_bodies, else_t, else_body, val[4]) - + result end .,., @@ -4950,7 +4950,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1120) result = @builder.case(val[0], nil, when_bodies, else_t, else_body, val[3]) - + result end .,., @@ -4960,7 +4960,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1129) result = @builder.case(val[0], nil, [], val[2], val[3], val[4]) - + result end .,., @@ -4968,7 +4968,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1129) module_eval(<<'.,.,', 'ruby18.y', 1135) def _reduce_301(val, _values, result) @lexer.cond.push(true) - + result end .,., @@ -4976,7 +4976,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1135) module_eval(<<'.,.,', 'ruby18.y', 1139) def _reduce_302(val, _values, result) @lexer.cond.pop - + result end .,., @@ -4986,7 +4986,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1143) result = @builder.for(val[0], val[1], val[2], val[4], val[5], val[7], val[8]) - + result end .,., @@ -4994,7 +4994,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1143) module_eval(<<'.,.,', 'ruby18.y', 1149) def _reduce_304(val, _values, result) @static_env.extend_static - + result end .,., @@ -5011,7 +5011,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1153) val[4], val[5]) @static_env.unextend - + result end .,., @@ -5022,7 +5022,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1166) @def_level = 0 @static_env.extend_static - + result end .,., @@ -5035,7 +5035,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1173) @static_env.unextend @def_level = val[4] - + result end .,., @@ -5043,7 +5043,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1173) module_eval(<<'.,.,', 'ruby18.y', 1182) def _reduce_308(val, _values, result) @static_env.extend_static - + result end .,., @@ -5058,7 +5058,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1186) val[3], val[4]) @static_env.unextend - + result end .,., @@ -5067,7 +5067,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1197) def _reduce_310(val, _values, result) @def_level += 1 @static_env.extend_static - + result end .,., @@ -5079,7 +5079,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1202) @static_env.unextend @def_level -= 1 - + result end .,., @@ -5087,7 +5087,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1202) module_eval(<<'.,.,', 'ruby18.y', 1210) def _reduce_312(val, _values, result) @lexer.state = :expr_fname - + result end .,., @@ -5096,7 +5096,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1214) def _reduce_313(val, _values, result) @def_level += 1 @static_env.extend_static - + result end .,., @@ -5108,7 +5108,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1219) @static_env.unextend @def_level -= 1 - + result end .,., @@ -5116,7 +5116,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1219) module_eval(<<'.,.,', 'ruby18.y', 1227) def _reduce_315(val, _values, result) result = @builder.keyword_cmd(:break, val[0]) - + result end .,., @@ -5124,7 +5124,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1227) module_eval(<<'.,.,', 'ruby18.y', 1231) def _reduce_316(val, _values, result) result = @builder.keyword_cmd(:next, val[0]) - + result end .,., @@ -5132,7 +5132,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1231) module_eval(<<'.,.,', 'ruby18.y', 1235) def _reduce_317(val, _values, result) result = @builder.keyword_cmd(:redo, val[0]) - + result end .,., @@ -5140,7 +5140,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1235) module_eval(<<'.,.,', 'ruby18.y', 1239) def _reduce_318(val, _values, result) result = @builder.keyword_cmd(:retry, val[0]) - + result end .,., @@ -5156,7 +5156,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1239) module_eval(<<'.,.,', 'ruby18.y', 1249) def _reduce_323(val, _values, result) result = val[1] - + result end .,., @@ -5177,7 +5177,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1259) val[3], else_t, else_, nil), ] - + result end .,., @@ -5187,7 +5187,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1259) module_eval(<<'.,.,', 'ruby18.y', 1270) def _reduce_330(val, _values, result) result = val - + result end .,., @@ -5199,7 +5199,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1270) module_eval(<<'.,.,', 'ruby18.y', 1278) def _reduce_333(val, _values, result) result = [ @builder.arg_expr(val[0]) ] - + result end .,., @@ -5207,7 +5207,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1278) module_eval(<<'.,.,', 'ruby18.y', 1282) def _reduce_334(val, _values, result) result = val[0] << @builder.arg_expr(val[2]) - + result end .,., @@ -5220,7 +5220,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1289) def _reduce_337(val, _values, result) result = val[0]. push(@builder.blockarg_expr(val[2], val[3])) - + result end .,., @@ -5230,7 +5230,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1294) result = val[0]. push(@builder.restarg_expr(val[2], val[3])). push(@builder.blockarg_expr(val[5], val[6])) - + result end .,., @@ -5240,7 +5240,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1300) result = val[0]. push(@builder.restarg_expr(val[2])). push(@builder.blockarg_expr(val[4], val[5])) - + result end .,., @@ -5249,7 +5249,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1306) def _reduce_340(val, _values, result) result = val[0]. push(@builder.restarg_expr(val[2], val[3])) - + result end .,., @@ -5258,7 +5258,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1311) def _reduce_341(val, _values, result) result = val[0]. push(@builder.restarg_expr(val[2])) - + result end .,., @@ -5267,7 +5267,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1316) def _reduce_342(val, _values, result) result = [ @builder.restarg_expr(val[0], val[1]), @builder.blockarg_expr(val[3], val[4]) ] - + result end .,., @@ -5276,7 +5276,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1321) def _reduce_343(val, _values, result) result = [ @builder.restarg_expr(val[0]), @builder.blockarg_expr(val[2], val[3]) ] - + result end .,., @@ -5284,7 +5284,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1321) module_eval(<<'.,.,', 'ruby18.y', 1326) def _reduce_344(val, _values, result) result = [ @builder.restarg_expr(val[0], val[1]) ] - + result end .,., @@ -5292,7 +5292,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1326) module_eval(<<'.,.,', 'ruby18.y', 1330) def _reduce_345(val, _values, result) result = [ @builder.restarg_expr(val[0]) ] - + result end .,., @@ -5300,7 +5300,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1330) module_eval(<<'.,.,', 'ruby18.y', 1334) def _reduce_346(val, _values, result) result = [ @builder.blockarg_expr(val[0], val[1]) ] - + result end .,., @@ -5308,7 +5308,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1334) module_eval(<<'.,.,', 'ruby18.y', 1340) def _reduce_347(val, _values, result) result = @builder.args(nil, [], nil) - + result end .,., @@ -5316,7 +5316,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1340) module_eval(<<'.,.,', 'ruby18.y', 1344) def _reduce_348(val, _values, result) result = @builder.args(val[0], [], val[1]) - + result end .,., @@ -5324,7 +5324,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1344) module_eval(<<'.,.,', 'ruby18.y', 1348) def _reduce_349(val, _values, result) result = @builder.args(val[0], [], val[0]) - + result end .,., @@ -5332,7 +5332,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1348) module_eval(<<'.,.,', 'ruby18.y', 1352) def _reduce_350(val, _values, result) result = @builder.args(val[0], val[1], val[2], false) - + result end .,., @@ -5340,7 +5340,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1352) module_eval(<<'.,.,', 'ruby18.y', 1357) def _reduce_351(val, _values, result) @static_env.extend_dynamic - + result end .,., @@ -5350,7 +5350,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1361) result = [ val[0], val[2], val[3], val[4] ] @static_env.unextend - + result end .,., @@ -5360,7 +5360,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1368) begin_t, block_args, body, end_t = val[1] result = @builder.block(val[0], begin_t, block_args, body, end_t) - + result end .,., @@ -5370,7 +5370,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1374) lparen_t, args, rparen_t = val[3] result = @builder.call_method(val[0], val[1], val[2], lparen_t, args, rparen_t) - + result end .,., @@ -5380,7 +5380,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1380) lparen_t, args, rparen_t = val[3] result = @builder.call_method(val[0], val[1], val[2], lparen_t, args, rparen_t) - + result end .,., @@ -5390,7 +5390,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1387) lparen_t, args, rparen_t = val[1] result = @builder.call_method(nil, nil, val[0], lparen_t, args, rparen_t) - + result end .,., @@ -5400,7 +5400,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1393) lparen_t, args, rparen_t = val[3] result = @builder.call_method(val[0], val[1], val[2], lparen_t, args, rparen_t) - + result end .,., @@ -5410,7 +5410,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1399) lparen_t, args, rparen_t = val[3] result = @builder.call_method(val[0], val[1], val[2], lparen_t, args, rparen_t) - + result end .,., @@ -5418,7 +5418,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1399) module_eval(<<'.,.,', 'ruby18.y', 1405) def _reduce_359(val, _values, result) result = @builder.call_method(val[0], val[1], val[2]) - + result end .,., @@ -5428,7 +5428,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1409) lparen_t, args, rparen_t = val[1] result = @builder.keyword_cmd(:super, val[0], lparen_t, args, rparen_t) - + result end .,., @@ -5436,7 +5436,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1409) module_eval(<<'.,.,', 'ruby18.y', 1415) def _reduce_361(val, _values, result) result = @builder.keyword_cmd(:zsuper, val[0]) - + result end .,., @@ -5444,7 +5444,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1415) module_eval(<<'.,.,', 'ruby18.y', 1420) def _reduce_362(val, _values, result) @static_env.extend_dynamic - + result end .,., @@ -5454,7 +5454,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1424) result = [ val[0], val[2], val[3], val[4] ] @static_env.unextend - + result end .,., @@ -5462,7 +5462,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1424) module_eval(<<'.,.,', 'ruby18.y', 1430) def _reduce_364(val, _values, result) @static_env.extend_dynamic - + result end .,., @@ -5472,7 +5472,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1434) result = [ val[0], val[2], val[3], val[4] ] @static_env.unextend - + result end .,., @@ -5481,7 +5481,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1441) def _reduce_366(val, _values, result) result = [ @builder.when(val[0], val[1], val[2], val[3]), *val[4] ] - + result end .,., @@ -5491,7 +5491,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1441) module_eval(<<'.,.,', 'ruby18.y', 1448) def _reduce_368(val, _values, result) result = val[0] << @builder.splat(val[2], val[3]) - + result end .,., @@ -5499,7 +5499,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1448) module_eval(<<'.,.,', 'ruby18.y', 1452) def _reduce_369(val, _values, result) result = [ @builder.splat(val[0], val[1]) ] - + result end .,., @@ -5507,7 +5507,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1452) module_eval(<<'.,.,', 'ruby18.y', 1457) def _reduce_370(val, _values, result) result = [ val[0] ] - + result end .,., @@ -5526,7 +5526,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1463) exc_list, assoc_t, exc_var, val[3], val[4]), *val[5] ] - + result end .,., @@ -5534,7 +5534,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1463) module_eval(<<'.,.,', 'ruby18.y', 1476) def _reduce_373(val, _values, result) result = [] - + result end .,., @@ -5542,7 +5542,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1476) module_eval(<<'.,.,', 'ruby18.y', 1481) def _reduce_374(val, _values, result) result = [ val[0] ] - + result end .,., @@ -5554,7 +5554,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1481) module_eval(<<'.,.,', 'ruby18.y', 1488) def _reduce_377(val, _values, result) result = [ val[0], val[1] ] - + result end .,., @@ -5564,7 +5564,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1488) module_eval(<<'.,.,', 'ruby18.y', 1494) def _reduce_379(val, _values, result) result = [ val[0], val[1] ] - + result end .,., @@ -5580,7 +5580,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1494) module_eval(<<'.,.,', 'ruby18.y', 1504) def _reduce_384(val, _values, result) result = @builder.string_compose(nil, val[0], nil) - + result end .,., @@ -5588,7 +5588,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1504) module_eval(<<'.,.,', 'ruby18.y', 1509) def _reduce_385(val, _values, result) result = [ val[0] ] - + result end .,., @@ -5596,7 +5596,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1509) module_eval(<<'.,.,', 'ruby18.y', 1513) def _reduce_386(val, _values, result) result = val[0] << val[1] - + result end .,., @@ -5604,7 +5604,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1513) module_eval(<<'.,.,', 'ruby18.y', 1518) def _reduce_387(val, _values, result) result = @builder.string_compose(val[0], val[1], val[2]) - + result end .,., @@ -5612,7 +5612,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1518) module_eval(<<'.,.,', 'ruby18.y', 1522) def _reduce_388(val, _values, result) result = @builder.string(val[0]) - + result end .,., @@ -5620,7 +5620,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1522) module_eval(<<'.,.,', 'ruby18.y', 1527) def _reduce_389(val, _values, result) result = @builder.xstring_compose(val[0], val[1], val[2]) - + result end .,., @@ -5629,7 +5629,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1532) def _reduce_390(val, _values, result) opts = @builder.regexp_options(val[3]) result = @builder.regexp_compose(val[0], val[1], val[2], opts) - + result end .,., @@ -5637,7 +5637,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1532) module_eval(<<'.,.,', 'ruby18.y', 1538) def _reduce_391(val, _values, result) result = @builder.words_compose(val[0], val[1], val[2]) - + result end .,., @@ -5645,7 +5645,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1538) module_eval(<<'.,.,', 'ruby18.y', 1543) def _reduce_392(val, _values, result) result = [] - + result end .,., @@ -5653,7 +5653,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1543) module_eval(<<'.,.,', 'ruby18.y', 1547) def _reduce_393(val, _values, result) result = val[0] << @builder.word(val[1]) - + result end .,., @@ -5661,7 +5661,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1547) module_eval(<<'.,.,', 'ruby18.y', 1552) def _reduce_394(val, _values, result) result = [ val[0] ] - + result end .,., @@ -5669,7 +5669,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1552) module_eval(<<'.,.,', 'ruby18.y', 1556) def _reduce_395(val, _values, result) result = val[0] << val[1] - + result end .,., @@ -5677,7 +5677,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1556) module_eval(<<'.,.,', 'ruby18.y', 1561) def _reduce_396(val, _values, result) result = @builder.words_compose(val[0], val[1], val[2]) - + result end .,., @@ -5685,7 +5685,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1561) module_eval(<<'.,.,', 'ruby18.y', 1566) def _reduce_397(val, _values, result) result = [] - + result end .,., @@ -5693,7 +5693,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1566) module_eval(<<'.,.,', 'ruby18.y', 1570) def _reduce_398(val, _values, result) result = val[0] << @builder.string_internal(val[1]) - + result end .,., @@ -5701,7 +5701,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1570) module_eval(<<'.,.,', 'ruby18.y', 1575) def _reduce_399(val, _values, result) result = [] - + result end .,., @@ -5709,7 +5709,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1575) module_eval(<<'.,.,', 'ruby18.y', 1579) def _reduce_400(val, _values, result) result = val[0] << val[1] - + result end .,., @@ -5717,7 +5717,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1579) module_eval(<<'.,.,', 'ruby18.y', 1584) def _reduce_401(val, _values, result) result = [] - + result end .,., @@ -5725,7 +5725,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1584) module_eval(<<'.,.,', 'ruby18.y', 1588) def _reduce_402(val, _values, result) result = val[0] << val[1] - + result end .,., @@ -5733,7 +5733,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1588) module_eval(<<'.,.,', 'ruby18.y', 1593) def _reduce_403(val, _values, result) result = @builder.string_internal(val[0]) - + result end .,., @@ -5741,7 +5741,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1593) module_eval(<<'.,.,', 'ruby18.y', 1597) def _reduce_404(val, _values, result) result = val[1] - + result end .,., @@ -5750,7 +5750,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1601) def _reduce_405(val, _values, result) @lexer.cond.push(false) @lexer.cmdarg.push(false) - + result end .,., @@ -5761,7 +5761,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1606) @lexer.cmdarg.lexpop result = @builder.begin(val[0], val[2], val[3]) - + result end .,., @@ -5769,7 +5769,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1606) module_eval(<<'.,.,', 'ruby18.y', 1614) def _reduce_407(val, _values, result) result = @builder.gvar(val[0]) - + result end .,., @@ -5777,7 +5777,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1614) module_eval(<<'.,.,', 'ruby18.y', 1618) def _reduce_408(val, _values, result) result = @builder.ivar(val[0]) - + result end .,., @@ -5785,7 +5785,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1618) module_eval(<<'.,.,', 'ruby18.y', 1622) def _reduce_409(val, _values, result) result = @builder.cvar(val[0]) - + result end .,., @@ -5795,7 +5795,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1622) module_eval(<<'.,.,', 'ruby18.y', 1629) def _reduce_411(val, _values, result) result = @builder.symbol(val[0]) - + result end .,., @@ -5803,7 +5803,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1629) module_eval(<<'.,.,', 'ruby18.y', 1634) def _reduce_412(val, _values, result) result = @builder.symbol_compose(val[0], val[1], val[2]) - + result end .,., @@ -5811,7 +5811,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1634) module_eval(<<'.,.,', 'ruby18.y', 1639) def _reduce_413(val, _values, result) result = @builder.integer(val[0]) - + result end .,., @@ -5819,7 +5819,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1639) module_eval(<<'.,.,', 'ruby18.y', 1643) def _reduce_414(val, _values, result) result = @builder.float(val[0]) - + result end .,., @@ -5828,7 +5828,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1647) def _reduce_415(val, _values, result) result = @builder.negate(val[0], @builder.integer(val[1])) - + result end .,., @@ -5837,7 +5837,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1652) def _reduce_416(val, _values, result) result = @builder.negate(val[0], @builder.float(val[1])) - + result end .,., @@ -5845,7 +5845,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1652) module_eval(<<'.,.,', 'ruby18.y', 1658) def _reduce_417(val, _values, result) result = @builder.ident(val[0]) - + result end .,., @@ -5853,7 +5853,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1658) module_eval(<<'.,.,', 'ruby18.y', 1662) def _reduce_418(val, _values, result) result = @builder.ivar(val[0]) - + result end .,., @@ -5861,7 +5861,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1662) module_eval(<<'.,.,', 'ruby18.y', 1666) def _reduce_419(val, _values, result) result = @builder.gvar(val[0]) - + result end .,., @@ -5869,7 +5869,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1666) module_eval(<<'.,.,', 'ruby18.y', 1670) def _reduce_420(val, _values, result) result = @builder.cvar(val[0]) - + result end .,., @@ -5877,7 +5877,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1670) module_eval(<<'.,.,', 'ruby18.y', 1674) def _reduce_421(val, _values, result) result = @builder.const(val[0]) - + result end .,., @@ -5885,7 +5885,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1674) module_eval(<<'.,.,', 'ruby18.y', 1678) def _reduce_422(val, _values, result) result = @builder.nil(val[0]) - + result end .,., @@ -5893,7 +5893,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1678) module_eval(<<'.,.,', 'ruby18.y', 1682) def _reduce_423(val, _values, result) result = @builder.self(val[0]) - + result end .,., @@ -5901,7 +5901,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1682) module_eval(<<'.,.,', 'ruby18.y', 1686) def _reduce_424(val, _values, result) result = @builder.true(val[0]) - + result end .,., @@ -5909,7 +5909,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1686) module_eval(<<'.,.,', 'ruby18.y', 1690) def _reduce_425(val, _values, result) result = @builder.false(val[0]) - + result end .,., @@ -5917,7 +5917,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1690) module_eval(<<'.,.,', 'ruby18.y', 1694) def _reduce_426(val, _values, result) result = @builder.__FILE__(val[0]) - + result end .,., @@ -5925,7 +5925,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1694) module_eval(<<'.,.,', 'ruby18.y', 1698) def _reduce_427(val, _values, result) result = @builder.__LINE__(val[0]) - + result end .,., @@ -5933,7 +5933,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1698) module_eval(<<'.,.,', 'ruby18.y', 1703) def _reduce_428(val, _values, result) result = @builder.accessible(val[0]) - + result end .,., @@ -5941,7 +5941,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1703) module_eval(<<'.,.,', 'ruby18.y', 1708) def _reduce_429(val, _values, result) result = @builder.assignable(val[0]) - + result end .,., @@ -5949,7 +5949,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1708) module_eval(<<'.,.,', 'ruby18.y', 1713) def _reduce_430(val, _values, result) result = @builder.nth_ref(val[0]) - + result end .,., @@ -5957,7 +5957,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1713) module_eval(<<'.,.,', 'ruby18.y', 1717) def _reduce_431(val, _values, result) result = @builder.back_ref(val[0]) - + result end .,., @@ -5965,7 +5965,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1717) module_eval(<<'.,.,', 'ruby18.y', 1722) def _reduce_432(val, _values, result) result = nil - + result end .,., @@ -5973,7 +5973,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1722) module_eval(<<'.,.,', 'ruby18.y', 1726) def _reduce_433(val, _values, result) result = [ val[0], val[1] ] - + result end .,., @@ -5982,7 +5982,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1730) def _reduce_434(val, _values, result) yyerrok result = nil - + result end .,., @@ -5992,7 +5992,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1736) result = @builder.args(val[0], val[1], val[3]) @lexer.state = :expr_beg - + result end .,., @@ -6000,7 +6000,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1736) module_eval(<<'.,.,', 'ruby18.y', 1742) def _reduce_436(val, _values, result) result = @builder.args(nil, val[0], nil) - + result end .,., @@ -6011,7 +6011,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1747) concat(val[2]). concat(val[4]). concat(val[5]) - + result end .,., @@ -6021,7 +6021,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1754) result = val[0]. concat(val[2]). concat(val[3]) - + result end .,., @@ -6031,7 +6031,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1760) result = val[0]. concat(val[2]). concat(val[3]) - + result end .,., @@ -6040,7 +6040,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1766) def _reduce_440(val, _values, result) result = val[0]. concat(val[1]) - + result end .,., @@ -6050,7 +6050,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1771) result = val[0]. concat(val[2]). concat(val[3]) - + result end .,., @@ -6059,7 +6059,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1777) def _reduce_442(val, _values, result) result = val[0]. concat(val[1]) - + result end .,., @@ -6068,7 +6068,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1782) def _reduce_443(val, _values, result) result = val[0]. concat(val[1]) - + result end .,., @@ -6076,7 +6076,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1782) module_eval(<<'.,.,', 'ruby18.y', 1787) def _reduce_444(val, _values, result) result = [ val[0] ] - + result end .,., @@ -6084,7 +6084,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1787) module_eval(<<'.,.,', 'ruby18.y', 1791) def _reduce_445(val, _values, result) result = [] - + result end .,., @@ -6092,7 +6092,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1791) module_eval(<<'.,.,', 'ruby18.y', 1796) def _reduce_446(val, _values, result) diagnostic :error, :argument_const, nil, val[0] - + result end .,., @@ -6100,7 +6100,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1796) module_eval(<<'.,.,', 'ruby18.y', 1800) def _reduce_447(val, _values, result) diagnostic :error, :argument_ivar, nil, val[0] - + result end .,., @@ -6108,7 +6108,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1800) module_eval(<<'.,.,', 'ruby18.y', 1804) def _reduce_448(val, _values, result) diagnostic :error, :argument_gvar, nil, val[0] - + result end .,., @@ -6116,7 +6116,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1804) module_eval(<<'.,.,', 'ruby18.y', 1808) def _reduce_449(val, _values, result) diagnostic :error, :argument_cvar, nil, val[0] - + result end .,., @@ -6126,7 +6126,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1812) @static_env.declare val[0][0] result = @builder.arg(val[0]) - + result end .,., @@ -6134,7 +6134,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1812) module_eval(<<'.,.,', 'ruby18.y', 1819) def _reduce_451(val, _values, result) result = [ val[0] ] - + result end .,., @@ -6142,7 +6142,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1819) module_eval(<<'.,.,', 'ruby18.y', 1823) def _reduce_452(val, _values, result) result = val[0] << val[2] - + result end .,., @@ -6152,7 +6152,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1828) @static_env.declare val[0][0] result = @builder.optarg(val[0], val[1], val[2]) - + result end .,., @@ -6160,7 +6160,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1828) module_eval(<<'.,.,', 'ruby18.y', 1835) def _reduce_454(val, _values, result) result = [ val[0] ] - + result end .,., @@ -6168,7 +6168,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1835) module_eval(<<'.,.,', 'ruby18.y', 1839) def _reduce_455(val, _values, result) result = val[0] << val[2] - + result end .,., @@ -6182,7 +6182,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1846) @static_env.declare val[1][0] result = [ @builder.restarg(val[0], val[1]) ] - + result end .,., @@ -6190,7 +6190,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1846) module_eval(<<'.,.,', 'ruby18.y', 1852) def _reduce_459(val, _values, result) result = [ @builder.restarg(val[0]) ] - + result end .,., @@ -6204,7 +6204,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1859) @static_env.declare val[1][0] result = @builder.blockarg(val[0], val[1]) - + result end .,., @@ -6212,7 +6212,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1859) module_eval(<<'.,.,', 'ruby18.y', 1866) def _reduce_463(val, _values, result) result = [ val[1] ] - + result end .,., @@ -6220,7 +6220,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1866) module_eval(<<'.,.,', 'ruby18.y', 1870) def _reduce_464(val, _values, result) result = [] - + result end .,., @@ -6230,7 +6230,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1870) module_eval(<<'.,.,', 'ruby18.y', 1876) def _reduce_466(val, _values, result) result = val[1] - + result end .,., @@ -6238,7 +6238,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1876) module_eval(<<'.,.,', 'ruby18.y', 1881) def _reduce_467(val, _values, result) result = [] - + result end .,., @@ -6246,7 +6246,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1881) module_eval(<<'.,.,', 'ruby18.y', 1885) def _reduce_468(val, _values, result) result = val[0] - + result end .,., @@ -6254,7 +6254,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1885) module_eval(<<'.,.,', 'ruby18.y', 1889) def _reduce_469(val, _values, result) result = @builder.pair_list_18(val[0]) - + result end .,., @@ -6262,7 +6262,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1889) module_eval(<<'.,.,', 'ruby18.y', 1894) def _reduce_470(val, _values, result) result = [ val[0] ] - + result end .,., @@ -6270,7 +6270,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1894) module_eval(<<'.,.,', 'ruby18.y', 1898) def _reduce_471(val, _values, result) result = val[0] << val[2] - + result end .,., @@ -6278,7 +6278,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1898) module_eval(<<'.,.,', 'ruby18.y', 1903) def _reduce_472(val, _values, result) result = @builder.pair(val[0], val[1], val[2]) - + result end .,., @@ -6324,7 +6324,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1903) module_eval(<<'.,.,', 'ruby18.y', 1916) def _reduce_492(val, _values, result) yyerrok - + result end .,., @@ -6338,7 +6338,7 @@ module_eval(<<'.,.,', 'ruby18.y', 1916) module_eval(<<'.,.,', 'ruby18.y', 1925) def _reduce_496(val, _values, result) result = nil - + result end .,., diff --git a/test/racc/regress/ruby22 b/test/racc/regress/ruby22 index bf626310f6..ef75d14392 100644 --- a/test/racc/regress/ruby22 +++ b/test/racc/regress/ruby22 @@ -3347,7 +3347,7 @@ Racc_debug_parser = false module_eval(<<'.,.,', 'ruby22.y', 78) def _reduce_2(val, _values, result) result = @builder.compstmt(val[0]) - + result end .,., @@ -3355,7 +3355,7 @@ module_eval(<<'.,.,', 'ruby22.y', 78) module_eval(<<'.,.,', 'ruby22.y', 83) def _reduce_3(val, _values, result) result = [] - + result end .,., @@ -3363,7 +3363,7 @@ module_eval(<<'.,.,', 'ruby22.y', 83) module_eval(<<'.,.,', 'ruby22.y', 87) def _reduce_4(val, _values, result) result = [ val[0] ] - + result end .,., @@ -3371,7 +3371,7 @@ module_eval(<<'.,.,', 'ruby22.y', 87) module_eval(<<'.,.,', 'ruby22.y', 91) def _reduce_5(val, _values, result) result = val[0] << val[2] - + result end .,., @@ -3379,7 +3379,7 @@ module_eval(<<'.,.,', 'ruby22.y', 91) module_eval(<<'.,.,', 'ruby22.y', 95) def _reduce_6(val, _values, result) result = [ val[1] ] - + result end .,., @@ -3389,7 +3389,7 @@ module_eval(<<'.,.,', 'ruby22.y', 95) module_eval(<<'.,.,', 'ruby22.y', 101) def _reduce_8(val, _values, result) result = @builder.preexe(val[0], val[1], val[2], val[3]) - + result end .,., @@ -3408,7 +3408,7 @@ module_eval(<<'.,.,', 'ruby22.y', 106) rescue_bodies, else_t, else_, ensure_t, ensure_) - + result end .,., @@ -3416,7 +3416,7 @@ module_eval(<<'.,.,', 'ruby22.y', 106) module_eval(<<'.,.,', 'ruby22.y', 122) def _reduce_10(val, _values, result) result = @builder.compstmt(val[0]) - + result end .,., @@ -3424,7 +3424,7 @@ module_eval(<<'.,.,', 'ruby22.y', 122) module_eval(<<'.,.,', 'ruby22.y', 127) def _reduce_11(val, _values, result) result = [] - + result end .,., @@ -3432,7 +3432,7 @@ module_eval(<<'.,.,', 'ruby22.y', 127) module_eval(<<'.,.,', 'ruby22.y', 131) def _reduce_12(val, _values, result) result = [ val[0] ] - + result end .,., @@ -3440,7 +3440,7 @@ module_eval(<<'.,.,', 'ruby22.y', 131) module_eval(<<'.,.,', 'ruby22.y', 135) def _reduce_13(val, _values, result) result = val[0] << val[2] - + result end .,., @@ -3448,7 +3448,7 @@ module_eval(<<'.,.,', 'ruby22.y', 135) module_eval(<<'.,.,', 'ruby22.y', 139) def _reduce_14(val, _values, result) result = [ val[1] ] - + result end .,., @@ -3458,7 +3458,7 @@ module_eval(<<'.,.,', 'ruby22.y', 139) module_eval(<<'.,.,', 'ruby22.y', 145) def _reduce_16(val, _values, result) diagnostic :error, :begin_in_method, nil, val[0] - + result end .,., @@ -3466,7 +3466,7 @@ module_eval(<<'.,.,', 'ruby22.y', 145) module_eval(<<'.,.,', 'ruby22.y', 150) def _reduce_17(val, _values, result) @lexer.state = :expr_fname - + result end .,., @@ -3474,7 +3474,7 @@ module_eval(<<'.,.,', 'ruby22.y', 150) module_eval(<<'.,.,', 'ruby22.y', 154) def _reduce_18(val, _values, result) result = @builder.alias(val[0], val[1], val[3]) - + result end .,., @@ -3484,7 +3484,7 @@ module_eval(<<'.,.,', 'ruby22.y', 158) result = @builder.alias(val[0], @builder.gvar(val[1]), @builder.gvar(val[2])) - + result end .,., @@ -3494,7 +3494,7 @@ module_eval(<<'.,.,', 'ruby22.y', 164) result = @builder.alias(val[0], @builder.gvar(val[1]), @builder.back_ref(val[2])) - + result end .,., @@ -3502,7 +3502,7 @@ module_eval(<<'.,.,', 'ruby22.y', 164) module_eval(<<'.,.,', 'ruby22.y', 170) def _reduce_21(val, _values, result) diagnostic :error, :nth_ref_alias, nil, val[2] - + result end .,., @@ -3510,7 +3510,7 @@ module_eval(<<'.,.,', 'ruby22.y', 170) module_eval(<<'.,.,', 'ruby22.y', 174) def _reduce_22(val, _values, result) result = @builder.undef_method(val[0], val[1]) - + result end .,., @@ -3519,7 +3519,7 @@ module_eval(<<'.,.,', 'ruby22.y', 178) def _reduce_23(val, _values, result) result = @builder.condition_mod(val[0], nil, val[1], val[2]) - + result end .,., @@ -3528,7 +3528,7 @@ module_eval(<<'.,.,', 'ruby22.y', 183) def _reduce_24(val, _values, result) result = @builder.condition_mod(nil, val[0], val[1], val[2]) - + result end .,., @@ -3536,7 +3536,7 @@ module_eval(<<'.,.,', 'ruby22.y', 183) module_eval(<<'.,.,', 'ruby22.y', 188) def _reduce_25(val, _values, result) result = @builder.loop_mod(:while, val[0], val[1], val[2]) - + result end .,., @@ -3544,7 +3544,7 @@ module_eval(<<'.,.,', 'ruby22.y', 188) module_eval(<<'.,.,', 'ruby22.y', 192) def _reduce_26(val, _values, result) result = @builder.loop_mod(:until, val[0], val[1], val[2]) - + result end .,., @@ -3556,7 +3556,7 @@ module_eval(<<'.,.,', 'ruby22.y', 196) nil, val[2]) result = @builder.begin_body(val[0], [ rescue_body ]) - + result end .,., @@ -3564,7 +3564,7 @@ module_eval(<<'.,.,', 'ruby22.y', 196) module_eval(<<'.,.,', 'ruby22.y', 204) def _reduce_28(val, _values, result) result = @builder.postexe(val[0], val[1], val[2], val[3]) - + result end .,., @@ -3574,7 +3574,7 @@ module_eval(<<'.,.,', 'ruby22.y', 204) module_eval(<<'.,.,', 'ruby22.y', 209) def _reduce_30(val, _values, result) result = @builder.multi_assign(val[0], val[1], val[2]) - + result end .,., @@ -3582,7 +3582,7 @@ module_eval(<<'.,.,', 'ruby22.y', 209) module_eval(<<'.,.,', 'ruby22.y', 213) def _reduce_31(val, _values, result) result = @builder.op_assign(val[0], val[1], val[2]) - + result end .,., @@ -3593,7 +3593,7 @@ module_eval(<<'.,.,', 'ruby22.y', 217) @builder.index( val[0], val[1], val[2], val[3]), val[4], val[5]) - + result end .,., @@ -3604,7 +3604,7 @@ module_eval(<<'.,.,', 'ruby22.y', 224) @builder.call_method( val[0], val[1], val[2]), val[3], val[4]) - + result end .,., @@ -3615,7 +3615,7 @@ module_eval(<<'.,.,', 'ruby22.y', 231) @builder.call_method( val[0], val[1], val[2]), val[3], val[4]) - + result end .,., @@ -3626,7 +3626,7 @@ module_eval(<<'.,.,', 'ruby22.y', 238) @builder.call_method( val[0], val[1], val[2]), val[3], val[4]) - + result end .,., @@ -3637,7 +3637,7 @@ module_eval(<<'.,.,', 'ruby22.y', 245) @builder.call_method( val[0], val[1], val[2]), val[3], val[4]) - + result end .,., @@ -3645,7 +3645,7 @@ module_eval(<<'.,.,', 'ruby22.y', 245) module_eval(<<'.,.,', 'ruby22.y', 252) def _reduce_37(val, _values, result) @builder.op_assign(val[0], val[1], val[2]) - + result end .,., @@ -3654,7 +3654,7 @@ module_eval(<<'.,.,', 'ruby22.y', 256) def _reduce_38(val, _values, result) result = @builder.assign(val[0], val[1], @builder.array(nil, val[2], nil)) - + result end .,., @@ -3662,7 +3662,7 @@ module_eval(<<'.,.,', 'ruby22.y', 256) module_eval(<<'.,.,', 'ruby22.y', 261) def _reduce_39(val, _values, result) result = @builder.multi_assign(val[0], val[1], val[2]) - + result end .,., @@ -3672,7 +3672,7 @@ module_eval(<<'.,.,', 'ruby22.y', 261) module_eval(<<'.,.,', 'ruby22.y', 267) def _reduce_41(val, _values, result) result = @builder.assign(val[0], val[1], val[2]) - + result end .,., @@ -3680,7 +3680,7 @@ module_eval(<<'.,.,', 'ruby22.y', 267) module_eval(<<'.,.,', 'ruby22.y', 271) def _reduce_42(val, _values, result) result = @builder.assign(val[0], val[1], val[2]) - + result end .,., @@ -3690,7 +3690,7 @@ module_eval(<<'.,.,', 'ruby22.y', 271) module_eval(<<'.,.,', 'ruby22.y', 277) def _reduce_44(val, _values, result) result = @builder.logical_op(:and, val[0], val[1], val[2]) - + result end .,., @@ -3698,7 +3698,7 @@ module_eval(<<'.,.,', 'ruby22.y', 277) module_eval(<<'.,.,', 'ruby22.y', 281) def _reduce_45(val, _values, result) result = @builder.logical_op(:or, val[0], val[1], val[2]) - + result end .,., @@ -3706,7 +3706,7 @@ module_eval(<<'.,.,', 'ruby22.y', 281) module_eval(<<'.,.,', 'ruby22.y', 285) def _reduce_46(val, _values, result) result = @builder.not_op(val[0], nil, val[2], nil) - + result end .,., @@ -3714,7 +3714,7 @@ module_eval(<<'.,.,', 'ruby22.y', 285) module_eval(<<'.,.,', 'ruby22.y', 289) def _reduce_47(val, _values, result) result = @builder.not_op(val[0], nil, val[1], nil) - + result end .,., @@ -3733,7 +3733,7 @@ module_eval(<<'.,.,', 'ruby22.y', 301) def _reduce_53(val, _values, result) result = @builder.call_method(val[0], val[1], val[2], nil, val[3], nil) - + result end .,., @@ -3741,7 +3741,7 @@ module_eval(<<'.,.,', 'ruby22.y', 301) module_eval(<<'.,.,', 'ruby22.y', 307) def _reduce_54(val, _values, result) @static_env.extend_dynamic - + result end .,., @@ -3751,7 +3751,7 @@ module_eval(<<'.,.,', 'ruby22.y', 311) result = [ val[0], val[2], val[3], val[4] ] @static_env.unextend - + result end .,., @@ -3762,7 +3762,7 @@ module_eval(<<'.,.,', 'ruby22.y', 320) def _reduce_57(val, _values, result) result = @builder.call_method(nil, nil, val[0], nil, val[1], nil) - + result end .,., @@ -3775,7 +3775,7 @@ module_eval(<<'.,.,', 'ruby22.y', 325) begin_t, args, body, end_t = val[2] result = @builder.block(method_call, begin_t, args, body, end_t) - + result end .,., @@ -3784,7 +3784,7 @@ module_eval(<<'.,.,', 'ruby22.y', 334) def _reduce_59(val, _values, result) result = @builder.call_method(val[0], val[1], val[2], nil, val[3], nil) - + result end .,., @@ -3797,7 +3797,7 @@ module_eval(<<'.,.,', 'ruby22.y', 339) begin_t, args, body, end_t = val[4] result = @builder.block(method_call, begin_t, args, body, end_t) - + result end .,., @@ -3806,7 +3806,7 @@ module_eval(<<'.,.,', 'ruby22.y', 348) def _reduce_61(val, _values, result) result = @builder.call_method(val[0], val[1], val[2], nil, val[3], nil) - + result end .,., @@ -3819,7 +3819,7 @@ module_eval(<<'.,.,', 'ruby22.y', 353) begin_t, args, body, end_t = val[4] result = @builder.block(method_call, begin_t, args, body, end_t) - + result end .,., @@ -3828,7 +3828,7 @@ module_eval(<<'.,.,', 'ruby22.y', 362) def _reduce_63(val, _values, result) result = @builder.keyword_cmd(:super, val[0], nil, val[1], nil) - + result end .,., @@ -3837,7 +3837,7 @@ module_eval(<<'.,.,', 'ruby22.y', 367) def _reduce_64(val, _values, result) result = @builder.keyword_cmd(:yield, val[0], nil, val[1], nil) - + result end .,., @@ -3846,7 +3846,7 @@ module_eval(<<'.,.,', 'ruby22.y', 372) def _reduce_65(val, _values, result) result = @builder.keyword_cmd(:return, val[0], nil, val[1], nil) - + result end .,., @@ -3855,7 +3855,7 @@ module_eval(<<'.,.,', 'ruby22.y', 377) def _reduce_66(val, _values, result) result = @builder.keyword_cmd(:break, val[0], nil, val[1], nil) - + result end .,., @@ -3864,7 +3864,7 @@ module_eval(<<'.,.,', 'ruby22.y', 382) def _reduce_67(val, _values, result) result = @builder.keyword_cmd(:next, val[0], nil, val[1], nil) - + result end .,., @@ -3872,7 +3872,7 @@ module_eval(<<'.,.,', 'ruby22.y', 382) module_eval(<<'.,.,', 'ruby22.y', 388) def _reduce_68(val, _values, result) result = @builder.multi_lhs(nil, val[0], nil) - + result end .,., @@ -3880,7 +3880,7 @@ module_eval(<<'.,.,', 'ruby22.y', 388) module_eval(<<'.,.,', 'ruby22.y', 392) def _reduce_69(val, _values, result) result = @builder.begin(val[0], val[1], val[2]) - + result end .,., @@ -3888,7 +3888,7 @@ module_eval(<<'.,.,', 'ruby22.y', 392) module_eval(<<'.,.,', 'ruby22.y', 397) def _reduce_70(val, _values, result) result = @builder.multi_lhs(nil, val[0], nil) - + result end .,., @@ -3896,7 +3896,7 @@ module_eval(<<'.,.,', 'ruby22.y', 397) module_eval(<<'.,.,', 'ruby22.y', 401) def _reduce_71(val, _values, result) result = @builder.multi_lhs(val[0], val[1], val[2]) - + result end .,., @@ -3907,7 +3907,7 @@ module_eval(<<'.,.,', 'ruby22.y', 407) def _reduce_73(val, _values, result) result = val[0]. push(val[1]) - + result end .,., @@ -3916,7 +3916,7 @@ module_eval(<<'.,.,', 'ruby22.y', 412) def _reduce_74(val, _values, result) result = val[0]. push(@builder.splat(val[1], val[2])) - + result end .,., @@ -3926,7 +3926,7 @@ module_eval(<<'.,.,', 'ruby22.y', 417) result = val[0]. push(@builder.splat(val[1], val[2])). concat(val[4]) - + result end .,., @@ -3935,7 +3935,7 @@ module_eval(<<'.,.,', 'ruby22.y', 423) def _reduce_76(val, _values, result) result = val[0]. push(@builder.splat(val[1])) - + result end .,., @@ -3945,7 +3945,7 @@ module_eval(<<'.,.,', 'ruby22.y', 428) result = val[0]. push(@builder.splat(val[1])). concat(val[3]) - + result end .,., @@ -3953,7 +3953,7 @@ module_eval(<<'.,.,', 'ruby22.y', 428) module_eval(<<'.,.,', 'ruby22.y', 434) def _reduce_78(val, _values, result) result = [ @builder.splat(val[0], val[1]) ] - + result end .,., @@ -3962,7 +3962,7 @@ module_eval(<<'.,.,', 'ruby22.y', 438) def _reduce_79(val, _values, result) result = [ @builder.splat(val[0], val[1]), *val[3] ] - + result end .,., @@ -3970,7 +3970,7 @@ module_eval(<<'.,.,', 'ruby22.y', 438) module_eval(<<'.,.,', 'ruby22.y', 443) def _reduce_80(val, _values, result) result = [ @builder.splat(val[0]) ] - + result end .,., @@ -3979,7 +3979,7 @@ module_eval(<<'.,.,', 'ruby22.y', 447) def _reduce_81(val, _values, result) result = [ @builder.splat(val[0]), *val[2] ] - + result end .,., @@ -3989,7 +3989,7 @@ module_eval(<<'.,.,', 'ruby22.y', 447) module_eval(<<'.,.,', 'ruby22.y', 454) def _reduce_83(val, _values, result) result = @builder.begin(val[0], val[1], val[2]) - + result end .,., @@ -3997,7 +3997,7 @@ module_eval(<<'.,.,', 'ruby22.y', 454) module_eval(<<'.,.,', 'ruby22.y', 459) def _reduce_84(val, _values, result) result = [ val[0] ] - + result end .,., @@ -4005,7 +4005,7 @@ module_eval(<<'.,.,', 'ruby22.y', 459) module_eval(<<'.,.,', 'ruby22.y', 463) def _reduce_85(val, _values, result) result = val[0] << val[1] - + result end .,., @@ -4013,7 +4013,7 @@ module_eval(<<'.,.,', 'ruby22.y', 463) module_eval(<<'.,.,', 'ruby22.y', 468) def _reduce_86(val, _values, result) result = [ val[0] ] - + result end .,., @@ -4021,7 +4021,7 @@ module_eval(<<'.,.,', 'ruby22.y', 468) module_eval(<<'.,.,', 'ruby22.y', 472) def _reduce_87(val, _values, result) result = val[0] << val[2] - + result end .,., @@ -4029,7 +4029,7 @@ module_eval(<<'.,.,', 'ruby22.y', 472) module_eval(<<'.,.,', 'ruby22.y', 477) def _reduce_88(val, _values, result) result = @builder.assignable(val[0]) - + result end .,., @@ -4037,7 +4037,7 @@ module_eval(<<'.,.,', 'ruby22.y', 477) module_eval(<<'.,.,', 'ruby22.y', 481) def _reduce_89(val, _values, result) result = @builder.assignable(val[0]) - + result end .,., @@ -4045,7 +4045,7 @@ module_eval(<<'.,.,', 'ruby22.y', 481) module_eval(<<'.,.,', 'ruby22.y', 485) def _reduce_90(val, _values, result) result = @builder.index_asgn(val[0], val[1], val[2], val[3]) - + result end .,., @@ -4053,7 +4053,7 @@ module_eval(<<'.,.,', 'ruby22.y', 485) module_eval(<<'.,.,', 'ruby22.y', 489) def _reduce_91(val, _values, result) result = @builder.attr_asgn(val[0], val[1], val[2]) - + result end .,., @@ -4061,7 +4061,7 @@ module_eval(<<'.,.,', 'ruby22.y', 489) module_eval(<<'.,.,', 'ruby22.y', 493) def _reduce_92(val, _values, result) result = @builder.attr_asgn(val[0], val[1], val[2]) - + result end .,., @@ -4069,7 +4069,7 @@ module_eval(<<'.,.,', 'ruby22.y', 493) module_eval(<<'.,.,', 'ruby22.y', 497) def _reduce_93(val, _values, result) result = @builder.attr_asgn(val[0], val[1], val[2]) - + result end .,., @@ -4078,7 +4078,7 @@ module_eval(<<'.,.,', 'ruby22.y', 501) def _reduce_94(val, _values, result) result = @builder.assignable( @builder.const_fetch(val[0], val[1], val[2])) - + result end .,., @@ -4087,7 +4087,7 @@ module_eval(<<'.,.,', 'ruby22.y', 506) def _reduce_95(val, _values, result) result = @builder.assignable( @builder.const_global(val[0], val[1])) - + result end .,., @@ -4095,7 +4095,7 @@ module_eval(<<'.,.,', 'ruby22.y', 506) module_eval(<<'.,.,', 'ruby22.y', 511) def _reduce_96(val, _values, result) result = @builder.assignable(val[0]) - + result end .,., @@ -4103,7 +4103,7 @@ module_eval(<<'.,.,', 'ruby22.y', 511) module_eval(<<'.,.,', 'ruby22.y', 516) def _reduce_97(val, _values, result) result = @builder.assignable(val[0]) - + result end .,., @@ -4111,7 +4111,7 @@ module_eval(<<'.,.,', 'ruby22.y', 516) module_eval(<<'.,.,', 'ruby22.y', 520) def _reduce_98(val, _values, result) result = @builder.assignable(val[0]) - + result end .,., @@ -4119,7 +4119,7 @@ module_eval(<<'.,.,', 'ruby22.y', 520) module_eval(<<'.,.,', 'ruby22.y', 524) def _reduce_99(val, _values, result) result = @builder.index_asgn(val[0], val[1], val[2], val[3]) - + result end .,., @@ -4127,7 +4127,7 @@ module_eval(<<'.,.,', 'ruby22.y', 524) module_eval(<<'.,.,', 'ruby22.y', 528) def _reduce_100(val, _values, result) result = @builder.attr_asgn(val[0], val[1], val[2]) - + result end .,., @@ -4135,7 +4135,7 @@ module_eval(<<'.,.,', 'ruby22.y', 528) module_eval(<<'.,.,', 'ruby22.y', 532) def _reduce_101(val, _values, result) result = @builder.attr_asgn(val[0], val[1], val[2]) - + result end .,., @@ -4143,7 +4143,7 @@ module_eval(<<'.,.,', 'ruby22.y', 532) module_eval(<<'.,.,', 'ruby22.y', 536) def _reduce_102(val, _values, result) result = @builder.attr_asgn(val[0], val[1], val[2]) - + result end .,., @@ -4152,7 +4152,7 @@ module_eval(<<'.,.,', 'ruby22.y', 540) def _reduce_103(val, _values, result) result = @builder.assignable( @builder.const_fetch(val[0], val[1], val[2])) - + result end .,., @@ -4161,7 +4161,7 @@ module_eval(<<'.,.,', 'ruby22.y', 545) def _reduce_104(val, _values, result) result = @builder.assignable( @builder.const_global(val[0], val[1])) - + result end .,., @@ -4169,7 +4169,7 @@ module_eval(<<'.,.,', 'ruby22.y', 545) module_eval(<<'.,.,', 'ruby22.y', 550) def _reduce_105(val, _values, result) result = @builder.assignable(val[0]) - + result end .,., @@ -4177,7 +4177,7 @@ module_eval(<<'.,.,', 'ruby22.y', 550) module_eval(<<'.,.,', 'ruby22.y', 555) def _reduce_106(val, _values, result) diagnostic :error, :module_name_const, nil, val[0] - + result end .,., @@ -4187,7 +4187,7 @@ module_eval(<<'.,.,', 'ruby22.y', 555) module_eval(<<'.,.,', 'ruby22.y', 561) def _reduce_108(val, _values, result) result = @builder.const_global(val[0], val[1]) - + result end .,., @@ -4195,7 +4195,7 @@ module_eval(<<'.,.,', 'ruby22.y', 561) module_eval(<<'.,.,', 'ruby22.y', 565) def _reduce_109(val, _values, result) result = @builder.const(val[0]) - + result end .,., @@ -4203,7 +4203,7 @@ module_eval(<<'.,.,', 'ruby22.y', 565) module_eval(<<'.,.,', 'ruby22.y', 569) def _reduce_110(val, _values, result) result = @builder.const_fetch(val[0], val[1], val[2]) - + result end .,., @@ -4221,7 +4221,7 @@ module_eval(<<'.,.,', 'ruby22.y', 569) module_eval(<<'.,.,', 'ruby22.y', 578) def _reduce_116(val, _values, result) result = @builder.symbol(val[0]) - + result end .,., @@ -4235,7 +4235,7 @@ module_eval(<<'.,.,', 'ruby22.y', 578) module_eval(<<'.,.,', 'ruby22.y', 587) def _reduce_120(val, _values, result) result = [ val[0] ] - + result end .,., @@ -4243,7 +4243,7 @@ module_eval(<<'.,.,', 'ruby22.y', 587) module_eval(<<'.,.,', 'ruby22.y', 591) def _reduce_121(val, _values, result) @lexer.state = :expr_fname - + result end .,., @@ -4251,7 +4251,7 @@ module_eval(<<'.,.,', 'ruby22.y', 591) module_eval(<<'.,.,', 'ruby22.y', 595) def _reduce_122(val, _values, result) result = val[0] << val[3] - + result end .,., @@ -4401,7 +4401,7 @@ module_eval(<<'.,.,', 'ruby22.y', 595) module_eval(<<'.,.,', 'ruby22.y', 616) def _reduce_194(val, _values, result) result = @builder.assign(val[0], val[1], val[2]) - + result end .,., @@ -4415,7 +4415,7 @@ module_eval(<<'.,.,', 'ruby22.y', 620) rescue_ = @builder.begin_body(val[2], [ rescue_body ]) result = @builder.assign(val[0], val[1], rescue_) - + result end .,., @@ -4423,7 +4423,7 @@ module_eval(<<'.,.,', 'ruby22.y', 620) module_eval(<<'.,.,', 'ruby22.y', 630) def _reduce_196(val, _values, result) result = @builder.op_assign(val[0], val[1], val[2]) - + result end .,., @@ -4437,7 +4437,7 @@ module_eval(<<'.,.,', 'ruby22.y', 634) rescue_ = @builder.begin_body(val[2], [ rescue_body ]) result = @builder.op_assign(val[0], val[1], rescue_) - + result end .,., @@ -4448,7 +4448,7 @@ module_eval(<<'.,.,', 'ruby22.y', 644) @builder.index( val[0], val[1], val[2], val[3]), val[4], val[5]) - + result end .,., @@ -4459,7 +4459,7 @@ module_eval(<<'.,.,', 'ruby22.y', 651) @builder.call_method( val[0], val[1], val[2]), val[3], val[4]) - + result end .,., @@ -4470,7 +4470,7 @@ module_eval(<<'.,.,', 'ruby22.y', 658) @builder.call_method( val[0], val[1], val[2]), val[3], val[4]) - + result end .,., @@ -4481,7 +4481,7 @@ module_eval(<<'.,.,', 'ruby22.y', 665) @builder.call_method( val[0], val[1], val[2]), val[3], val[4]) - + result end .,., @@ -4491,7 +4491,7 @@ module_eval(<<'.,.,', 'ruby22.y', 672) const = @builder.const_op_assignable( @builder.const_fetch(val[0], val[1], val[2])) result = @builder.op_assign(const, val[3], val[4]) - + result end .,., @@ -4501,7 +4501,7 @@ module_eval(<<'.,.,', 'ruby22.y', 678) const = @builder.const_op_assignable( @builder.const_global(val[0], val[1])) result = @builder.op_assign(const, val[2], val[3]) - + result end .,., @@ -4509,7 +4509,7 @@ module_eval(<<'.,.,', 'ruby22.y', 678) module_eval(<<'.,.,', 'ruby22.y', 684) def _reduce_204(val, _values, result) result = @builder.op_assign(val[0], val[1], val[2]) - + result end .,., @@ -4517,7 +4517,7 @@ module_eval(<<'.,.,', 'ruby22.y', 684) module_eval(<<'.,.,', 'ruby22.y', 688) def _reduce_205(val, _values, result) result = @builder.range_inclusive(val[0], val[1], val[2]) - + result end .,., @@ -4525,7 +4525,7 @@ module_eval(<<'.,.,', 'ruby22.y', 688) module_eval(<<'.,.,', 'ruby22.y', 692) def _reduce_206(val, _values, result) result = @builder.range_exclusive(val[0], val[1], val[2]) - + result end .,., @@ -4533,7 +4533,7 @@ module_eval(<<'.,.,', 'ruby22.y', 692) module_eval(<<'.,.,', 'ruby22.y', 696) def _reduce_207(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) - + result end .,., @@ -4541,7 +4541,7 @@ module_eval(<<'.,.,', 'ruby22.y', 696) module_eval(<<'.,.,', 'ruby22.y', 700) def _reduce_208(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) - + result end .,., @@ -4549,7 +4549,7 @@ module_eval(<<'.,.,', 'ruby22.y', 700) module_eval(<<'.,.,', 'ruby22.y', 704) def _reduce_209(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) - + result end .,., @@ -4557,7 +4557,7 @@ module_eval(<<'.,.,', 'ruby22.y', 704) module_eval(<<'.,.,', 'ruby22.y', 708) def _reduce_210(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) - + result end .,., @@ -4565,7 +4565,7 @@ module_eval(<<'.,.,', 'ruby22.y', 708) module_eval(<<'.,.,', 'ruby22.y', 712) def _reduce_211(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) - + result end .,., @@ -4573,7 +4573,7 @@ module_eval(<<'.,.,', 'ruby22.y', 712) module_eval(<<'.,.,', 'ruby22.y', 716) def _reduce_212(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) - + result end .,., @@ -4583,7 +4583,7 @@ module_eval(<<'.,.,', 'ruby22.y', 720) result = @builder.unary_op(val[0], @builder.binary_op( val[1], val[2], val[3])) - + result end .,., @@ -4591,7 +4591,7 @@ module_eval(<<'.,.,', 'ruby22.y', 720) module_eval(<<'.,.,', 'ruby22.y', 726) def _reduce_214(val, _values, result) result = @builder.unary_op(val[0], val[1]) - + result end .,., @@ -4599,7 +4599,7 @@ module_eval(<<'.,.,', 'ruby22.y', 726) module_eval(<<'.,.,', 'ruby22.y', 730) def _reduce_215(val, _values, result) result = @builder.unary_op(val[0], val[1]) - + result end .,., @@ -4607,7 +4607,7 @@ module_eval(<<'.,.,', 'ruby22.y', 730) module_eval(<<'.,.,', 'ruby22.y', 734) def _reduce_216(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) - + result end .,., @@ -4615,7 +4615,7 @@ module_eval(<<'.,.,', 'ruby22.y', 734) module_eval(<<'.,.,', 'ruby22.y', 738) def _reduce_217(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) - + result end .,., @@ -4623,7 +4623,7 @@ module_eval(<<'.,.,', 'ruby22.y', 738) module_eval(<<'.,.,', 'ruby22.y', 742) def _reduce_218(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) - + result end .,., @@ -4631,7 +4631,7 @@ module_eval(<<'.,.,', 'ruby22.y', 742) module_eval(<<'.,.,', 'ruby22.y', 746) def _reduce_219(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) - + result end .,., @@ -4639,7 +4639,7 @@ module_eval(<<'.,.,', 'ruby22.y', 746) module_eval(<<'.,.,', 'ruby22.y', 750) def _reduce_220(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) - + result end .,., @@ -4647,7 +4647,7 @@ module_eval(<<'.,.,', 'ruby22.y', 750) module_eval(<<'.,.,', 'ruby22.y', 754) def _reduce_221(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) - + result end .,., @@ -4655,7 +4655,7 @@ module_eval(<<'.,.,', 'ruby22.y', 754) module_eval(<<'.,.,', 'ruby22.y', 758) def _reduce_222(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) - + result end .,., @@ -4663,7 +4663,7 @@ module_eval(<<'.,.,', 'ruby22.y', 758) module_eval(<<'.,.,', 'ruby22.y', 762) def _reduce_223(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) - + result end .,., @@ -4671,7 +4671,7 @@ module_eval(<<'.,.,', 'ruby22.y', 762) module_eval(<<'.,.,', 'ruby22.y', 766) def _reduce_224(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) - + result end .,., @@ -4679,7 +4679,7 @@ module_eval(<<'.,.,', 'ruby22.y', 766) module_eval(<<'.,.,', 'ruby22.y', 770) def _reduce_225(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) - + result end .,., @@ -4687,7 +4687,7 @@ module_eval(<<'.,.,', 'ruby22.y', 770) module_eval(<<'.,.,', 'ruby22.y', 774) def _reduce_226(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) - + result end .,., @@ -4695,7 +4695,7 @@ module_eval(<<'.,.,', 'ruby22.y', 774) module_eval(<<'.,.,', 'ruby22.y', 778) def _reduce_227(val, _values, result) result = @builder.match_op(val[0], val[1], val[2]) - + result end .,., @@ -4703,7 +4703,7 @@ module_eval(<<'.,.,', 'ruby22.y', 778) module_eval(<<'.,.,', 'ruby22.y', 782) def _reduce_228(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) - + result end .,., @@ -4711,7 +4711,7 @@ module_eval(<<'.,.,', 'ruby22.y', 782) module_eval(<<'.,.,', 'ruby22.y', 786) def _reduce_229(val, _values, result) result = @builder.not_op(val[0], nil, val[1], nil) - + result end .,., @@ -4719,7 +4719,7 @@ module_eval(<<'.,.,', 'ruby22.y', 786) module_eval(<<'.,.,', 'ruby22.y', 790) def _reduce_230(val, _values, result) result = @builder.unary_op(val[0], val[1]) - + result end .,., @@ -4727,7 +4727,7 @@ module_eval(<<'.,.,', 'ruby22.y', 790) module_eval(<<'.,.,', 'ruby22.y', 794) def _reduce_231(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) - + result end .,., @@ -4735,7 +4735,7 @@ module_eval(<<'.,.,', 'ruby22.y', 794) module_eval(<<'.,.,', 'ruby22.y', 798) def _reduce_232(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) - + result end .,., @@ -4743,7 +4743,7 @@ module_eval(<<'.,.,', 'ruby22.y', 798) module_eval(<<'.,.,', 'ruby22.y', 802) def _reduce_233(val, _values, result) result = @builder.logical_op(:and, val[0], val[1], val[2]) - + result end .,., @@ -4751,7 +4751,7 @@ module_eval(<<'.,.,', 'ruby22.y', 802) module_eval(<<'.,.,', 'ruby22.y', 806) def _reduce_234(val, _values, result) result = @builder.logical_op(:or, val[0], val[1], val[2]) - + result end .,., @@ -4759,7 +4759,7 @@ module_eval(<<'.,.,', 'ruby22.y', 806) module_eval(<<'.,.,', 'ruby22.y', 810) def _reduce_235(val, _values, result) result = @builder.keyword_cmd(:defined?, val[0], nil, [ val[2] ], nil) - + result end .,., @@ -4768,7 +4768,7 @@ module_eval(<<'.,.,', 'ruby22.y', 820) def _reduce_236(val, _values, result) @lexer.push_cond @lexer.cond.push(true) - + result end .,., @@ -4776,7 +4776,7 @@ module_eval(<<'.,.,', 'ruby22.y', 820) module_eval(<<'.,.,', 'ruby22.y', 825) def _reduce_237(val, _values, result) @lexer.pop_cond - + result end .,., @@ -4785,7 +4785,7 @@ module_eval(<<'.,.,', 'ruby22.y', 829) def _reduce_238(val, _values, result) result = @builder.ternary(val[0], val[1], val[3], val[5], val[7]) - + result end .,., @@ -4801,7 +4801,7 @@ module_eval(<<'.,.,', 'ruby22.y', 829) module_eval(<<'.,.,', 'ruby22.y', 840) def _reduce_243(val, _values, result) result = val[0] << @builder.associate(nil, val[2], nil) - + result end .,., @@ -4809,7 +4809,7 @@ module_eval(<<'.,.,', 'ruby22.y', 840) module_eval(<<'.,.,', 'ruby22.y', 844) def _reduce_244(val, _values, result) result = [ @builder.associate(nil, val[0], nil) ] - + result end .,., @@ -4817,7 +4817,7 @@ module_eval(<<'.,.,', 'ruby22.y', 844) module_eval(<<'.,.,', 'ruby22.y', 849) def _reduce_245(val, _values, result) result = val - + result end .,., @@ -4825,7 +4825,7 @@ module_eval(<<'.,.,', 'ruby22.y', 849) module_eval(<<'.,.,', 'ruby22.y', 854) def _reduce_246(val, _values, result) result = [ nil, [], nil ] - + result end .,., @@ -4835,7 +4835,7 @@ module_eval(<<'.,.,', 'ruby22.y', 854) module_eval(<<'.,.,', 'ruby22.y', 860) def _reduce_248(val, _values, result) result = [] - + result end .,., @@ -4847,7 +4847,7 @@ module_eval(<<'.,.,', 'ruby22.y', 860) module_eval(<<'.,.,', 'ruby22.y', 866) def _reduce_251(val, _values, result) result = val[0] << @builder.associate(nil, val[2], nil) - + result end .,., @@ -4855,7 +4855,7 @@ module_eval(<<'.,.,', 'ruby22.y', 866) module_eval(<<'.,.,', 'ruby22.y', 870) def _reduce_252(val, _values, result) result = [ @builder.associate(nil, val[0], nil) ] - + result end .,., @@ -4863,7 +4863,7 @@ module_eval(<<'.,.,', 'ruby22.y', 870) module_eval(<<'.,.,', 'ruby22.y', 875) def _reduce_253(val, _values, result) result = [ val[0] ] - + result end .,., @@ -4871,7 +4871,7 @@ module_eval(<<'.,.,', 'ruby22.y', 875) module_eval(<<'.,.,', 'ruby22.y', 879) def _reduce_254(val, _values, result) result = val[0].concat(val[1]) - + result end .,., @@ -4880,7 +4880,7 @@ module_eval(<<'.,.,', 'ruby22.y', 883) def _reduce_255(val, _values, result) result = [ @builder.associate(nil, val[0], nil) ] result.concat(val[1]) - + result end .,., @@ -4890,7 +4890,7 @@ module_eval(<<'.,.,', 'ruby22.y', 888) assocs = @builder.associate(nil, val[2], nil) result = val[0] << assocs result.concat(val[3]) - + result end .,., @@ -4898,7 +4898,7 @@ module_eval(<<'.,.,', 'ruby22.y', 888) module_eval(<<'.,.,', 'ruby22.y', 894) def _reduce_257(val, _values, result) result = [ val[0] ] - + result end .,., @@ -4907,7 +4907,7 @@ module_eval(<<'.,.,', 'ruby22.y', 898) def _reduce_258(val, _values, result) result = @lexer.cmdarg.dup @lexer.cmdarg.push(true) - + result end .,., @@ -4917,7 +4917,7 @@ module_eval(<<'.,.,', 'ruby22.y', 903) @lexer.cmdarg = val[0] result = val[1] - + result end .,., @@ -4925,7 +4925,7 @@ module_eval(<<'.,.,', 'ruby22.y', 903) module_eval(<<'.,.,', 'ruby22.y', 910) def _reduce_260(val, _values, result) result = @builder.block_pass(val[0], val[1]) - + result end .,., @@ -4933,7 +4933,7 @@ module_eval(<<'.,.,', 'ruby22.y', 910) module_eval(<<'.,.,', 'ruby22.y', 915) def _reduce_261(val, _values, result) result = [ val[1] ] - + result end .,., @@ -4941,7 +4941,7 @@ module_eval(<<'.,.,', 'ruby22.y', 915) module_eval(<<'.,.,', 'ruby22.y', 919) def _reduce_262(val, _values, result) result = [] - + result end .,., @@ -4949,7 +4949,7 @@ module_eval(<<'.,.,', 'ruby22.y', 919) module_eval(<<'.,.,', 'ruby22.y', 924) def _reduce_263(val, _values, result) result = [ val[0] ] - + result end .,., @@ -4957,7 +4957,7 @@ module_eval(<<'.,.,', 'ruby22.y', 924) module_eval(<<'.,.,', 'ruby22.y', 928) def _reduce_264(val, _values, result) result = [ @builder.splat(val[0], val[1]) ] - + result end .,., @@ -4965,7 +4965,7 @@ module_eval(<<'.,.,', 'ruby22.y', 928) module_eval(<<'.,.,', 'ruby22.y', 932) def _reduce_265(val, _values, result) result = val[0] << val[2] - + result end .,., @@ -4973,7 +4973,7 @@ module_eval(<<'.,.,', 'ruby22.y', 932) module_eval(<<'.,.,', 'ruby22.y', 936) def _reduce_266(val, _values, result) result = val[0] << @builder.splat(val[2], val[3]) - + result end .,., @@ -4981,7 +4981,7 @@ module_eval(<<'.,.,', 'ruby22.y', 936) module_eval(<<'.,.,', 'ruby22.y', 941) def _reduce_267(val, _values, result) result = @builder.array(nil, val[0], nil) - + result end .,., @@ -4991,7 +4991,7 @@ module_eval(<<'.,.,', 'ruby22.y', 941) module_eval(<<'.,.,', 'ruby22.y', 947) def _reduce_269(val, _values, result) result = val[0] << val[2] - + result end .,., @@ -4999,7 +4999,7 @@ module_eval(<<'.,.,', 'ruby22.y', 947) module_eval(<<'.,.,', 'ruby22.y', 951) def _reduce_270(val, _values, result) result = val[0] << @builder.splat(val[2], val[3]) - + result end .,., @@ -5007,7 +5007,7 @@ module_eval(<<'.,.,', 'ruby22.y', 951) module_eval(<<'.,.,', 'ruby22.y', 955) def _reduce_271(val, _values, result) result = [ @builder.splat(val[0], val[1]) ] - + result end .,., @@ -5035,7 +5035,7 @@ module_eval(<<'.,.,', 'ruby22.y', 955) module_eval(<<'.,.,', 'ruby22.y', 970) def _reduce_282(val, _values, result) result = @builder.call_method(nil, nil, val[0]) - + result end .,., @@ -5044,7 +5044,7 @@ module_eval(<<'.,.,', 'ruby22.y', 974) def _reduce_283(val, _values, result) result = @lexer.cmdarg.dup @lexer.cmdarg.clear - + result end .,., @@ -5054,7 +5054,7 @@ module_eval(<<'.,.,', 'ruby22.y', 979) @lexer.cmdarg = val[1] result = @builder.begin_keyword(val[0], val[2], val[3]) - + result end .,., @@ -5063,7 +5063,7 @@ module_eval(<<'.,.,', 'ruby22.y', 985) def _reduce_285(val, _values, result) result = @lexer.cmdarg.dup @lexer.cmdarg.clear - + result end .,., @@ -5071,7 +5071,7 @@ module_eval(<<'.,.,', 'ruby22.y', 985) module_eval(<<'.,.,', 'ruby22.y', 990) def _reduce_286(val, _values, result) @lexer.state = :expr_endarg - + result end .,., @@ -5081,7 +5081,7 @@ module_eval(<<'.,.,', 'ruby22.y', 994) @lexer.cmdarg = val[1] result = @builder.begin(val[0], val[2], val[5]) - + result end .,., @@ -5089,7 +5089,7 @@ module_eval(<<'.,.,', 'ruby22.y', 994) module_eval(<<'.,.,', 'ruby22.y', 1000) def _reduce_288(val, _values, result) @lexer.state = :expr_endarg - + result end .,., @@ -5097,7 +5097,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1000) module_eval(<<'.,.,', 'ruby22.y', 1004) def _reduce_289(val, _values, result) result = @builder.begin(val[0], nil, val[3]) - + result end .,., @@ -5105,7 +5105,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1004) module_eval(<<'.,.,', 'ruby22.y', 1008) def _reduce_290(val, _values, result) result = @builder.begin(val[0], val[1], val[2]) - + result end .,., @@ -5113,7 +5113,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1008) module_eval(<<'.,.,', 'ruby22.y', 1012) def _reduce_291(val, _values, result) result = @builder.const_fetch(val[0], val[1], val[2]) - + result end .,., @@ -5121,7 +5121,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1012) module_eval(<<'.,.,', 'ruby22.y', 1016) def _reduce_292(val, _values, result) result = @builder.const_global(val[0], val[1]) - + result end .,., @@ -5129,7 +5129,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1016) module_eval(<<'.,.,', 'ruby22.y', 1020) def _reduce_293(val, _values, result) result = @builder.array(val[0], val[1], val[2]) - + result end .,., @@ -5137,7 +5137,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1020) module_eval(<<'.,.,', 'ruby22.y', 1024) def _reduce_294(val, _values, result) result = @builder.associate(val[0], val[1], val[2]) - + result end .,., @@ -5145,7 +5145,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1024) module_eval(<<'.,.,', 'ruby22.y', 1028) def _reduce_295(val, _values, result) result = @builder.keyword_cmd(:return, val[0]) - + result end .,., @@ -5153,7 +5153,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1028) module_eval(<<'.,.,', 'ruby22.y', 1032) def _reduce_296(val, _values, result) result = @builder.keyword_cmd(:yield, val[0], val[1], val[2], val[3]) - + result end .,., @@ -5161,7 +5161,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1032) module_eval(<<'.,.,', 'ruby22.y', 1036) def _reduce_297(val, _values, result) result = @builder.keyword_cmd(:yield, val[0], val[1], [], val[2]) - + result end .,., @@ -5169,7 +5169,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1036) module_eval(<<'.,.,', 'ruby22.y', 1040) def _reduce_298(val, _values, result) result = @builder.keyword_cmd(:yield, val[0]) - + result end .,., @@ -5178,7 +5178,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1044) def _reduce_299(val, _values, result) result = @builder.keyword_cmd(:defined?, val[0], val[2], [ val[3] ], val[4]) - + result end .,., @@ -5186,7 +5186,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1044) module_eval(<<'.,.,', 'ruby22.y', 1049) def _reduce_300(val, _values, result) result = @builder.not_op(val[0], val[1], val[2], val[3]) - + result end .,., @@ -5194,7 +5194,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1049) module_eval(<<'.,.,', 'ruby22.y', 1053) def _reduce_301(val, _values, result) result = @builder.not_op(val[0], val[1], nil, val[2]) - + result end .,., @@ -5206,7 +5206,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1057) begin_t, args, body, end_t = val[1] result = @builder.block(method_call, begin_t, args, body, end_t) - + result end .,., @@ -5218,7 +5218,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1066) begin_t, args, body, end_t = val[1] result = @builder.block(val[0], begin_t, args, body, end_t) - + result end .,., @@ -5230,7 +5230,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1072) args, (begin_t, body, end_t) = val[1] result = @builder.block(lambda_call, begin_t, args, body, end_t) - + result end .,., @@ -5241,7 +5241,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1080) result = @builder.condition(val[0], val[1], val[2], val[3], else_t, else_, val[5]) - + result end .,., @@ -5252,7 +5252,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1087) result = @builder.condition(val[0], val[1], val[2], else_, else_t, val[3], val[5]) - + result end .,., @@ -5260,7 +5260,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1087) module_eval(<<'.,.,', 'ruby22.y', 1094) def _reduce_308(val, _values, result) @lexer.cond.push(true) - + result end .,., @@ -5268,7 +5268,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1094) module_eval(<<'.,.,', 'ruby22.y', 1098) def _reduce_309(val, _values, result) @lexer.cond.pop - + result end .,., @@ -5277,7 +5277,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1102) def _reduce_310(val, _values, result) result = @builder.loop(:while, val[0], val[2], val[3], val[5], val[6]) - + result end .,., @@ -5285,7 +5285,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1102) module_eval(<<'.,.,', 'ruby22.y', 1107) def _reduce_311(val, _values, result) @lexer.cond.push(true) - + result end .,., @@ -5293,7 +5293,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1107) module_eval(<<'.,.,', 'ruby22.y', 1111) def _reduce_312(val, _values, result) @lexer.cond.pop - + result end .,., @@ -5302,7 +5302,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1115) def _reduce_313(val, _values, result) result = @builder.loop(:until, val[0], val[2], val[3], val[5], val[6]) - + result end .,., @@ -5314,7 +5314,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1120) result = @builder.case(val[0], val[1], when_bodies, else_t, else_body, val[4]) - + result end .,., @@ -5326,7 +5326,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1128) result = @builder.case(val[0], nil, when_bodies, else_t, else_body, val[3]) - + result end .,., @@ -5334,7 +5334,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1128) module_eval(<<'.,.,', 'ruby22.y', 1136) def _reduce_316(val, _values, result) @lexer.cond.push(true) - + result end .,., @@ -5342,7 +5342,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1136) module_eval(<<'.,.,', 'ruby22.y', 1140) def _reduce_317(val, _values, result) @lexer.cond.pop - + result end .,., @@ -5352,7 +5352,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1144) result = @builder.for(val[0], val[1], val[2], val[4], val[5], val[7], val[8]) - + result end .,., @@ -5361,7 +5361,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1150) def _reduce_319(val, _values, result) @static_env.extend_static @lexer.push_cmdarg - + result end .,., @@ -5379,7 +5379,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1155) @lexer.pop_cmdarg @static_env.unextend - + result end .,., @@ -5391,7 +5391,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1169) @static_env.extend_static @lexer.push_cmdarg - + result end .,., @@ -5405,7 +5405,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1177) @static_env.unextend @def_level = val[4] - + result end .,., @@ -5414,7 +5414,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1187) def _reduce_323(val, _values, result) @static_env.extend_static @lexer.push_cmdarg - + result end .,., @@ -5430,7 +5430,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1192) @lexer.pop_cmdarg @static_env.unextend - + result end .,., @@ -5440,7 +5440,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1204) @def_level += 1 @static_env.extend_static @lexer.push_cmdarg - + result end .,., @@ -5453,7 +5453,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1210) @lexer.pop_cmdarg @static_env.unextend @def_level -= 1 - + result end .,., @@ -5461,7 +5461,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1210) module_eval(<<'.,.,', 'ruby22.y', 1219) def _reduce_327(val, _values, result) @lexer.state = :expr_fname - + result end .,., @@ -5471,7 +5471,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1223) @def_level += 1 @static_env.extend_static @lexer.push_cmdarg - + result end .,., @@ -5484,7 +5484,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1229) @lexer.pop_cmdarg @static_env.unextend @def_level -= 1 - + result end .,., @@ -5492,7 +5492,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1229) module_eval(<<'.,.,', 'ruby22.y', 1238) def _reduce_330(val, _values, result) result = @builder.keyword_cmd(:break, val[0]) - + result end .,., @@ -5500,7 +5500,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1238) module_eval(<<'.,.,', 'ruby22.y', 1242) def _reduce_331(val, _values, result) result = @builder.keyword_cmd(:next, val[0]) - + result end .,., @@ -5508,7 +5508,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1242) module_eval(<<'.,.,', 'ruby22.y', 1246) def _reduce_332(val, _values, result) result = @builder.keyword_cmd(:redo, val[0]) - + result end .,., @@ -5516,7 +5516,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1246) module_eval(<<'.,.,', 'ruby22.y', 1250) def _reduce_333(val, _values, result) result = @builder.keyword_cmd(:retry, val[0]) - + result end .,., @@ -5530,7 +5530,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1250) module_eval(<<'.,.,', 'ruby22.y', 1259) def _reduce_337(val, _values, result) result = val[1] - + result end .,., @@ -5549,7 +5549,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1268) val[3], else_t, else_, nil), ] - + result end .,., @@ -5559,7 +5559,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1268) module_eval(<<'.,.,', 'ruby22.y', 1279) def _reduce_343(val, _values, result) result = val - + result end .,., @@ -5571,7 +5571,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1279) module_eval(<<'.,.,', 'ruby22.y', 1287) def _reduce_346(val, _values, result) result = @builder.arg(val[0]) - + result end .,., @@ -5579,7 +5579,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1287) module_eval(<<'.,.,', 'ruby22.y', 1291) def _reduce_347(val, _values, result) result = @builder.multi_lhs(val[0], val[1], val[2]) - + result end .,., @@ -5587,7 +5587,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1291) module_eval(<<'.,.,', 'ruby22.y', 1296) def _reduce_348(val, _values, result) result = [ val[0] ] - + result end .,., @@ -5595,7 +5595,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1296) module_eval(<<'.,.,', 'ruby22.y', 1300) def _reduce_349(val, _values, result) result = val[0] << val[2] - + result end .,., @@ -5606,7 +5606,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1306) def _reduce_351(val, _values, result) result = val[0]. push(@builder.restarg(val[2], val[3])) - + result end .,., @@ -5616,7 +5616,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1311) result = val[0]. push(@builder.restarg(val[2], val[3])). concat(val[5]) - + result end .,., @@ -5625,7 +5625,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1317) def _reduce_353(val, _values, result) result = val[0]. push(@builder.restarg(val[2])) - + result end .,., @@ -5635,7 +5635,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1322) result = val[0]. push(@builder.restarg(val[2])). concat(val[4]) - + result end .,., @@ -5643,7 +5643,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1322) module_eval(<<'.,.,', 'ruby22.y', 1328) def _reduce_355(val, _values, result) result = [ @builder.restarg(val[0], val[1]) ] - + result end .,., @@ -5652,7 +5652,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1332) def _reduce_356(val, _values, result) result = [ @builder.restarg(val[0], val[1]), *val[3] ] - + result end .,., @@ -5660,7 +5660,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1332) module_eval(<<'.,.,', 'ruby22.y', 1337) def _reduce_357(val, _values, result) result = [ @builder.restarg(val[0]) ] - + result end .,., @@ -5669,7 +5669,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1341) def _reduce_358(val, _values, result) result = [ @builder.restarg(val[0]), *val[2] ] - + result end .,., @@ -5677,7 +5677,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1341) module_eval(<<'.,.,', 'ruby22.y', 1347) def _reduce_359(val, _values, result) result = val[0].concat(val[2]).concat(val[3]) - + result end .,., @@ -5685,7 +5685,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1347) module_eval(<<'.,.,', 'ruby22.y', 1351) def _reduce_360(val, _values, result) result = val[0].concat(val[1]) - + result end .,., @@ -5693,7 +5693,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1351) module_eval(<<'.,.,', 'ruby22.y', 1355) def _reduce_361(val, _values, result) result = val[0].concat(val[1]) - + result end .,., @@ -5701,7 +5701,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1355) module_eval(<<'.,.,', 'ruby22.y', 1359) def _reduce_362(val, _values, result) result = [ val[0] ] - + result end .,., @@ -5709,7 +5709,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1359) module_eval(<<'.,.,', 'ruby22.y', 1365) def _reduce_363(val, _values, result) result = val[1] - + result end .,., @@ -5717,7 +5717,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1365) module_eval(<<'.,.,', 'ruby22.y', 1369) def _reduce_364(val, _values, result) result = [] - + result end .,., @@ -5728,7 +5728,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1374) concat(val[2]). concat(val[4]). concat(val[5]) - + result end .,., @@ -5740,7 +5740,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1381) concat(val[4]). concat(val[6]). concat(val[7]) - + result end .,., @@ -5750,7 +5750,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1389) result = val[0]. concat(val[2]). concat(val[3]) - + result end .,., @@ -5761,7 +5761,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1395) concat(val[2]). concat(val[4]). concat(val[5]) - + result end .,., @@ -5771,7 +5771,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1402) result = val[0]. concat(val[2]). concat(val[3]) - + result end .,., @@ -5784,7 +5784,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1409) concat(val[2]). concat(val[4]). concat(val[5]) - + result end .,., @@ -5792,7 +5792,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1409) module_eval(<<'.,.,', 'ruby22.y', 1416) def _reduce_372(val, _values, result) result = val[0].concat(val[1]) - + result end .,., @@ -5802,7 +5802,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1420) result = val[0]. concat(val[2]). concat(val[3]) - + result end .,., @@ -5813,7 +5813,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1426) concat(val[2]). concat(val[4]). concat(val[5]) - + result end .,., @@ -5822,7 +5822,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1433) def _reduce_375(val, _values, result) result = val[0]. concat(val[1]) - + result end .,., @@ -5832,7 +5832,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1438) result = val[0]. concat(val[2]). concat(val[3]) - + result end .,., @@ -5841,7 +5841,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1444) def _reduce_377(val, _values, result) result = val[0]. concat(val[1]) - + result end .,., @@ -5851,7 +5851,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1449) result = val[0]. concat(val[2]). concat(val[3]) - + result end .,., @@ -5861,7 +5861,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1449) module_eval(<<'.,.,', 'ruby22.y', 1457) def _reduce_380(val, _values, result) result = @builder.args(nil, [], nil) - + result end .,., @@ -5869,7 +5869,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1457) module_eval(<<'.,.,', 'ruby22.y', 1461) def _reduce_381(val, _values, result) @lexer.state = :expr_value - + result end .,., @@ -5877,7 +5877,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1461) module_eval(<<'.,.,', 'ruby22.y', 1466) def _reduce_382(val, _values, result) result = @builder.args(val[0], val[1], val[2]) - + result end .,., @@ -5885,7 +5885,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1466) module_eval(<<'.,.,', 'ruby22.y', 1470) def _reduce_383(val, _values, result) result = @builder.args(val[0], [], val[0]) - + result end .,., @@ -5893,7 +5893,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1470) module_eval(<<'.,.,', 'ruby22.y', 1474) def _reduce_384(val, _values, result) result = @builder.args(val[0], val[1].concat(val[2]), val[3]) - + result end .,., @@ -5901,7 +5901,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1474) module_eval(<<'.,.,', 'ruby22.y', 1479) def _reduce_385(val, _values, result) result = [] - + result end .,., @@ -5909,7 +5909,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1479) module_eval(<<'.,.,', 'ruby22.y', 1483) def _reduce_386(val, _values, result) result = val[2] - + result end .,., @@ -5917,7 +5917,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1483) module_eval(<<'.,.,', 'ruby22.y', 1488) def _reduce_387(val, _values, result) result = [ val[0] ] - + result end .,., @@ -5925,7 +5925,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1488) module_eval(<<'.,.,', 'ruby22.y', 1492) def _reduce_388(val, _values, result) result = val[0] << val[2] - + result end .,., @@ -5933,7 +5933,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1492) module_eval(<<'.,.,', 'ruby22.y', 1497) def _reduce_389(val, _values, result) result = @builder.shadowarg(val[0]) - + result end .,., @@ -5943,7 +5943,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1497) module_eval(<<'.,.,', 'ruby22.y', 1502) def _reduce_391(val, _values, result) @static_env.extend_dynamic - + result end .,., @@ -5952,7 +5952,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1506) def _reduce_392(val, _values, result) result = @lexer.cmdarg.dup @lexer.cmdarg.clear - + result end .,., @@ -5965,7 +5965,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1511) result = [ val[1], val[3] ] @static_env.unextend - + result end .,., @@ -5973,7 +5973,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1511) module_eval(<<'.,.,', 'ruby22.y', 1521) def _reduce_394(val, _values, result) result = @builder.args(val[0], val[1].concat(val[2]), val[3]) - + result end .,., @@ -5981,7 +5981,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1521) module_eval(<<'.,.,', 'ruby22.y', 1525) def _reduce_395(val, _values, result) result = @builder.args(nil, val[0], nil) - + result end .,., @@ -5989,7 +5989,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1525) module_eval(<<'.,.,', 'ruby22.y', 1530) def _reduce_396(val, _values, result) result = [ val[0], val[1], val[2] ] - + result end .,., @@ -5997,7 +5997,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1530) module_eval(<<'.,.,', 'ruby22.y', 1534) def _reduce_397(val, _values, result) result = [ val[0], val[1], val[2] ] - + result end .,., @@ -6005,7 +6005,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1534) module_eval(<<'.,.,', 'ruby22.y', 1539) def _reduce_398(val, _values, result) @static_env.extend_dynamic - + result end .,., @@ -6015,7 +6015,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1543) result = [ val[0], val[2], val[3], val[4] ] @static_env.unextend - + result end .,., @@ -6025,7 +6025,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1550) begin_t, block_args, body, end_t = val[1] result = @builder.block(val[0], begin_t, block_args, body, end_t) - + result end .,., @@ -6035,7 +6035,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1556) lparen_t, args, rparen_t = val[3] result = @builder.call_method(val[0], val[1], val[2], lparen_t, args, rparen_t) - + result end .,., @@ -6049,7 +6049,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1562) begin_t, args, body, end_t = val[4] result = @builder.block(method_call, begin_t, args, body, end_t) - + result end .,., @@ -6062,7 +6062,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1572) begin_t, args, body, end_t = val[4] result = @builder.block(method_call, begin_t, args, body, end_t) - + result end .,., @@ -6072,7 +6072,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1582) lparen_t, args, rparen_t = val[1] result = @builder.call_method(nil, nil, val[0], lparen_t, args, rparen_t) - + result end .,., @@ -6082,7 +6082,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1588) lparen_t, args, rparen_t = val[3] result = @builder.call_method(val[0], val[1], val[2], lparen_t, args, rparen_t) - + result end .,., @@ -6092,7 +6092,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1594) lparen_t, args, rparen_t = val[3] result = @builder.call_method(val[0], val[1], val[2], lparen_t, args, rparen_t) - + result end .,., @@ -6100,7 +6100,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1594) module_eval(<<'.,.,', 'ruby22.y', 1600) def _reduce_407(val, _values, result) result = @builder.call_method(val[0], val[1], val[2]) - + result end .,., @@ -6110,7 +6110,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1604) lparen_t, args, rparen_t = val[2] result = @builder.call_method(val[0], val[1], nil, lparen_t, args, rparen_t) - + result end .,., @@ -6120,7 +6120,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1610) lparen_t, args, rparen_t = val[2] result = @builder.call_method(val[0], val[1], nil, lparen_t, args, rparen_t) - + result end .,., @@ -6130,7 +6130,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1616) lparen_t, args, rparen_t = val[1] result = @builder.keyword_cmd(:super, val[0], lparen_t, args, rparen_t) - + result end .,., @@ -6138,7 +6138,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1616) module_eval(<<'.,.,', 'ruby22.y', 1622) def _reduce_411(val, _values, result) result = @builder.keyword_cmd(:zsuper, val[0]) - + result end .,., @@ -6146,7 +6146,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1622) module_eval(<<'.,.,', 'ruby22.y', 1626) def _reduce_412(val, _values, result) result = @builder.index(val[0], val[1], val[2], val[3]) - + result end .,., @@ -6154,7 +6154,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1626) module_eval(<<'.,.,', 'ruby22.y', 1631) def _reduce_413(val, _values, result) @static_env.extend_dynamic - + result end .,., @@ -6164,7 +6164,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1635) result = [ val[0], val[2], val[3], val[4] ] @static_env.unextend - + result end .,., @@ -6172,7 +6172,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1635) module_eval(<<'.,.,', 'ruby22.y', 1641) def _reduce_415(val, _values, result) @static_env.extend_dynamic - + result end .,., @@ -6182,7 +6182,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1645) result = [ val[0], val[2], val[3], val[4] ] @static_env.unextend - + result end .,., @@ -6191,7 +6191,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1652) def _reduce_417(val, _values, result) result = [ @builder.when(val[0], val[1], val[2], val[3]), *val[4] ] - + result end .,., @@ -6199,7 +6199,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1652) module_eval(<<'.,.,', 'ruby22.y', 1658) def _reduce_418(val, _values, result) result = [ val[0] ] - + result end .,., @@ -6218,7 +6218,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1664) exc_list, assoc_t, exc_var, val[3], val[4]), *val[5] ] - + result end .,., @@ -6226,7 +6226,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1664) module_eval(<<'.,.,', 'ruby22.y', 1677) def _reduce_421(val, _values, result) result = [] - + result end .,., @@ -6234,7 +6234,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1677) module_eval(<<'.,.,', 'ruby22.y', 1682) def _reduce_422(val, _values, result) result = [ val[0] ] - + result end .,., @@ -6246,7 +6246,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1682) module_eval(<<'.,.,', 'ruby22.y', 1689) def _reduce_425(val, _values, result) result = [ val[0], val[1] ] - + result end .,., @@ -6256,7 +6256,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1689) module_eval(<<'.,.,', 'ruby22.y', 1695) def _reduce_427(val, _values, result) result = [ val[0], val[1] ] - + result end .,., @@ -6272,7 +6272,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1695) module_eval(<<'.,.,', 'ruby22.y', 1705) def _reduce_432(val, _values, result) result = @builder.string_compose(nil, val[0], nil) - + result end .,., @@ -6280,7 +6280,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1705) module_eval(<<'.,.,', 'ruby22.y', 1710) def _reduce_433(val, _values, result) result = [ val[0] ] - + result end .,., @@ -6288,7 +6288,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1710) module_eval(<<'.,.,', 'ruby22.y', 1714) def _reduce_434(val, _values, result) result = val[0] << val[1] - + result end .,., @@ -6296,7 +6296,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1714) module_eval(<<'.,.,', 'ruby22.y', 1719) def _reduce_435(val, _values, result) result = @builder.string_compose(val[0], val[1], val[2]) - + result end .,., @@ -6304,7 +6304,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1719) module_eval(<<'.,.,', 'ruby22.y', 1723) def _reduce_436(val, _values, result) result = @builder.string(val[0]) - + result end .,., @@ -6312,7 +6312,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1723) module_eval(<<'.,.,', 'ruby22.y', 1727) def _reduce_437(val, _values, result) result = @builder.character(val[0]) - + result end .,., @@ -6320,7 +6320,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1727) module_eval(<<'.,.,', 'ruby22.y', 1732) def _reduce_438(val, _values, result) result = @builder.xstring_compose(val[0], val[1], val[2]) - + result end .,., @@ -6329,7 +6329,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1737) def _reduce_439(val, _values, result) opts = @builder.regexp_options(val[3]) result = @builder.regexp_compose(val[0], val[1], val[2], opts) - + result end .,., @@ -6337,7 +6337,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1737) module_eval(<<'.,.,', 'ruby22.y', 1743) def _reduce_440(val, _values, result) result = @builder.words_compose(val[0], val[1], val[2]) - + result end .,., @@ -6345,7 +6345,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1743) module_eval(<<'.,.,', 'ruby22.y', 1748) def _reduce_441(val, _values, result) result = [] - + result end .,., @@ -6353,7 +6353,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1748) module_eval(<<'.,.,', 'ruby22.y', 1752) def _reduce_442(val, _values, result) result = val[0] << @builder.word(val[1]) - + result end .,., @@ -6361,7 +6361,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1752) module_eval(<<'.,.,', 'ruby22.y', 1757) def _reduce_443(val, _values, result) result = [ val[0] ] - + result end .,., @@ -6369,7 +6369,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1757) module_eval(<<'.,.,', 'ruby22.y', 1761) def _reduce_444(val, _values, result) result = val[0] << val[1] - + result end .,., @@ -6377,7 +6377,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1761) module_eval(<<'.,.,', 'ruby22.y', 1766) def _reduce_445(val, _values, result) result = @builder.symbols_compose(val[0], val[1], val[2]) - + result end .,., @@ -6385,7 +6385,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1766) module_eval(<<'.,.,', 'ruby22.y', 1771) def _reduce_446(val, _values, result) result = [] - + result end .,., @@ -6393,7 +6393,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1771) module_eval(<<'.,.,', 'ruby22.y', 1775) def _reduce_447(val, _values, result) result = val[0] << @builder.word(val[1]) - + result end .,., @@ -6401,7 +6401,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1775) module_eval(<<'.,.,', 'ruby22.y', 1780) def _reduce_448(val, _values, result) result = @builder.words_compose(val[0], val[1], val[2]) - + result end .,., @@ -6409,7 +6409,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1780) module_eval(<<'.,.,', 'ruby22.y', 1785) def _reduce_449(val, _values, result) result = @builder.symbols_compose(val[0], val[1], val[2]) - + result end .,., @@ -6417,7 +6417,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1785) module_eval(<<'.,.,', 'ruby22.y', 1790) def _reduce_450(val, _values, result) result = [] - + result end .,., @@ -6425,7 +6425,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1790) module_eval(<<'.,.,', 'ruby22.y', 1794) def _reduce_451(val, _values, result) result = val[0] << @builder.string_internal(val[1]) - + result end .,., @@ -6433,7 +6433,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1794) module_eval(<<'.,.,', 'ruby22.y', 1799) def _reduce_452(val, _values, result) result = [] - + result end .,., @@ -6441,7 +6441,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1799) module_eval(<<'.,.,', 'ruby22.y', 1803) def _reduce_453(val, _values, result) result = val[0] << @builder.symbol_internal(val[1]) - + result end .,., @@ -6449,7 +6449,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1803) module_eval(<<'.,.,', 'ruby22.y', 1808) def _reduce_454(val, _values, result) result = [] - + result end .,., @@ -6457,7 +6457,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1808) module_eval(<<'.,.,', 'ruby22.y', 1812) def _reduce_455(val, _values, result) result = val[0] << val[1] - + result end .,., @@ -6465,7 +6465,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1812) module_eval(<<'.,.,', 'ruby22.y', 1817) def _reduce_456(val, _values, result) result = [] - + result end .,., @@ -6473,7 +6473,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1817) module_eval(<<'.,.,', 'ruby22.y', 1821) def _reduce_457(val, _values, result) result = val[0] << val[1] - + result end .,., @@ -6481,7 +6481,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1821) module_eval(<<'.,.,', 'ruby22.y', 1826) def _reduce_458(val, _values, result) result = [] - + result end .,., @@ -6489,7 +6489,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1826) module_eval(<<'.,.,', 'ruby22.y', 1830) def _reduce_459(val, _values, result) result = val[0] << val[1] - + result end .,., @@ -6497,7 +6497,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1830) module_eval(<<'.,.,', 'ruby22.y', 1835) def _reduce_460(val, _values, result) result = @builder.string_internal(val[0]) - + result end .,., @@ -6505,7 +6505,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1835) module_eval(<<'.,.,', 'ruby22.y', 1839) def _reduce_461(val, _values, result) result = val[1] - + result end .,., @@ -6514,7 +6514,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1843) def _reduce_462(val, _values, result) @lexer.cond.push(false) @lexer.cmdarg.push(false) - + result end .,., @@ -6525,7 +6525,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1848) @lexer.cmdarg.lexpop result = @builder.begin(val[0], val[2], val[3]) - + result end .,., @@ -6533,7 +6533,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1848) module_eval(<<'.,.,', 'ruby22.y', 1856) def _reduce_464(val, _values, result) result = @builder.gvar(val[0]) - + result end .,., @@ -6541,7 +6541,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1856) module_eval(<<'.,.,', 'ruby22.y', 1860) def _reduce_465(val, _values, result) result = @builder.ivar(val[0]) - + result end .,., @@ -6549,7 +6549,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1860) module_eval(<<'.,.,', 'ruby22.y', 1864) def _reduce_466(val, _values, result) result = @builder.cvar(val[0]) - + result end .,., @@ -6559,7 +6559,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1864) module_eval(<<'.,.,', 'ruby22.y', 1871) def _reduce_468(val, _values, result) result = @builder.symbol(val[0]) - + result end .,., @@ -6567,7 +6567,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1871) module_eval(<<'.,.,', 'ruby22.y', 1876) def _reduce_469(val, _values, result) result = @builder.symbol_compose(val[0], val[1], val[2]) - + result end .,., @@ -6575,7 +6575,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1876) module_eval(<<'.,.,', 'ruby22.y', 1881) def _reduce_470(val, _values, result) result = val[0] - + result end .,., @@ -6583,7 +6583,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1881) module_eval(<<'.,.,', 'ruby22.y', 1885) def _reduce_471(val, _values, result) result = @builder.negate(val[0], val[1]) - + result end .,., @@ -6591,7 +6591,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1885) module_eval(<<'.,.,', 'ruby22.y', 1890) def _reduce_472(val, _values, result) result = @builder.integer(val[0]) - + result end .,., @@ -6599,7 +6599,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1890) module_eval(<<'.,.,', 'ruby22.y', 1894) def _reduce_473(val, _values, result) result = @builder.float(val[0]) - + result end .,., @@ -6607,7 +6607,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1894) module_eval(<<'.,.,', 'ruby22.y', 1898) def _reduce_474(val, _values, result) result = @builder.rational(val[0]) - + result end .,., @@ -6615,7 +6615,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1898) module_eval(<<'.,.,', 'ruby22.y', 1902) def _reduce_475(val, _values, result) result = @builder.complex(val[0]) - + result end .,., @@ -6623,7 +6623,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1902) module_eval(<<'.,.,', 'ruby22.y', 1907) def _reduce_476(val, _values, result) result = @builder.ident(val[0]) - + result end .,., @@ -6631,7 +6631,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1907) module_eval(<<'.,.,', 'ruby22.y', 1911) def _reduce_477(val, _values, result) result = @builder.ivar(val[0]) - + result end .,., @@ -6639,7 +6639,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1911) module_eval(<<'.,.,', 'ruby22.y', 1915) def _reduce_478(val, _values, result) result = @builder.gvar(val[0]) - + result end .,., @@ -6647,7 +6647,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1915) module_eval(<<'.,.,', 'ruby22.y', 1919) def _reduce_479(val, _values, result) result = @builder.const(val[0]) - + result end .,., @@ -6655,7 +6655,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1919) module_eval(<<'.,.,', 'ruby22.y', 1923) def _reduce_480(val, _values, result) result = @builder.cvar(val[0]) - + result end .,., @@ -6663,7 +6663,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1923) module_eval(<<'.,.,', 'ruby22.y', 1928) def _reduce_481(val, _values, result) result = @builder.nil(val[0]) - + result end .,., @@ -6671,7 +6671,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1928) module_eval(<<'.,.,', 'ruby22.y', 1932) def _reduce_482(val, _values, result) result = @builder.self(val[0]) - + result end .,., @@ -6679,7 +6679,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1932) module_eval(<<'.,.,', 'ruby22.y', 1936) def _reduce_483(val, _values, result) result = @builder.true(val[0]) - + result end .,., @@ -6687,7 +6687,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1936) module_eval(<<'.,.,', 'ruby22.y', 1940) def _reduce_484(val, _values, result) result = @builder.false(val[0]) - + result end .,., @@ -6695,7 +6695,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1940) module_eval(<<'.,.,', 'ruby22.y', 1944) def _reduce_485(val, _values, result) result = @builder.__FILE__(val[0]) - + result end .,., @@ -6703,7 +6703,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1944) module_eval(<<'.,.,', 'ruby22.y', 1948) def _reduce_486(val, _values, result) result = @builder.__LINE__(val[0]) - + result end .,., @@ -6711,7 +6711,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1948) module_eval(<<'.,.,', 'ruby22.y', 1952) def _reduce_487(val, _values, result) result = @builder.__ENCODING__(val[0]) - + result end .,., @@ -6719,7 +6719,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1952) module_eval(<<'.,.,', 'ruby22.y', 1957) def _reduce_488(val, _values, result) result = @builder.accessible(val[0]) - + result end .,., @@ -6727,7 +6727,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1957) module_eval(<<'.,.,', 'ruby22.y', 1961) def _reduce_489(val, _values, result) result = @builder.accessible(val[0]) - + result end .,., @@ -6735,7 +6735,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1961) module_eval(<<'.,.,', 'ruby22.y', 1966) def _reduce_490(val, _values, result) result = @builder.assignable(val[0]) - + result end .,., @@ -6743,7 +6743,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1966) module_eval(<<'.,.,', 'ruby22.y', 1970) def _reduce_491(val, _values, result) result = @builder.assignable(val[0]) - + result end .,., @@ -6751,7 +6751,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1970) module_eval(<<'.,.,', 'ruby22.y', 1975) def _reduce_492(val, _values, result) result = @builder.nth_ref(val[0]) - + result end .,., @@ -6759,7 +6759,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1975) module_eval(<<'.,.,', 'ruby22.y', 1979) def _reduce_493(val, _values, result) result = @builder.back_ref(val[0]) - + result end .,., @@ -6767,7 +6767,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1979) module_eval(<<'.,.,', 'ruby22.y', 1984) def _reduce_494(val, _values, result) result = nil - + result end .,., @@ -6775,7 +6775,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1984) module_eval(<<'.,.,', 'ruby22.y', 1988) def _reduce_495(val, _values, result) @lexer.state = :expr_value - + result end .,., @@ -6783,7 +6783,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1988) module_eval(<<'.,.,', 'ruby22.y', 1992) def _reduce_496(val, _values, result) result = [ val[0], val[2] ] - + result end .,., @@ -6792,7 +6792,7 @@ module_eval(<<'.,.,', 'ruby22.y', 1996) def _reduce_497(val, _values, result) yyerrok result = nil - + result end .,., @@ -6802,7 +6802,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2002) result = @builder.args(val[0], val[1], val[2]) @lexer.state = :expr_value - + result end .,., @@ -6811,7 +6811,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2007) def _reduce_499(val, _values, result) result = @lexer.in_kwarg @lexer.in_kwarg = true - + result end .,., @@ -6820,7 +6820,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2012) def _reduce_500(val, _values, result) @lexer.in_kwarg = val[0] result = @builder.args(nil, val[1], nil) - + result end .,., @@ -6828,7 +6828,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2012) module_eval(<<'.,.,', 'ruby22.y', 2018) def _reduce_501(val, _values, result) result = val[0].concat(val[2]).concat(val[3]) - + result end .,., @@ -6836,7 +6836,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2018) module_eval(<<'.,.,', 'ruby22.y', 2022) def _reduce_502(val, _values, result) result = val[0].concat(val[1]) - + result end .,., @@ -6844,7 +6844,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2022) module_eval(<<'.,.,', 'ruby22.y', 2026) def _reduce_503(val, _values, result) result = val[0].concat(val[1]) - + result end .,., @@ -6852,7 +6852,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2026) module_eval(<<'.,.,', 'ruby22.y', 2030) def _reduce_504(val, _values, result) result = [ val[0] ] - + result end .,., @@ -6860,7 +6860,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2030) module_eval(<<'.,.,', 'ruby22.y', 2035) def _reduce_505(val, _values, result) result = val[1] - + result end .,., @@ -6868,7 +6868,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2035) module_eval(<<'.,.,', 'ruby22.y', 2039) def _reduce_506(val, _values, result) result = [] - + result end .,., @@ -6879,7 +6879,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2044) concat(val[2]). concat(val[4]). concat(val[5]) - + result end .,., @@ -6891,7 +6891,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2051) concat(val[4]). concat(val[6]). concat(val[7]) - + result end .,., @@ -6901,7 +6901,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2059) result = val[0]. concat(val[2]). concat(val[3]) - + result end .,., @@ -6912,7 +6912,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2065) concat(val[2]). concat(val[4]). concat(val[5]) - + result end .,., @@ -6922,7 +6922,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2072) result = val[0]. concat(val[2]). concat(val[3]) - + result end .,., @@ -6933,7 +6933,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2078) concat(val[2]). concat(val[4]). concat(val[5]) - + result end .,., @@ -6942,7 +6942,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2085) def _reduce_513(val, _values, result) result = val[0]. concat(val[1]) - + result end .,., @@ -6952,7 +6952,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2090) result = val[0]. concat(val[2]). concat(val[3]) - + result end .,., @@ -6963,7 +6963,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2096) concat(val[2]). concat(val[4]). concat(val[5]) - + result end .,., @@ -6972,7 +6972,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2103) def _reduce_516(val, _values, result) result = val[0]. concat(val[1]) - + result end .,., @@ -6982,7 +6982,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2108) result = val[0]. concat(val[2]). concat(val[3]) - + result end .,., @@ -6991,7 +6991,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2114) def _reduce_518(val, _values, result) result = val[0]. concat(val[1]) - + result end .,., @@ -7001,7 +7001,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2119) result = val[0]. concat(val[2]). concat(val[3]) - + result end .,., @@ -7009,7 +7009,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2119) module_eval(<<'.,.,', 'ruby22.y', 2125) def _reduce_520(val, _values, result) result = val[0] - + result end .,., @@ -7017,7 +7017,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2125) module_eval(<<'.,.,', 'ruby22.y', 2129) def _reduce_521(val, _values, result) result = [] - + result end .,., @@ -7025,7 +7025,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2129) module_eval(<<'.,.,', 'ruby22.y', 2134) def _reduce_522(val, _values, result) diagnostic :error, :argument_const, nil, val[0] - + result end .,., @@ -7033,7 +7033,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2134) module_eval(<<'.,.,', 'ruby22.y', 2138) def _reduce_523(val, _values, result) diagnostic :error, :argument_ivar, nil, val[0] - + result end .,., @@ -7041,7 +7041,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2138) module_eval(<<'.,.,', 'ruby22.y', 2142) def _reduce_524(val, _values, result) diagnostic :error, :argument_gvar, nil, val[0] - + result end .,., @@ -7049,7 +7049,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2142) module_eval(<<'.,.,', 'ruby22.y', 2146) def _reduce_525(val, _values, result) diagnostic :error, :argument_cvar, nil, val[0] - + result end .,., @@ -7061,7 +7061,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2152) @static_env.declare val[0][0] result = val[0] - + result end .,., @@ -7069,7 +7069,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2152) module_eval(<<'.,.,', 'ruby22.y', 2159) def _reduce_528(val, _values, result) result = val[0] - + result end .,., @@ -7077,7 +7077,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2159) module_eval(<<'.,.,', 'ruby22.y', 2164) def _reduce_529(val, _values, result) result = @builder.arg(val[0]) - + result end .,., @@ -7085,7 +7085,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2164) module_eval(<<'.,.,', 'ruby22.y', 2168) def _reduce_530(val, _values, result) result = @builder.multi_lhs(val[0], val[1], val[2]) - + result end .,., @@ -7093,7 +7093,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2168) module_eval(<<'.,.,', 'ruby22.y', 2173) def _reduce_531(val, _values, result) result = [ val[0] ] - + result end .,., @@ -7101,7 +7101,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2173) module_eval(<<'.,.,', 'ruby22.y', 2177) def _reduce_532(val, _values, result) result = val[0] << val[2] - + result end .,., @@ -7113,7 +7113,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2182) @static_env.declare val[0][0] result = val[0] - + result end .,., @@ -7121,7 +7121,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2182) module_eval(<<'.,.,', 'ruby22.y', 2191) def _reduce_534(val, _values, result) result = @builder.kwoptarg(val[0], val[1]) - + result end .,., @@ -7129,7 +7129,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2191) module_eval(<<'.,.,', 'ruby22.y', 2195) def _reduce_535(val, _values, result) result = @builder.kwarg(val[0]) - + result end .,., @@ -7137,7 +7137,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2195) module_eval(<<'.,.,', 'ruby22.y', 2200) def _reduce_536(val, _values, result) result = @builder.kwoptarg(val[0], val[1]) - + result end .,., @@ -7145,7 +7145,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2200) module_eval(<<'.,.,', 'ruby22.y', 2204) def _reduce_537(val, _values, result) result = @builder.kwarg(val[0]) - + result end .,., @@ -7153,7 +7153,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2204) module_eval(<<'.,.,', 'ruby22.y', 2209) def _reduce_538(val, _values, result) result = [ val[0] ] - + result end .,., @@ -7161,7 +7161,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2209) module_eval(<<'.,.,', 'ruby22.y', 2213) def _reduce_539(val, _values, result) result = val[0] << val[2] - + result end .,., @@ -7169,7 +7169,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2213) module_eval(<<'.,.,', 'ruby22.y', 2218) def _reduce_540(val, _values, result) result = [ val[0] ] - + result end .,., @@ -7177,7 +7177,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2218) module_eval(<<'.,.,', 'ruby22.y', 2222) def _reduce_541(val, _values, result) result = val[0] << val[2] - + result end .,., @@ -7191,7 +7191,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2229) @static_env.declare val[1][0] result = [ @builder.kwrestarg(val[0], val[1]) ] - + result end .,., @@ -7199,7 +7199,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2229) module_eval(<<'.,.,', 'ruby22.y', 2235) def _reduce_545(val, _values, result) result = [ @builder.kwrestarg(val[0]) ] - + result end .,., @@ -7207,7 +7207,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2235) module_eval(<<'.,.,', 'ruby22.y', 2240) def _reduce_546(val, _values, result) result = @builder.optarg(val[0], val[1], val[2]) - + result end .,., @@ -7215,7 +7215,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2240) module_eval(<<'.,.,', 'ruby22.y', 2245) def _reduce_547(val, _values, result) result = @builder.optarg(val[0], val[1], val[2]) - + result end .,., @@ -7223,7 +7223,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2245) module_eval(<<'.,.,', 'ruby22.y', 2250) def _reduce_548(val, _values, result) result = [ val[0] ] - + result end .,., @@ -7231,7 +7231,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2250) module_eval(<<'.,.,', 'ruby22.y', 2254) def _reduce_549(val, _values, result) result = val[0] << val[2] - + result end .,., @@ -7239,7 +7239,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2254) module_eval(<<'.,.,', 'ruby22.y', 2259) def _reduce_550(val, _values, result) result = [ val[0] ] - + result end .,., @@ -7247,7 +7247,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2259) module_eval(<<'.,.,', 'ruby22.y', 2263) def _reduce_551(val, _values, result) result = val[0] << val[2] - + result end .,., @@ -7261,7 +7261,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2270) @static_env.declare val[1][0] result = [ @builder.restarg(val[0], val[1]) ] - + result end .,., @@ -7269,7 +7269,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2270) module_eval(<<'.,.,', 'ruby22.y', 2276) def _reduce_555(val, _values, result) result = [ @builder.restarg(val[0]) ] - + result end .,., @@ -7283,7 +7283,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2283) @static_env.declare val[1][0] result = @builder.blockarg(val[0], val[1]) - + result end .,., @@ -7291,7 +7291,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2283) module_eval(<<'.,.,', 'ruby22.y', 2290) def _reduce_559(val, _values, result) result = [ val[1] ] - + result end .,., @@ -7299,7 +7299,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2290) module_eval(<<'.,.,', 'ruby22.y', 2294) def _reduce_560(val, _values, result) result = [] - + result end .,., @@ -7309,7 +7309,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2294) module_eval(<<'.,.,', 'ruby22.y', 2300) def _reduce_562(val, _values, result) result = val[1] - + result end .,., @@ -7317,7 +7317,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2300) module_eval(<<'.,.,', 'ruby22.y', 2305) def _reduce_563(val, _values, result) result = [] - + result end .,., @@ -7327,7 +7327,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2305) module_eval(<<'.,.,', 'ruby22.y', 2311) def _reduce_565(val, _values, result) result = [ val[0] ] - + result end .,., @@ -7335,7 +7335,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2311) module_eval(<<'.,.,', 'ruby22.y', 2315) def _reduce_566(val, _values, result) result = val[0] << val[2] - + result end .,., @@ -7343,7 +7343,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2315) module_eval(<<'.,.,', 'ruby22.y', 2320) def _reduce_567(val, _values, result) result = @builder.pair(val[0], val[1], val[2]) - + result end .,., @@ -7351,7 +7351,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2320) module_eval(<<'.,.,', 'ruby22.y', 2324) def _reduce_568(val, _values, result) result = @builder.pair_keyword(val[0], val[1]) - + result end .,., @@ -7359,7 +7359,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2324) module_eval(<<'.,.,', 'ruby22.y', 2328) def _reduce_569(val, _values, result) result = @builder.pair_quoted(val[0], val[1], val[2], val[3]) - + result end .,., @@ -7367,7 +7367,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2328) module_eval(<<'.,.,', 'ruby22.y', 2332) def _reduce_570(val, _values, result) result = @builder.kwsplat(val[0], val[1]) - + result end .,., @@ -7407,7 +7407,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2332) module_eval(<<'.,.,', 'ruby22.y', 2343) def _reduce_587(val, _values, result) result = val[1] - + result end .,., @@ -7415,7 +7415,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2343) module_eval(<<'.,.,', 'ruby22.y', 2347) def _reduce_588(val, _values, result) result = val[1] - + result end .,., @@ -7429,7 +7429,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2347) module_eval(<<'.,.,', 'ruby22.y', 2353) def _reduce_592(val, _values, result) yyerrok - + result end .,., @@ -7443,7 +7443,7 @@ module_eval(<<'.,.,', 'ruby22.y', 2353) module_eval(<<'.,.,', 'ruby22.y', 2362) def _reduce_596(val, _values, result) result = nil - + result end .,., diff --git a/test/racc/regress/tp_plus b/test/racc/regress/tp_plus index 2c53106d38..2ca318ba71 100644 --- a/test/racc/regress/tp_plus +++ b/test/racc/regress/tp_plus @@ -882,7 +882,7 @@ Racc_debug_parser = false module_eval(<<'.,.,', 'tp_plus.y', 35) def _reduce_1(val, _values, result) - @interpreter.nodes = val[0] + @interpreter.nodes = val[0] result end .,., @@ -893,7 +893,7 @@ module_eval(<<'.,.,', 'tp_plus.y', 42) def _reduce_3(val, _values, result) result = [val[0]] result << val[1] unless val[1].nil? - + result end .,., @@ -902,14 +902,14 @@ module_eval(<<'.,.,', 'tp_plus.y', 46) def _reduce_4(val, _values, result) result = val[0] << val[1] result << val[2] unless val[2].nil? - + result end .,., module_eval(<<'.,.,', 'tp_plus.y', 52) def _reduce_5(val, _values, result) - result = val[1] + result = val[1] result end .,., @@ -960,28 +960,28 @@ module_eval(<<'.,.,', 'tp_plus.y', 52) module_eval(<<'.,.,', 'tp_plus.y', 85) def _reduce_28(val, _values, result) - result = PauseNode.new + result = PauseNode.new result end .,., module_eval(<<'.,.,', 'tp_plus.y', 86) def _reduce_29(val, _values, result) - result = AbortNode.new + result = AbortNode.new result end .,., module_eval(<<'.,.,', 'tp_plus.y', 90) def _reduce_30(val, _values, result) - result = EmptyStmtNode.new() + result = EmptyStmtNode.new() result end .,., module_eval(<<'.,.,', 'tp_plus.y', 94) def _reduce_31(val, _values, result) - result = HeaderNode.new(val[0],val[2]) + result = HeaderNode.new(val[0],val[2]) result end .,., @@ -992,49 +992,49 @@ module_eval(<<'.,.,', 'tp_plus.y', 94) module_eval(<<'.,.,', 'tp_plus.y', 103) def _reduce_34(val, _values, result) - result = RaiseNode.new(val[1]) + result = RaiseNode.new(val[1]) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 107) def _reduce_35(val, _values, result) - result = TimerMethodNode.new(val[0],val[1]) + result = TimerMethodNode.new(val[0],val[1]) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 111) def _reduce_36(val, _values, result) - result = EvalNode.new(val[1]) + result = EvalNode.new(val[1]) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 116) def _reduce_37(val, _values, result) - result = WaitForNode.new(val[2], val[4]) + result = WaitForNode.new(val[2], val[4]) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 118) def _reduce_38(val, _values, result) - result = WaitUntilNode.new(val[2], nil) + result = WaitUntilNode.new(val[2], nil) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 120) def _reduce_39(val, _values, result) - result = WaitUntilNode.new(val[2],val[5]) + result = WaitUntilNode.new(val[2],val[5]) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 122) def _reduce_40(val, _values, result) - result = WaitUntilNode.new(val[2],val[5].merge(val[7])) + result = WaitUntilNode.new(val[2],val[5].merge(val[7])) result end .,., @@ -1045,70 +1045,70 @@ module_eval(<<'.,.,', 'tp_plus.y', 122) module_eval(<<'.,.,', 'tp_plus.y', 132) def _reduce_43(val, _values, result) - result = { label: val[3] } + result = { label: val[3] } result end .,., module_eval(<<'.,.,', 'tp_plus.y', 137) def _reduce_44(val, _values, result) - result = { timeout: [val[3],val[5]] } + result = { timeout: [val[3],val[5]] } result end .,., module_eval(<<'.,.,', 'tp_plus.y', 141) def _reduce_45(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'tp_plus.y', 145) def _reduce_46(val, _values, result) - result = UseNode.new(val[0],val[1]) + result = UseNode.new(val[0],val[1]) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 150) def _reduce_47(val, _values, result) - result = SetSkipNode.new(val[1]) + result = SetSkipNode.new(val[1]) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 154) def _reduce_48(val, _values, result) - result = CallNode.new(val[0],val[2]) + result = CallNode.new(val[0],val[2]) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 155) def _reduce_49(val, _values, result) - result = CallNode.new(val[1],val[3],async: true) + result = CallNode.new(val[1],val[3],async: true) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 159) def _reduce_50(val, _values, result) - result = [val[0]] + result = [val[0]] result end .,., module_eval(<<'.,.,', 'tp_plus.y', 160) def _reduce_51(val, _values, result) - result = val[0] << val[2] + result = val[0] << val[2] result end .,., module_eval(<<'.,.,', 'tp_plus.y', 161) def _reduce_52(val, _values, result) - result = [] + result = [] result end .,., @@ -1123,28 +1123,28 @@ module_eval(<<'.,.,', 'tp_plus.y', 161) module_eval(<<'.,.,', 'tp_plus.y', 172) def _reduce_57(val, _values, result) - result = StringNode.new(val[0]) + result = StringNode.new(val[0]) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 176) def _reduce_58(val, _values, result) - result = IOMethodNode.new(val[0],val[1]) + result = IOMethodNode.new(val[0],val[1]) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 178) def _reduce_59(val, _values, result) - result = IOMethodNode.new(val[0],val[2]) + result = IOMethodNode.new(val[0],val[2]) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 180) def _reduce_60(val, _values, result) - result = IOMethodNode.new(val[0],val[2],{ pulse_time: val[4], pulse_units: val[6] }) + result = IOMethodNode.new(val[0],val[2],{ pulse_time: val[4], pulse_units: val[6] }) result end .,., @@ -1155,35 +1155,35 @@ module_eval(<<'.,.,', 'tp_plus.y', 180) module_eval(<<'.,.,', 'tp_plus.y', 190) def _reduce_63(val, _values, result) - result = JumpNode.new(val[1]) + result = JumpNode.new(val[1]) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 195) def _reduce_64(val, _values, result) - result = ConditionalNode.new("if",val[1],val[2],val[3]) + result = ConditionalNode.new("if",val[1],val[2],val[3]) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 197) def _reduce_65(val, _values, result) - result = ConditionalNode.new("unless",val[1],val[2],val[3]) + result = ConditionalNode.new("unless",val[1],val[2],val[3]) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 202) def _reduce_66(val, _values, result) - result = ForNode.new(val[1],val[4],val[6],val[8]) + result = ForNode.new(val[1],val[4],val[6],val[8]) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 206) def _reduce_67(val, _values, result) - result = WhileNode.new(val[1],val[2]) + result = WhileNode.new(val[1],val[2]) result end .,., @@ -1194,35 +1194,35 @@ module_eval(<<'.,.,', 'tp_plus.y', 206) module_eval(<<'.,.,', 'tp_plus.y', 215) def _reduce_70(val, _values, result) - result = NamespaceNode.new(val[1],val[2]) + result = NamespaceNode.new(val[1],val[2]) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 222) def _reduce_71(val, _values, result) - result = CaseNode.new(val[1],val[3],val[4]) + result = CaseNode.new(val[1],val[3],val[4]) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 226) def _reduce_72(val, _values, result) - result = val + result = val result end .,., module_eval(<<'.,.,', 'tp_plus.y', 228) def _reduce_73(val, _values, result) - result = val[0] << val[1] << val[2] + result = val[0] << val[1] << val[2] result end .,., module_eval(<<'.,.,', 'tp_plus.y', 233) def _reduce_74(val, _values, result) - result = CaseConditionNode.new(val[1],val[3]) + result = CaseConditionNode.new(val[1],val[3]) result end .,., @@ -1233,7 +1233,7 @@ module_eval(<<'.,.,', 'tp_plus.y', 233) module_eval(<<'.,.,', 'tp_plus.y', 243) def _reduce_77(val, _values, result) - result = CaseConditionNode.new(nil,val[2]) + result = CaseConditionNode.new(nil,val[2]) result end .,., @@ -1248,14 +1248,14 @@ module_eval(<<'.,.,', 'tp_plus.y', 243) module_eval(<<'.,.,', 'tp_plus.y', 254) def _reduce_82(val, _values, result) - result = InlineConditionalNode.new(val[1], val[2], val[0]) + result = InlineConditionalNode.new(val[1], val[2], val[0]) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 255) def _reduce_83(val, _values, result) - result = InlineConditionalNode.new(val[1], val[2], val[0]) + result = InlineConditionalNode.new(val[1], val[2], val[0]) result end .,., @@ -1270,70 +1270,70 @@ module_eval(<<'.,.,', 'tp_plus.y', 255) module_eval(<<'.,.,', 'tp_plus.y', 266) def _reduce_88(val, _values, result) - result = val[1] + result = val[1] result end .,., module_eval(<<'.,.,', 'tp_plus.y', 267) def _reduce_89(val, _values, result) - result = [] + result = [] result end .,., module_eval(<<'.,.,', 'tp_plus.y', 272) def _reduce_90(val, _values, result) - result = MotionNode.new(val[0],val[5],val[7]) + result = MotionNode.new(val[0],val[5],val[7]) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 276) def _reduce_91(val, _values, result) - result = val + result = val result end .,., module_eval(<<'.,.,', 'tp_plus.y', 278) def _reduce_92(val, _values, result) - result = val[0] << val[1] + result = val[0] << val[1] result end .,., module_eval(<<'.,.,', 'tp_plus.y', 283) def _reduce_93(val, _values, result) - result = SpeedNode.new(val[4]) + result = SpeedNode.new(val[4]) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 285) def _reduce_94(val, _values, result) - result = TerminationNode.new(val[4]) + result = TerminationNode.new(val[4]) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 287) def _reduce_95(val, _values, result) - result = OffsetNode.new(val[2],val[4]) + result = OffsetNode.new(val[2],val[4]) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 289) def _reduce_96(val, _values, result) - result = TimeNode.new(val[2],val[4],val[6]) + result = TimeNode.new(val[2],val[4],val[6]) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 291) def _reduce_97(val, _values, result) - result = SkipNode.new(val[4],val[5]) + result = SkipNode.new(val[4],val[5]) result end .,., @@ -1347,14 +1347,14 @@ module_eval(<<'.,.,', 'tp_plus.y', 298) raise Racc::ParseError, sprintf("\ninvalid termination type: (%s)", val[1]) if val[1] != 1 result = DigitNode.new(val[1].to_i * -1) - + result end .,., module_eval(<<'.,.,', 'tp_plus.y', 305) def _reduce_101(val, _values, result) - result = val[1] + result = val[1] result end .,., @@ -1375,35 +1375,35 @@ module_eval(<<'.,.,', 'tp_plus.y', 305) module_eval(<<'.,.,', 'tp_plus.y', 325) def _reduce_109(val, _values, result) - result = { speed: val[0], units: val[2] } + result = { speed: val[0], units: val[2] } result end .,., module_eval(<<'.,.,', 'tp_plus.y', 326) def _reduce_110(val, _values, result) - result = { speed: val[0], units: nil } + result = { speed: val[0], units: nil } result end .,., module_eval(<<'.,.,', 'tp_plus.y', 330) def _reduce_111(val, _values, result) - result = LabelDefinitionNode.new(val[0]) + result = LabelDefinitionNode.new(val[0]) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 334) def _reduce_112(val, _values, result) - result = DefinitionNode.new(val[0],val[2]) + result = DefinitionNode.new(val[0],val[2]) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 338) def _reduce_113(val, _values, result) - result = AssignmentNode.new(val[0],val[2]) + result = AssignmentNode.new(val[0],val[2]) result end .,., @@ -1414,7 +1414,7 @@ module_eval(<<'.,.,', 'tp_plus.y', 339) val[0], ExpressionNode.new(val[0],"+",val[3]) ) - + result end .,., @@ -1425,7 +1425,7 @@ module_eval(<<'.,.,', 'tp_plus.y', 344) val[0], ExpressionNode.new(val[0],"-",val[3]) ) - + result end .,., @@ -1436,70 +1436,70 @@ module_eval(<<'.,.,', 'tp_plus.y', 344) module_eval(<<'.,.,', 'tp_plus.y', 357) def _reduce_118(val, _values, result) - result = VarNode.new(val[0]) + result = VarNode.new(val[0]) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 358) def _reduce_119(val, _values, result) - result = VarMethodNode.new(val[0],val[1]) + result = VarMethodNode.new(val[0],val[1]) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 363) def _reduce_120(val, _values, result) - result = NamespacedVarNode.new(val[0],val[1]) + result = NamespacedVarNode.new(val[0],val[1]) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 367) def _reduce_121(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'tp_plus.y', 369) def _reduce_122(val, _values, result) - result = val[0].merge(val[1]) + result = val[0].merge(val[1]) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 373) def _reduce_123(val, _values, result) - result = { method: val[2] } + result = { method: val[2] } result end .,., module_eval(<<'.,.,', 'tp_plus.y', 375) def _reduce_124(val, _values, result) - result = { group: val[4] } + result = { group: val[4] } result end .,., module_eval(<<'.,.,', 'tp_plus.y', 379) def _reduce_125(val, _values, result) - result = [val[0]] + result = [val[0]] result end .,., module_eval(<<'.,.,', 'tp_plus.y', 380) def _reduce_126(val, _values, result) - result = val[0] << val[1] + result = val[0] << val[1] result end .,., module_eval(<<'.,.,', 'tp_plus.y', 384) def _reduce_127(val, _values, result) - result = val[0] + result = val[0] result end .,., @@ -1510,7 +1510,7 @@ module_eval(<<'.,.,', 'tp_plus.y', 384) module_eval(<<'.,.,', 'tp_plus.y', 394) def _reduce_130(val, _values, result) - result = val[0] + result = val[0] result end .,., @@ -1519,112 +1519,112 @@ module_eval(<<'.,.,', 'tp_plus.y', 394) module_eval(<<'.,.,', 'tp_plus.y', 396) def _reduce_132(val, _values, result) - result = ExpressionNode.new(val[1], "!", nil) + result = ExpressionNode.new(val[1], "!", nil) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 401) def _reduce_133(val, _values, result) - result = ExpressionNode.new(val[0], val[1], val[2]) + result = ExpressionNode.new(val[0], val[1], val[2]) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 405) def _reduce_134(val, _values, result) - result = "==" + result = "==" result end .,., module_eval(<<'.,.,', 'tp_plus.y', 406) def _reduce_135(val, _values, result) - result = "<>" + result = "<>" result end .,., module_eval(<<'.,.,', 'tp_plus.y', 407) def _reduce_136(val, _values, result) - result = "<" + result = "<" result end .,., module_eval(<<'.,.,', 'tp_plus.y', 408) def _reduce_137(val, _values, result) - result = ">" + result = ">" result end .,., module_eval(<<'.,.,', 'tp_plus.y', 409) def _reduce_138(val, _values, result) - result = ">=" + result = ">=" result end .,., module_eval(<<'.,.,', 'tp_plus.y', 410) def _reduce_139(val, _values, result) - result = "<=" + result = "<=" result end .,., module_eval(<<'.,.,', 'tp_plus.y', 411) def _reduce_140(val, _values, result) - result = "+" + result = "+" result end .,., module_eval(<<'.,.,', 'tp_plus.y', 412) def _reduce_141(val, _values, result) - result = "-" + result = "-" result end .,., module_eval(<<'.,.,', 'tp_plus.y', 413) def _reduce_142(val, _values, result) - result = "||" + result = "||" result end .,., module_eval(<<'.,.,', 'tp_plus.y', 414) def _reduce_143(val, _values, result) - result = "*" + result = "*" result end .,., module_eval(<<'.,.,', 'tp_plus.y', 415) def _reduce_144(val, _values, result) - result = "/" + result = "/" result end .,., module_eval(<<'.,.,', 'tp_plus.y', 416) def _reduce_145(val, _values, result) - result = "DIV" + result = "DIV" result end .,., module_eval(<<'.,.,', 'tp_plus.y', 417) def _reduce_146(val, _values, result) - result = "%" + result = "%" result end .,., module_eval(<<'.,.,', 'tp_plus.y', 418) def _reduce_147(val, _values, result) - result = "&&" + result = "&&" result end .,., @@ -1641,14 +1641,14 @@ module_eval(<<'.,.,', 'tp_plus.y', 418) module_eval(<<'.,.,', 'tp_plus.y', 430) def _reduce_153(val, _values, result) - result = ParenExpressionNode.new(val[1]) + result = ParenExpressionNode.new(val[1]) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 435) def _reduce_154(val, _values, result) - result = IndirectNode.new(val[2].to_sym, val[4]) + result = IndirectNode.new(val[2].to_sym, val[4]) result end .,., @@ -1657,21 +1657,21 @@ module_eval(<<'.,.,', 'tp_plus.y', 440) def _reduce_155(val, _values, result) val[1] = val[1].to_i * -1 if val[0] == "-" result = DigitNode.new(val[1]) - + result end .,., module_eval(<<'.,.,', 'tp_plus.y', 443) def _reduce_156(val, _values, result) - val[1] = val[1].to_f * -1 if val[0] == "-"; result = RealNode.new(val[1]) + val[1] = val[1].to_f * -1 if val[0] == "-"; result = RealNode.new(val[1]) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 447) def _reduce_157(val, _values, result) - result = "-" + result = "-" result end .,., @@ -1680,14 +1680,14 @@ module_eval(<<'.,.,', 'tp_plus.y', 447) module_eval(<<'.,.,', 'tp_plus.y', 452) def _reduce_159(val, _values, result) - result = RealNode.new(val[0]) + result = RealNode.new(val[0]) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 456) def _reduce_160(val, _values, result) - result = DigitNode.new(val[0]) + result = DigitNode.new(val[0]) result end .,., @@ -1718,98 +1718,98 @@ module_eval(<<'.,.,', 'tp_plus.y', 456) module_eval(<<'.,.,', 'tp_plus.y', 476) def _reduce_173(val, _values, result) - result = StringRegisterNode.new(val[2].to_i) + result = StringRegisterNode.new(val[2].to_i) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 480) def _reduce_174(val, _values, result) - result = UserAlarmNode.new(val[2].to_i) + result = UserAlarmNode.new(val[2].to_i) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 484) def _reduce_175(val, _values, result) - result = TimerNode.new(val[2].to_i) + result = TimerNode.new(val[2].to_i) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 488) def _reduce_176(val, _values, result) - result = ArgumentNode.new(val[2].to_i) + result = ArgumentNode.new(val[2].to_i) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 492) def _reduce_177(val, _values, result) - result = VisionRegisterNode.new(val[2].to_i) + result = VisionRegisterNode.new(val[2].to_i) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 496) def _reduce_178(val, _values, result) - result = PositionNode.new(val[2].to_i) + result = PositionNode.new(val[2].to_i) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 500) def _reduce_179(val, _values, result) - result = NumregNode.new(val[2].to_i) + result = NumregNode.new(val[2].to_i) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 504) def _reduce_180(val, _values, result) - result = PosregNode.new(val[2].to_i) + result = PosregNode.new(val[2].to_i) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 508) def _reduce_181(val, _values, result) - result = IONode.new(val[0], val[2].to_i) + result = IONode.new(val[0], val[2].to_i) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 512) def _reduce_182(val, _values, result) - result = IONode.new(val[0], val[2].to_i) + result = IONode.new(val[0], val[2].to_i) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 516) def _reduce_183(val, _values, result) - result = AddressNode.new(val[0]) + result = AddressNode.new(val[0]) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 520) def _reduce_184(val, _values, result) - result = CommentNode.new(val[0]) + result = CommentNode.new(val[0]) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 524) def _reduce_185(val, _values, result) - result = TerminatorNode.new + result = TerminatorNode.new result end .,., module_eval(<<'.,.,', 'tp_plus.y', 525) def _reduce_186(val, _values, result) - result = val[0] + result = val[0] result end .,., @@ -1820,7 +1820,7 @@ module_eval(<<'.,.,', 'tp_plus.y', 525) module_eval(<<'.,.,', 'tp_plus.y', 532) def _reduce_189(val, _values, result) - result = TerminatorNode.new + result = TerminatorNode.new result end .,., @@ -1829,7 +1829,7 @@ module_eval(<<'.,.,', 'tp_plus.y', 532) module_eval(<<'.,.,', 'tp_plus.y', 538) def _reduce_191(val, _values, result) - result = PositionDataNode.new(val[2]) + result = PositionDataNode.new(val[2]) result end .,., @@ -1838,35 +1838,35 @@ module_eval(<<'.,.,', 'tp_plus.y', 538) module_eval(<<'.,.,', 'tp_plus.y', 546) def _reduce_193(val, _values, result) - result = val[2] + result = val[2] result end .,., module_eval(<<'.,.,', 'tp_plus.y', 547) def _reduce_194(val, _values, result) - result = {} + result = {} result end .,., module_eval(<<'.,.,', 'tp_plus.y', 551) def _reduce_195(val, _values, result) - result = val[0] + result = val[0] result end .,., module_eval(<<'.,.,', 'tp_plus.y', 553) def _reduce_196(val, _values, result) - result = val[0].merge(val[3]) + result = val[0].merge(val[3]) result end .,., module_eval(<<'.,.,', 'tp_plus.y', 557) def _reduce_197(val, _values, result) - result = { val[0].to_sym => val[2] } + result = { val[0].to_sym => val[2] } result end .,., @@ -1879,21 +1879,21 @@ module_eval(<<'.,.,', 'tp_plus.y', 557) module_eval(<<'.,.,', 'tp_plus.y', 564) def _reduce_201(val, _values, result) - val[1] = val[1].to_i * -1 if val[0] == "-"; result = val[1] + val[1] = val[1].to_i * -1 if val[0] == "-"; result = val[1] result end .,., module_eval(<<'.,.,', 'tp_plus.y', 565) def _reduce_202(val, _values, result) - val[1] = val[1].to_f * -1 if val[0] == "-"; result = val[1] + val[1] = val[1].to_f * -1 if val[0] == "-"; result = val[1] result end .,., module_eval(<<'.,.,', 'tp_plus.y', 566) def _reduce_203(val, _values, result) - result = val[0] == "true" + result = val[0] == "true" result end .,., @@ -1904,21 +1904,21 @@ module_eval(<<'.,.,', 'tp_plus.y', 566) module_eval(<<'.,.,', 'tp_plus.y', 575) def _reduce_206(val, _values, result) - result = val[2] + result = val[2] result end .,., module_eval(<<'.,.,', 'tp_plus.y', 579) def _reduce_207(val, _values, result) - result = val + result = val result end .,., module_eval(<<'.,.,', 'tp_plus.y', 580) def _reduce_208(val, _values, result) - result = val[0] << val[3] + result = val[0] << val[3] result end .,., diff --git a/test/racc/regress/twowaysql b/test/racc/regress/twowaysql index da71b4be52..173a8552db 100644 --- a/test/racc/regress/twowaysql +++ b/test/racc/regress/twowaysql @@ -60,7 +60,7 @@ def parse( io ) # @q.push [ false, nil ] @q.push [ false, [@s.pos, nil] ] - + ## call racc's private parse method do_parse end @@ -326,7 +326,7 @@ Racc_debug_parser = false module_eval(<<'.,.,', 'twowaysql.y', 20) def _reduce_1(val, _values, result) result = RootNode.new( val[0] ) - + result end .,., @@ -334,7 +334,7 @@ module_eval(<<'.,.,', 'twowaysql.y', 20) module_eval(<<'.,.,', 'twowaysql.y', 25) def _reduce_2(val, _values, result) result = [] - + result end .,., @@ -342,7 +342,7 @@ module_eval(<<'.,.,', 'twowaysql.y', 25) module_eval(<<'.,.,', 'twowaysql.y', 29) def _reduce_3(val, _values, result) result.push val[1] - + result end .,., @@ -356,7 +356,7 @@ module_eval(<<'.,.,', 'twowaysql.y', 29) module_eval(<<'.,.,', 'twowaysql.y', 38) def _reduce_7(val, _values, result) result = BeginNode.new( val[1] ) - + result end .,., @@ -364,7 +364,7 @@ module_eval(<<'.,.,', 'twowaysql.y', 38) module_eval(<<'.,.,', 'twowaysql.y', 43) def _reduce_8(val, _values, result) result = IfNode.new( val[0][1], val[1], val[2] ) - + result end .,., @@ -372,7 +372,7 @@ module_eval(<<'.,.,', 'twowaysql.y', 43) module_eval(<<'.,.,', 'twowaysql.y', 48) def _reduce_9(val, _values, result) result = val[1] - + result end .,., @@ -380,7 +380,7 @@ module_eval(<<'.,.,', 'twowaysql.y', 48) module_eval(<<'.,.,', 'twowaysql.y', 52) def _reduce_10(val, _values, result) result = nil - + result end .,., @@ -394,7 +394,7 @@ module_eval(<<'.,.,', 'twowaysql.y', 52) module_eval(<<'.,.,', 'twowaysql.y', 61) def _reduce_14(val, _values, result) result = SubStatementNode.new( val[0][1], val[1] ) - + result end .,., @@ -402,7 +402,7 @@ module_eval(<<'.,.,', 'twowaysql.y', 61) module_eval(<<'.,.,', 'twowaysql.y', 66) def _reduce_15(val, _values, result) result = SubStatementNode.new( val[0][1], val[1] ) - + result end .,., @@ -410,7 +410,7 @@ module_eval(<<'.,.,', 'twowaysql.y', 66) module_eval(<<'.,.,', 'twowaysql.y', 71) def _reduce_16(val, _values, result) result = LiteralNode.new( val[0][1] ) - + result end .,., @@ -418,7 +418,7 @@ module_eval(<<'.,.,', 'twowaysql.y', 71) module_eval(<<'.,.,', 'twowaysql.y', 75) def _reduce_17(val, _values, result) result = LiteralNode.new( val[0][1] ) - + result end .,., @@ -426,7 +426,7 @@ module_eval(<<'.,.,', 'twowaysql.y', 75) module_eval(<<'.,.,', 'twowaysql.y', 79) def _reduce_18(val, _values, result) result = LiteralNode.new( val[0][1] ) - + result end .,., @@ -434,7 +434,7 @@ module_eval(<<'.,.,', 'twowaysql.y', 79) module_eval(<<'.,.,', 'twowaysql.y', 83) def _reduce_19(val, _values, result) result = LiteralNode.new( val[0][1] ) - + result end .,., @@ -442,7 +442,7 @@ module_eval(<<'.,.,', 'twowaysql.y', 83) module_eval(<<'.,.,', 'twowaysql.y', 87) def _reduce_20(val, _values, result) result = WhiteSpaceNode.new( val[0][1], @preserve_space ) - + result end .,., @@ -450,7 +450,7 @@ module_eval(<<'.,.,', 'twowaysql.y', 87) module_eval(<<'.,.,', 'twowaysql.y', 91) def _reduce_21(val, _values, result) result = LiteralNode.new( val[0][1] ) - + result end .,., @@ -458,7 +458,7 @@ module_eval(<<'.,.,', 'twowaysql.y', 91) module_eval(<<'.,.,', 'twowaysql.y', 95) def _reduce_22(val, _values, result) result = LiteralNode.new( val[0][1] ) - + result end .,., @@ -466,7 +466,7 @@ module_eval(<<'.,.,', 'twowaysql.y', 95) module_eval(<<'.,.,', 'twowaysql.y', 99) def _reduce_23(val, _values, result) result = LiteralNode.new( val[0][1] ) - + result end .,., @@ -475,7 +475,7 @@ module_eval(<<'.,.,', 'twowaysql.y', 103) def _reduce_24(val, _values, result) @num_questions += 1 result = QuestionNode.new( @num_questions ) - + result end .,., @@ -483,7 +483,7 @@ module_eval(<<'.,.,', 'twowaysql.y', 103) module_eval(<<'.,.,', 'twowaysql.y', 108) def _reduce_25(val, _values, result) result = ActualCommentNode.new( val[0][1] , val[0][2] ) - + result end .,., @@ -495,7 +495,7 @@ module_eval(<<'.,.,', 'twowaysql.y', 108) module_eval(<<'.,.,', 'twowaysql.y', 115) def _reduce_28(val, _values, result) result = BindVariableNode.new( val[0][1] ) - + result end .,., @@ -503,7 +503,7 @@ module_eval(<<'.,.,', 'twowaysql.y', 115) module_eval(<<'.,.,', 'twowaysql.y', 119) def _reduce_29(val, _values, result) result = BindVariableNode.new( val[0][1] ) - + result end .,., @@ -511,7 +511,7 @@ module_eval(<<'.,.,', 'twowaysql.y', 119) module_eval(<<'.,.,', 'twowaysql.y', 123) def _reduce_30(val, _values, result) result = BindVariableNode.new( val[0][1] ) - + result end .,., @@ -519,7 +519,7 @@ module_eval(<<'.,.,', 'twowaysql.y', 123) module_eval(<<'.,.,', 'twowaysql.y', 127) def _reduce_31(val, _values, result) result = BindVariableNode.new( val[0][1] ) - + result end .,., @@ -527,7 +527,7 @@ module_eval(<<'.,.,', 'twowaysql.y', 127) module_eval(<<'.,.,', 'twowaysql.y', 131) def _reduce_32(val, _values, result) result = ParenBindVariableNode.new( val[0][1] ) - + result end .,., @@ -535,7 +535,7 @@ module_eval(<<'.,.,', 'twowaysql.y', 131) module_eval(<<'.,.,', 'twowaysql.y', 136) def _reduce_33(val, _values, result) result = EmbedVariableNode.new( val[0][1] ) - + result end .,., @@ -543,7 +543,7 @@ module_eval(<<'.,.,', 'twowaysql.y', 136) module_eval(<<'.,.,', 'twowaysql.y', 140) def _reduce_34(val, _values, result) result = EmbedVariableNode.new( val[0][1] ) - + result end .,.,