diff options
author | Dave Mitchell <davem@fdisolutions.com> | 2007-07-16 13:15:37 +0000 |
---|---|---|
committer | Dave Mitchell <davem@fdisolutions.com> | 2007-07-16 13:15:37 +0000 |
commit | 503de4705ff6537018ae94e9179e16636748b2a6 (patch) | |
tree | d022d6d730a079eac8721ce355c9ae08c781a689 /perly.act | |
parent | 4629c4f60ec83d0f102cd8ac641c8eefa2bb4a6f (diff) | |
download | perl-503de4705ff6537018ae94e9179e16636748b2a6.tar.gz |
[perl #43425] local $[: fix scoping during parser error handling.
Change 22306# inadvertently made 'local $[' statement-scoped
rather than block-scoped; so revert that change and add a
different fix. The problem was to ensure that the savestack got
popped correctly while popping errored tokens. We how record the
current value of PL_savestack_ix with each pushed parser state.
p4raw-id: //depot/perl@31615
Diffstat (limited to 'perly.act')
-rw-r--r-- | perly.act | 714 |
1 files changed, 355 insertions, 359 deletions
@@ -46,17 +46,12 @@ case 2: break; case 9: -#line 179 "perly.y" - { (yyval.ival) = PL_savestack_ix; ;} - break; - - case 10: -#line 183 "perly.y" +#line 180 "perly.y" { (yyval.opval) = Nullop; ;} break; - case 11: -#line 185 "perly.y" + case 10: +#line 182 "perly.y" { (yyval.opval) = IF_MAD( append_list(OP_LINESEQ, @@ -65,33 +60,34 @@ case 2: ;} break; - case 12: -#line 192 "perly.y" - { LEAVE_SCOPE((ps[(2) - (3)].val.ival)); - (yyval.opval) = append_list(OP_LINESEQ, - (LISTOP*)(ps[(1) - (3)].val.opval), (LISTOP*)(ps[(3) - (3)].val.opval)); + case 11: +#line 189 "perly.y" + { (yyval.opval) = append_list(OP_LINESEQ, + (LISTOP*)(ps[(1) - (2)].val.opval), (LISTOP*)(ps[(2) - (2)].val.opval)); PL_pad_reset_pending = TRUE; - if ((ps[(1) - (3)].val.opval) && (ps[(3) - (3)].val.opval)) PL_hints |= HINT_BLOCK_SCOPE; ;} + if ((ps[(1) - (2)].val.opval) && (ps[(2) - (2)].val.opval)) + PL_hints |= HINT_BLOCK_SCOPE; + ;} break; - case 13: -#line 201 "perly.y" + case 12: +#line 199 "perly.y" { (yyval.opval) = newSTATEOP(0, PVAL((ps[(1) - (2)].val.p_tkval)), (ps[(2) - (2)].val.opval)); TOKEN_GETMAD((ps[(1) - (2)].val.p_tkval),((LISTOP*)(yyval.opval))->op_first,'L'); ;} break; - case 15: -#line 205 "perly.y" + case 14: +#line 203 "perly.y" { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} break; - case 16: -#line 207 "perly.y" + case 15: +#line 205 "perly.y" { (yyval.opval) = newSTATEOP(0, PVAL((ps[(1) - (2)].val.p_tkval)), (ps[(2) - (2)].val.opval)); ;} break; - case 17: -#line 209 "perly.y" + case 16: +#line 207 "perly.y" { if (PVAL((ps[(1) - (2)].val.p_tkval))) { (yyval.opval) = newSTATEOP(0, PVAL((ps[(1) - (2)].val.p_tkval)), newOP(OP_NULL, 0)); @@ -110,8 +106,8 @@ case 2: ;} break; - case 18: -#line 226 "perly.y" + case 17: +#line 224 "perly.y" { (yyval.opval) = newSTATEOP(0, PVAL((ps[(1) - (3)].val.p_tkval)), (ps[(2) - (3)].val.opval)); PL_parser->expect = XSTATE; @@ -129,66 +125,66 @@ case 2: ;} break; - case 19: -#line 245 "perly.y" + case 18: +#line 243 "perly.y" { (yyval.opval) = Nullop; ;} break; - case 20: -#line 247 "perly.y" + case 19: +#line 245 "perly.y" { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} break; - case 21: -#line 249 "perly.y" + case 20: +#line 247 "perly.y" { (yyval.opval) = newLOGOP(OP_AND, 0, (ps[(3) - (3)].val.opval), (ps[(1) - (3)].val.opval)); TOKEN_GETMAD((ps[(2) - (3)].val.i_tkval),(yyval.opval),'i'); ;} break; - case 22: -#line 253 "perly.y" + case 21: +#line 251 "perly.y" { (yyval.opval) = newLOGOP(OP_OR, 0, (ps[(3) - (3)].val.opval), (ps[(1) - (3)].val.opval)); TOKEN_GETMAD((ps[(2) - (3)].val.i_tkval),(yyval.opval),'i'); ;} break; - case 23: -#line 257 "perly.y" + case 22: +#line 255 "perly.y" { (yyval.opval) = newLOOPOP(OPf_PARENS, 1, scalar((ps[(3) - (3)].val.opval)), (ps[(1) - (3)].val.opval)); TOKEN_GETMAD((ps[(2) - (3)].val.i_tkval),(yyval.opval),'w'); ;} break; - case 24: -#line 261 "perly.y" + case 23: +#line 259 "perly.y" { (yyval.opval) = newLOOPOP(OPf_PARENS, 1, (ps[(3) - (3)].val.opval), (ps[(1) - (3)].val.opval)); TOKEN_GETMAD((ps[(2) - (3)].val.i_tkval),(yyval.opval),'w'); ;} break; - case 25: -#line 265 "perly.y" + case 24: +#line 263 "perly.y" { (yyval.opval) = newFOROP(0, Nullch, (line_t)IVAL((ps[(2) - (3)].val.i_tkval)), Nullop, (ps[(3) - (3)].val.opval), (ps[(1) - (3)].val.opval), Nullop); TOKEN_GETMAD((ps[(2) - (3)].val.i_tkval),((LISTOP*)(yyval.opval))->op_first->op_sibling,'w'); ;} break; - case 26: -#line 273 "perly.y" + case 25: +#line 271 "perly.y" { (yyval.opval) = Nullop; ;} break; - case 27: -#line 275 "perly.y" + case 26: +#line 273 "perly.y" { ((ps[(2) - (2)].val.opval))->op_flags |= OPf_PARENS; (yyval.opval) = scope((ps[(2) - (2)].val.opval)); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'o'); ;} break; - case 28: -#line 279 "perly.y" + case 27: +#line 277 "perly.y" { PL_parser->copline = (line_t)IVAL((ps[(1) - (6)].val.i_tkval)); (yyval.opval) = newCONDOP(0, (ps[(3) - (6)].val.opval), scope((ps[(5) - (6)].val.opval)), (ps[(6) - (6)].val.opval)); PL_hints |= HINT_BLOCK_SCOPE; @@ -198,8 +194,8 @@ case 2: ;} break; - case 29: -#line 290 "perly.y" + case 28: +#line 288 "perly.y" { PL_parser->copline = (line_t)IVAL((ps[(1) - (7)].val.i_tkval)); (yyval.opval) = block_end((ps[(3) - (7)].val.ival), newCONDOP(0, (ps[(4) - (7)].val.opval), scope((ps[(6) - (7)].val.opval)), (ps[(7) - (7)].val.opval))); @@ -209,8 +205,8 @@ case 2: ;} break; - case 30: -#line 298 "perly.y" + case 29: +#line 296 "perly.y" { PL_parser->copline = (line_t)IVAL((ps[(1) - (7)].val.i_tkval)); (yyval.opval) = block_end((ps[(3) - (7)].val.ival), newCONDOP(0, (ps[(4) - (7)].val.opval), scope((ps[(6) - (7)].val.opval)), (ps[(7) - (7)].val.opval))); @@ -220,31 +216,31 @@ case 2: ;} break; - case 31: -#line 309 "perly.y" + case 30: +#line 307 "perly.y" { (yyval.opval) = block_end((ps[(3) - (6)].val.ival), newWHENOP((ps[(4) - (6)].val.opval), scope((ps[(6) - (6)].val.opval)))); ;} break; - case 32: -#line 312 "perly.y" + case 31: +#line 310 "perly.y" { (yyval.opval) = newWHENOP(0, scope((ps[(2) - (2)].val.opval))); ;} break; - case 33: -#line 317 "perly.y" + case 32: +#line 315 "perly.y" { (yyval.opval) = Nullop; ;} break; - case 34: -#line 319 "perly.y" + case 33: +#line 317 "perly.y" { (yyval.opval) = scope((ps[(2) - (2)].val.opval)); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'o'); ;} break; - case 35: -#line 326 "perly.y" + case 34: +#line 324 "perly.y" { OP *innerop; PL_parser->copline = (line_t)(ps[(2) - (9)].val.i_tkval); (yyval.opval) = block_end((ps[(4) - (9)].val.ival), @@ -258,8 +254,8 @@ case 2: ;} break; - case 36: -#line 339 "perly.y" + case 35: +#line 337 "perly.y" { OP *innerop; PL_parser->copline = (line_t)(ps[(2) - (9)].val.i_tkval); (yyval.opval) = block_end((ps[(4) - (9)].val.ival), @@ -273,8 +269,8 @@ case 2: ;} break; - case 37: -#line 351 "perly.y" + case 36: +#line 349 "perly.y" { OP *innerop; (yyval.opval) = block_end((ps[(4) - (10)].val.ival), innerop = newFOROP(0, PVAL((ps[(1) - (10)].val.p_tkval)), (line_t)IVAL((ps[(2) - (10)].val.i_tkval)), @@ -287,8 +283,8 @@ case 2: ;} break; - case 38: -#line 362 "perly.y" + case 37: +#line 360 "perly.y" { OP *innerop; (yyval.opval) = block_end((ps[(5) - (9)].val.ival), innerop = newFOROP(0, PVAL((ps[(1) - (9)].val.p_tkval)), (line_t)IVAL((ps[(2) - (9)].val.i_tkval)), @@ -300,8 +296,8 @@ case 2: ;} break; - case 39: -#line 372 "perly.y" + case 38: +#line 370 "perly.y" { OP *innerop; (yyval.opval) = block_end((ps[(4) - (8)].val.ival), innerop = newFOROP(0, PVAL((ps[(1) - (8)].val.p_tkval)), (line_t)IVAL((ps[(2) - (8)].val.i_tkval)), @@ -313,8 +309,8 @@ case 2: ;} break; - case 40: -#line 384 "perly.y" + case 39: +#line 382 "perly.y" { OP *forop; PL_parser->copline = (line_t)IVAL((ps[(2) - (12)].val.i_tkval)); forop = newSTATEOP(0, PVAL((ps[(1) - (12)].val.p_tkval)), @@ -346,16 +342,16 @@ case 2: (yyval.opval) = block_end((ps[(4) - (12)].val.ival), forop); ;} break; - case 41: -#line 414 "perly.y" + case 40: +#line 412 "perly.y" { (yyval.opval) = newSTATEOP(0, PVAL((ps[(1) - (3)].val.p_tkval)), newWHILEOP(0, 1, (LOOP*)Nullop, NOLINE, Nullop, (ps[(2) - (3)].val.opval), (ps[(3) - (3)].val.opval), 0)); TOKEN_GETMAD((ps[(1) - (3)].val.p_tkval),((LISTOP*)(yyval.opval))->op_first,'L'); ;} break; - case 42: -#line 422 "perly.y" + case 41: +#line 420 "perly.y" { PL_parser->copline = (line_t) (ps[(2) - (8)].val.i_tkval); (yyval.opval) = block_end((ps[(4) - (8)].val.ival), newSTATEOP(0, PVAL((ps[(1) - (8)].val.p_tkval)), @@ -363,47 +359,47 @@ case 2: (PADOFFSET) (ps[(5) - (8)].val.ival)) )); ;} break; - case 43: -#line 431 "perly.y" + case 42: +#line 429 "perly.y" { (yyval.ival) = (PL_min_intro_pending && PL_max_intro_pending >= PL_min_intro_pending); intro_my(); ;} break; - case 44: -#line 437 "perly.y" + case 43: +#line 435 "perly.y" { (yyval.opval) = Nullop; ;} break; - case 46: -#line 443 "perly.y" + case 45: +#line 441 "perly.y" { YYSTYPE tmplval; (void)scan_num("1", &tmplval); (yyval.opval) = tmplval.opval; ;} break; - case 48: -#line 451 "perly.y" + case 47: +#line 449 "perly.y" { (yyval.opval) = invert(scalar((ps[(1) - (1)].val.opval))); ;} break; - case 49: -#line 456 "perly.y" + case 48: +#line 454 "perly.y" { (yyval.opval) = (ps[(1) - (1)].val.opval); intro_my(); ;} break; - case 50: -#line 460 "perly.y" + case 49: +#line 458 "perly.y" { (yyval.opval) = (ps[(1) - (1)].val.opval); intro_my(); ;} break; - case 51: -#line 464 "perly.y" + case 50: +#line 462 "perly.y" { (yyval.opval) = (ps[(1) - (1)].val.opval); intro_my(); ;} break; - case 52: -#line 469 "perly.y" + case 51: +#line 467 "perly.y" { #ifdef MAD YYSTYPE tmplval; @@ -415,6 +411,11 @@ case 2: ;} break; + case 53: +#line 481 "perly.y" + { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} + break; + case 54: #line 483 "perly.y" { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} @@ -436,24 +437,19 @@ case 2: break; case 58: -#line 491 "perly.y" +#line 494 "perly.y" { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} break; case 59: -#line 496 "perly.y" - { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} - break; - - case 60: -#line 500 "perly.y" +#line 498 "perly.y" { (yyval.opval) = newOP(OP_NULL,0); TOKEN_GETMAD((ps[(1) - (1)].val.i_tkval),(yyval.opval),'p'); ;} break; - case 61: -#line 506 "perly.y" + case 60: +#line 504 "perly.y" { SvREFCNT_inc_simple_void(PL_compcv); #ifdef MAD (yyval.opval) = newFORM((ps[(2) - (4)].val.ival), (ps[(3) - (4)].val.opval), (ps[(4) - (4)].val.opval)); @@ -467,18 +463,18 @@ case 2: ;} break; - case 62: -#line 519 "perly.y" + case 61: +#line 517 "perly.y" { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} break; - case 63: -#line 520 "perly.y" + case 62: +#line 518 "perly.y" { (yyval.opval) = Nullop; ;} break; - case 64: -#line 525 "perly.y" + case 63: +#line 523 "perly.y" { SvREFCNT_inc_simple_void(PL_compcv); #ifdef MAD (yyval.opval) = newMYSUB((ps[(2) - (6)].val.ival), (ps[(3) - (6)].val.opval), (ps[(4) - (6)].val.opval), (ps[(5) - (6)].val.opval), (ps[(6) - (6)].val.opval)); @@ -490,8 +486,8 @@ case 2: ;} break; - case 65: -#line 538 "perly.y" + case 64: +#line 536 "perly.y" { SvREFCNT_inc_simple_void(PL_compcv); #ifdef MAD { @@ -513,26 +509,26 @@ case 2: ;} break; - case 66: -#line 560 "perly.y" + case 65: +#line 558 "perly.y" { (yyval.ival) = start_subparse(FALSE, 0); SAVEFREESV(PL_compcv); ;} break; - case 67: -#line 566 "perly.y" + case 66: +#line 564 "perly.y" { (yyval.ival) = start_subparse(FALSE, CVf_ANON); SAVEFREESV(PL_compcv); ;} break; - case 68: -#line 571 "perly.y" + case 67: +#line 569 "perly.y" { (yyval.ival) = start_subparse(TRUE, 0); SAVEFREESV(PL_compcv); ;} break; - case 69: -#line 576 "perly.y" + case 68: +#line 574 "perly.y" { const char *const name = SvPV_nolen_const(((SVOP*)(ps[(1) - (1)].val.opval))->op_sv); if (strEQ(name, "BEGIN") || strEQ(name, "END") || strEQ(name, "INIT") || strEQ(name, "CHECK") @@ -541,25 +537,25 @@ case 2: (yyval.opval) = (ps[(1) - (1)].val.opval); ;} break; - case 70: -#line 586 "perly.y" + case 69: +#line 584 "perly.y" { (yyval.opval) = Nullop; ;} break; - case 72: -#line 592 "perly.y" + case 71: +#line 590 "perly.y" { (yyval.opval) = Nullop; ;} break; - case 73: -#line 594 "perly.y" + case 72: +#line 592 "perly.y" { (yyval.opval) = (ps[(2) - (2)].val.opval); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),':'); ;} break; - case 74: -#line 598 "perly.y" + case 73: +#line 596 "perly.y" { (yyval.opval) = IF_MAD( newOP(OP_NULL, 0), Nullop @@ -568,15 +564,15 @@ case 2: ;} break; - case 75: -#line 608 "perly.y" + case 74: +#line 606 "perly.y" { (yyval.opval) = (ps[(2) - (2)].val.opval); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),':'); ;} break; - case 76: -#line 612 "perly.y" + case 75: +#line 610 "perly.y" { (yyval.opval) = IF_MAD( newOP(OP_NULL, 0), Nullop @@ -585,13 +581,13 @@ case 2: ;} break; - case 77: -#line 621 "perly.y" + case 76: +#line 619 "perly.y" { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} break; - case 78: -#line 622 "perly.y" + case 77: +#line 620 "perly.y" { (yyval.opval) = IF_MAD( newOP(OP_NULL,0), Nullop @@ -601,8 +597,8 @@ case 2: ;} break; - case 79: -#line 632 "perly.y" + case 78: +#line 630 "perly.y" { #ifdef MAD (yyval.opval) = package((ps[(2) - (3)].val.opval)); @@ -615,13 +611,13 @@ case 2: ;} break; - case 80: -#line 645 "perly.y" + case 79: +#line 643 "perly.y" { CvSPECIAL_on(PL_compcv); /* It's a BEGIN {} */ ;} break; - case 81: -#line 647 "perly.y" + case 80: +#line 645 "perly.y" { SvREFCNT_inc_simple_void(PL_compcv); #ifdef MAD (yyval.opval) = utilize(IVAL((ps[(1) - (7)].val.i_tkval)), (ps[(2) - (7)].val.ival), (ps[(4) - (7)].val.opval), (ps[(5) - (7)].val.opval), (ps[(6) - (7)].val.opval)); @@ -637,29 +633,29 @@ case 2: ;} break; - case 82: -#line 664 "perly.y" + case 81: +#line 662 "perly.y" { (yyval.opval) = newLOGOP(OP_AND, 0, (ps[(1) - (3)].val.opval), (ps[(3) - (3)].val.opval)); TOKEN_GETMAD((ps[(2) - (3)].val.i_tkval),(yyval.opval),'o'); ;} break; - case 83: -#line 668 "perly.y" + case 82: +#line 666 "perly.y" { (yyval.opval) = newLOGOP(IVAL((ps[(2) - (3)].val.i_tkval)), 0, (ps[(1) - (3)].val.opval), (ps[(3) - (3)].val.opval)); TOKEN_GETMAD((ps[(2) - (3)].val.i_tkval),(yyval.opval),'o'); ;} break; - case 84: -#line 672 "perly.y" + case 83: +#line 670 "perly.y" { (yyval.opval) = newLOGOP(OP_DOR, 0, (ps[(1) - (3)].val.opval), (ps[(3) - (3)].val.opval)); TOKEN_GETMAD((ps[(2) - (3)].val.i_tkval),(yyval.opval),'o'); ;} break; - case 86: -#line 680 "perly.y" + case 85: +#line 678 "perly.y" { #ifdef MAD OP* op = newNULLLIST(); @@ -671,8 +667,8 @@ case 2: ;} break; - case 87: -#line 690 "perly.y" + case 86: +#line 688 "perly.y" { OP* term = (ps[(3) - (3)].val.opval); DO_MAD( @@ -683,16 +679,16 @@ case 2: ;} break; - case 89: -#line 703 "perly.y" + case 88: +#line 701 "perly.y" { (yyval.opval) = convert(IVAL((ps[(1) - (3)].val.i_tkval)), OPf_STACKED, prepend_elem(OP_LIST, newGVREF(IVAL((ps[(1) - (3)].val.i_tkval)),(ps[(2) - (3)].val.opval)), (ps[(3) - (3)].val.opval)) ); TOKEN_GETMAD((ps[(1) - (3)].val.i_tkval),(yyval.opval),'o'); ;} break; - case 90: -#line 708 "perly.y" + case 89: +#line 706 "perly.y" { (yyval.opval) = convert(IVAL((ps[(1) - (5)].val.i_tkval)), OPf_STACKED, prepend_elem(OP_LIST, newGVREF(IVAL((ps[(1) - (5)].val.i_tkval)),(ps[(3) - (5)].val.opval)), (ps[(4) - (5)].val.opval)) ); TOKEN_GETMAD((ps[(1) - (5)].val.i_tkval),(yyval.opval),'o'); @@ -701,8 +697,8 @@ case 2: ;} break; - case 91: -#line 715 "perly.y" + case 90: +#line 713 "perly.y" { (yyval.opval) = convert(OP_ENTERSUB, OPf_STACKED, append_elem(OP_LIST, prepend_elem(OP_LIST, scalar((ps[(1) - (6)].val.opval)), (ps[(5) - (6)].val.opval)), @@ -713,8 +709,8 @@ case 2: ;} break; - case 92: -#line 724 "perly.y" + case 91: +#line 722 "perly.y" { (yyval.opval) = convert(OP_ENTERSUB, OPf_STACKED, append_elem(OP_LIST, scalar((ps[(1) - (3)].val.opval)), newUNOP(OP_METHOD, 0, (ps[(3) - (3)].val.opval)))); @@ -722,8 +718,8 @@ case 2: ;} break; - case 93: -#line 730 "perly.y" + case 92: +#line 728 "perly.y" { (yyval.opval) = convert(OP_ENTERSUB, OPf_STACKED, append_elem(OP_LIST, prepend_elem(OP_LIST, (ps[(2) - (3)].val.opval), (ps[(3) - (3)].val.opval)), @@ -731,8 +727,8 @@ case 2: ;} break; - case 94: -#line 736 "perly.y" + case 93: +#line 734 "perly.y" { (yyval.opval) = convert(OP_ENTERSUB, OPf_STACKED, append_elem(OP_LIST, prepend_elem(OP_LIST, (ps[(2) - (5)].val.opval), (ps[(4) - (5)].val.opval)), @@ -742,15 +738,15 @@ case 2: ;} break; - case 95: -#line 744 "perly.y" + case 94: +#line 742 "perly.y" { (yyval.opval) = convert(IVAL((ps[(1) - (2)].val.i_tkval)), 0, (ps[(2) - (2)].val.opval)); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'o'); ;} break; - case 96: -#line 748 "perly.y" + case 95: +#line 746 "perly.y" { (yyval.opval) = convert(IVAL((ps[(1) - (4)].val.i_tkval)), 0, (ps[(3) - (4)].val.opval)); TOKEN_GETMAD((ps[(1) - (4)].val.i_tkval),(yyval.opval),'o'); TOKEN_GETMAD((ps[(2) - (4)].val.i_tkval),(yyval.opval),'('); @@ -758,22 +754,22 @@ case 2: ;} break; - case 97: -#line 754 "perly.y" + case 96: +#line 752 "perly.y" { SvREFCNT_inc_simple_void(PL_compcv); (yyval.opval) = newANONATTRSUB((ps[(2) - (3)].val.ival), 0, Nullop, (ps[(3) - (3)].val.opval)); ;} break; - case 98: -#line 757 "perly.y" + case 97: +#line 755 "perly.y" { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, append_elem(OP_LIST, prepend_elem(OP_LIST, (ps[(4) - (5)].val.opval), (ps[(5) - (5)].val.opval)), (ps[(1) - (5)].val.opval))); ;} break; - case 101: -#line 772 "perly.y" + case 100: +#line 770 "perly.y" { (yyval.opval) = newBINOP(OP_GELEM, 0, (ps[(1) - (5)].val.opval), scalar((ps[(3) - (5)].val.opval))); PL_parser->expect = XOPERATOR; TOKEN_GETMAD((ps[(2) - (5)].val.i_tkval),(yyval.opval),'{'); @@ -782,16 +778,16 @@ case 2: ;} break; - case 102: -#line 779 "perly.y" + case 101: +#line 777 "perly.y" { (yyval.opval) = newBINOP(OP_AELEM, 0, oopsAV((ps[(1) - (4)].val.opval)), scalar((ps[(3) - (4)].val.opval))); TOKEN_GETMAD((ps[(2) - (4)].val.i_tkval),(yyval.opval),'['); TOKEN_GETMAD((ps[(4) - (4)].val.i_tkval),(yyval.opval),']'); ;} break; - case 103: -#line 784 "perly.y" + case 102: +#line 782 "perly.y" { (yyval.opval) = newBINOP(OP_AELEM, 0, ref(newAVREF((ps[(1) - (5)].val.opval)),OP_RV2AV), scalar((ps[(4) - (5)].val.opval))); @@ -801,8 +797,8 @@ case 2: ;} break; - case 104: -#line 792 "perly.y" + case 103: +#line 790 "perly.y" { (yyval.opval) = newBINOP(OP_AELEM, 0, ref(newAVREF((ps[(1) - (4)].val.opval)),OP_RV2AV), scalar((ps[(3) - (4)].val.opval))); @@ -811,8 +807,8 @@ case 2: ;} break; - case 105: -#line 799 "perly.y" + case 104: +#line 797 "perly.y" { (yyval.opval) = newBINOP(OP_HELEM, 0, oopsHV((ps[(1) - (5)].val.opval)), jmaybe((ps[(3) - (5)].val.opval))); PL_parser->expect = XOPERATOR; TOKEN_GETMAD((ps[(2) - (5)].val.i_tkval),(yyval.opval),'{'); @@ -821,8 +817,8 @@ case 2: ;} break; - case 106: -#line 806 "perly.y" + case 105: +#line 804 "perly.y" { (yyval.opval) = newBINOP(OP_HELEM, 0, ref(newHVREF((ps[(1) - (6)].val.opval)),OP_RV2HV), jmaybe((ps[(4) - (6)].val.opval))); @@ -834,8 +830,8 @@ case 2: ;} break; - case 107: -#line 816 "perly.y" + case 106: +#line 814 "perly.y" { (yyval.opval) = newBINOP(OP_HELEM, 0, ref(newHVREF((ps[(1) - (5)].val.opval)),OP_RV2HV), jmaybe((ps[(3) - (5)].val.opval))); @@ -846,8 +842,8 @@ case 2: ;} break; - case 108: -#line 825 "perly.y" + case 107: +#line 823 "perly.y" { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, newCVREF(0, scalar((ps[(1) - (4)].val.opval)))); TOKEN_GETMAD((ps[(2) - (4)].val.i_tkval),(yyval.opval),'a'); @@ -856,8 +852,8 @@ case 2: ;} break; - case 109: -#line 832 "perly.y" + case 108: +#line 830 "perly.y" { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, append_elem(OP_LIST, (ps[(4) - (5)].val.opval), newCVREF(0, scalar((ps[(1) - (5)].val.opval))))); @@ -867,8 +863,8 @@ case 2: ;} break; - case 110: -#line 841 "perly.y" + case 109: +#line 839 "perly.y" { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, append_elem(OP_LIST, (ps[(3) - (4)].val.opval), newCVREF(0, scalar((ps[(1) - (4)].val.opval))))); @@ -877,8 +873,8 @@ case 2: ;} break; - case 111: -#line 848 "perly.y" + case 110: +#line 846 "perly.y" { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, newCVREF(0, scalar((ps[(1) - (3)].val.opval)))); TOKEN_GETMAD((ps[(2) - (3)].val.i_tkval),(yyval.opval),'('); @@ -886,8 +882,8 @@ case 2: ;} break; - case 112: -#line 854 "perly.y" + case 111: +#line 852 "perly.y" { (yyval.opval) = newSLICEOP(0, (ps[(5) - (6)].val.opval), (ps[(2) - (6)].val.opval)); TOKEN_GETMAD((ps[(1) - (6)].val.i_tkval),(yyval.opval),'('); TOKEN_GETMAD((ps[(3) - (6)].val.i_tkval),(yyval.opval),')'); @@ -896,8 +892,8 @@ case 2: ;} break; - case 113: -#line 861 "perly.y" + case 112: +#line 859 "perly.y" { (yyval.opval) = newSLICEOP(0, (ps[(4) - (5)].val.opval), Nullop); TOKEN_GETMAD((ps[(1) - (5)].val.i_tkval),(yyval.opval),'('); TOKEN_GETMAD((ps[(2) - (5)].val.i_tkval),(yyval.opval),')'); @@ -906,22 +902,22 @@ case 2: ;} break; - case 114: -#line 871 "perly.y" + case 113: +#line 869 "perly.y" { (yyval.opval) = newASSIGNOP(OPf_STACKED, (ps[(1) - (3)].val.opval), IVAL((ps[(2) - (3)].val.i_tkval)), (ps[(3) - (3)].val.opval)); TOKEN_GETMAD((ps[(2) - (3)].val.i_tkval),(yyval.opval),'o'); ;} break; - case 115: -#line 875 "perly.y" + case 114: +#line 873 "perly.y" { (yyval.opval) = newBINOP(IVAL((ps[(2) - (3)].val.i_tkval)), 0, scalar((ps[(1) - (3)].val.opval)), scalar((ps[(3) - (3)].val.opval))); TOKEN_GETMAD((ps[(2) - (3)].val.i_tkval),(yyval.opval),'o'); ;} break; - case 116: -#line 879 "perly.y" + case 115: +#line 877 "perly.y" { if (IVAL((ps[(2) - (3)].val.i_tkval)) != OP_REPEAT) scalar((ps[(1) - (3)].val.opval)); (yyval.opval) = newBINOP(IVAL((ps[(2) - (3)].val.i_tkval)), 0, (ps[(1) - (3)].val.opval), scalar((ps[(3) - (3)].val.opval))); @@ -929,50 +925,50 @@ case 2: ;} break; + case 116: +#line 883 "perly.y" + { (yyval.opval) = newBINOP(IVAL((ps[(2) - (3)].val.i_tkval)), 0, scalar((ps[(1) - (3)].val.opval)), scalar((ps[(3) - (3)].val.opval))); + TOKEN_GETMAD((ps[(2) - (3)].val.i_tkval),(yyval.opval),'o'); + ;} + break; + case 117: -#line 885 "perly.y" +#line 887 "perly.y" { (yyval.opval) = newBINOP(IVAL((ps[(2) - (3)].val.i_tkval)), 0, scalar((ps[(1) - (3)].val.opval)), scalar((ps[(3) - (3)].val.opval))); TOKEN_GETMAD((ps[(2) - (3)].val.i_tkval),(yyval.opval),'o'); ;} break; case 118: -#line 889 "perly.y" +#line 891 "perly.y" { (yyval.opval) = newBINOP(IVAL((ps[(2) - (3)].val.i_tkval)), 0, scalar((ps[(1) - (3)].val.opval)), scalar((ps[(3) - (3)].val.opval))); TOKEN_GETMAD((ps[(2) - (3)].val.i_tkval),(yyval.opval),'o'); ;} break; case 119: -#line 893 "perly.y" +#line 895 "perly.y" { (yyval.opval) = newBINOP(IVAL((ps[(2) - (3)].val.i_tkval)), 0, scalar((ps[(1) - (3)].val.opval)), scalar((ps[(3) - (3)].val.opval))); TOKEN_GETMAD((ps[(2) - (3)].val.i_tkval),(yyval.opval),'o'); ;} break; case 120: -#line 897 "perly.y" +#line 899 "perly.y" { (yyval.opval) = newBINOP(IVAL((ps[(2) - (3)].val.i_tkval)), 0, scalar((ps[(1) - (3)].val.opval)), scalar((ps[(3) - (3)].val.opval))); TOKEN_GETMAD((ps[(2) - (3)].val.i_tkval),(yyval.opval),'o'); ;} break; case 121: -#line 901 "perly.y" +#line 903 "perly.y" { (yyval.opval) = newBINOP(IVAL((ps[(2) - (3)].val.i_tkval)), 0, scalar((ps[(1) - (3)].val.opval)), scalar((ps[(3) - (3)].val.opval))); TOKEN_GETMAD((ps[(2) - (3)].val.i_tkval),(yyval.opval),'o'); ;} break; case 122: -#line 905 "perly.y" - { (yyval.opval) = newBINOP(IVAL((ps[(2) - (3)].val.i_tkval)), 0, scalar((ps[(1) - (3)].val.opval)), scalar((ps[(3) - (3)].val.opval))); - TOKEN_GETMAD((ps[(2) - (3)].val.i_tkval),(yyval.opval),'o'); - ;} - break; - - case 123: -#line 909 "perly.y" +#line 907 "perly.y" { (yyval.opval) = newRANGE(IVAL((ps[(2) - (3)].val.i_tkval)), scalar((ps[(1) - (3)].val.opval)), scalar((ps[(3) - (3)].val.opval))); DO_MAD({ @@ -986,29 +982,29 @@ case 2: ;} break; - case 124: -#line 921 "perly.y" + case 123: +#line 919 "perly.y" { (yyval.opval) = newLOGOP(OP_AND, 0, (ps[(1) - (3)].val.opval), (ps[(3) - (3)].val.opval)); TOKEN_GETMAD((ps[(2) - (3)].val.i_tkval),(yyval.opval),'o'); ;} break; - case 125: -#line 925 "perly.y" + case 124: +#line 923 "perly.y" { (yyval.opval) = newLOGOP(OP_OR, 0, (ps[(1) - (3)].val.opval), (ps[(3) - (3)].val.opval)); TOKEN_GETMAD((ps[(2) - (3)].val.i_tkval),(yyval.opval),'o'); ;} break; - case 126: -#line 929 "perly.y" + case 125: +#line 927 "perly.y" { (yyval.opval) = newLOGOP(OP_DOR, 0, (ps[(1) - (3)].val.opval), (ps[(3) - (3)].val.opval)); TOKEN_GETMAD((ps[(2) - (3)].val.i_tkval),(yyval.opval),'o'); ;} break; - case 127: -#line 933 "perly.y" + case 126: +#line 931 "perly.y" { (yyval.opval) = bind_match(IVAL((ps[(2) - (3)].val.i_tkval)), (ps[(1) - (3)].val.opval), (ps[(3) - (3)].val.opval)); TOKEN_GETMAD((ps[(2) - (3)].val.i_tkval), ((yyval.opval)->op_type == OP_NOT @@ -1017,15 +1013,15 @@ case 2: ;} break; - case 128: -#line 943 "perly.y" + case 127: +#line 941 "perly.y" { (yyval.opval) = newUNOP(OP_NEGATE, 0, scalar((ps[(2) - (2)].val.opval))); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'o'); ;} break; - case 129: -#line 947 "perly.y" + case 128: +#line 945 "perly.y" { (yyval.opval) = IF_MAD( newUNOP(OP_NULL, 0, (ps[(2) - (2)].val.opval)), (ps[(2) - (2)].val.opval) @@ -1034,70 +1030,70 @@ case 2: ;} break; - case 130: -#line 954 "perly.y" + case 129: +#line 952 "perly.y" { (yyval.opval) = newUNOP(OP_NOT, 0, scalar((ps[(2) - (2)].val.opval))); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'o'); ;} break; - case 131: -#line 958 "perly.y" + case 130: +#line 956 "perly.y" { (yyval.opval) = newUNOP(OP_COMPLEMENT, 0, scalar((ps[(2) - (2)].val.opval))); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'o'); ;} break; - case 132: -#line 962 "perly.y" + case 131: +#line 960 "perly.y" { (yyval.opval) = newUNOP(OP_POSTINC, 0, mod(scalar((ps[(1) - (2)].val.opval)), OP_POSTINC)); TOKEN_GETMAD((ps[(2) - (2)].val.i_tkval),(yyval.opval),'o'); ;} break; - case 133: -#line 967 "perly.y" + case 132: +#line 965 "perly.y" { (yyval.opval) = newUNOP(OP_POSTDEC, 0, mod(scalar((ps[(1) - (2)].val.opval)), OP_POSTDEC)); TOKEN_GETMAD((ps[(2) - (2)].val.i_tkval),(yyval.opval),'o'); ;} break; - case 134: -#line 972 "perly.y" + case 133: +#line 970 "perly.y" { (yyval.opval) = newUNOP(OP_PREINC, 0, mod(scalar((ps[(2) - (2)].val.opval)), OP_PREINC)); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'o'); ;} break; - case 135: -#line 977 "perly.y" + case 134: +#line 975 "perly.y" { (yyval.opval) = newUNOP(OP_PREDEC, 0, mod(scalar((ps[(2) - (2)].val.opval)), OP_PREDEC)); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'o'); ;} break; - case 136: -#line 986 "perly.y" + case 135: +#line 984 "perly.y" { (yyval.opval) = newANONLIST((ps[(2) - (3)].val.opval)); TOKEN_GETMAD((ps[(1) - (3)].val.i_tkval),(yyval.opval),'['); TOKEN_GETMAD((ps[(3) - (3)].val.i_tkval),(yyval.opval),']'); ;} break; - case 137: -#line 991 "perly.y" + case 136: +#line 989 "perly.y" { (yyval.opval) = newANONLIST(Nullop); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'['); TOKEN_GETMAD((ps[(2) - (2)].val.i_tkval),(yyval.opval),']'); ;} break; - case 138: -#line 996 "perly.y" + case 137: +#line 994 "perly.y" { (yyval.opval) = newANONHASH((ps[(2) - (4)].val.opval)); TOKEN_GETMAD((ps[(1) - (4)].val.i_tkval),(yyval.opval),'{'); TOKEN_GETMAD((ps[(3) - (4)].val.i_tkval),(yyval.opval),';'); @@ -1105,8 +1101,8 @@ case 2: ;} break; - case 139: -#line 1002 "perly.y" + case 138: +#line 1000 "perly.y" { (yyval.opval) = newANONHASH(Nullop); TOKEN_GETMAD((ps[(1) - (3)].val.i_tkval),(yyval.opval),'{'); TOKEN_GETMAD((ps[(2) - (3)].val.i_tkval),(yyval.opval),';'); @@ -1114,8 +1110,8 @@ case 2: ;} break; - case 140: -#line 1008 "perly.y" + case 139: +#line 1006 "perly.y" { SvREFCNT_inc_simple_void(PL_compcv); (yyval.opval) = newANONATTRSUB((ps[(2) - (5)].val.ival), (ps[(3) - (5)].val.opval), (ps[(4) - (5)].val.opval), (ps[(5) - (5)].val.opval)); TOKEN_GETMAD((ps[(1) - (5)].val.i_tkval),(yyval.opval),'o'); @@ -1124,22 +1120,22 @@ case 2: ;} break; - case 141: -#line 1019 "perly.y" + case 140: +#line 1017 "perly.y" { (yyval.opval) = dofile((ps[(2) - (2)].val.opval), IVAL((ps[(1) - (2)].val.i_tkval))); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'o'); ;} break; - case 142: -#line 1023 "perly.y" + case 141: +#line 1021 "perly.y" { (yyval.opval) = newUNOP(OP_NULL, OPf_SPECIAL, scope((ps[(2) - (2)].val.opval))); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'D'); ;} break; - case 143: -#line 1027 "perly.y" + case 142: +#line 1025 "perly.y" { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_SPECIAL|OPf_STACKED, prepend_elem(OP_LIST, @@ -1153,8 +1149,8 @@ case 2: ;} break; - case 144: -#line 1039 "perly.y" + case 143: +#line 1037 "perly.y" { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_SPECIAL|OPf_STACKED, append_elem(OP_LIST, @@ -1169,8 +1165,8 @@ case 2: ;} break; - case 145: -#line 1052 "perly.y" + case 144: +#line 1050 "perly.y" { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_SPECIAL|OPf_STACKED, prepend_elem(OP_LIST, scalar(newCVREF(0,scalar((ps[(2) - (4)].val.opval)))), Nullop)); dep(); @@ -1180,8 +1176,8 @@ case 2: ;} break; - case 146: -#line 1060 "perly.y" + case 145: +#line 1058 "perly.y" { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_SPECIAL|OPf_STACKED, prepend_elem(OP_LIST, (ps[(4) - (5)].val.opval), @@ -1192,49 +1188,54 @@ case 2: ;} break; - case 151: -#line 1076 "perly.y" + case 150: +#line 1074 "perly.y" { (yyval.opval) = newCONDOP(0, (ps[(1) - (5)].val.opval), (ps[(3) - (5)].val.opval), (ps[(5) - (5)].val.opval)); TOKEN_GETMAD((ps[(2) - (5)].val.i_tkval),(yyval.opval),'?'); TOKEN_GETMAD((ps[(4) - (5)].val.i_tkval),(yyval.opval),':'); ;} break; - case 152: -#line 1081 "perly.y" + case 151: +#line 1079 "perly.y" { (yyval.opval) = newUNOP(OP_REFGEN, 0, mod((ps[(2) - (2)].val.opval),OP_REFGEN)); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'o'); ;} break; - case 153: -#line 1085 "perly.y" + case 152: +#line 1083 "perly.y" { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} break; - case 154: -#line 1087 "perly.y" + case 153: +#line 1085 "perly.y" { (yyval.opval) = localize((ps[(2) - (2)].val.opval),IVAL((ps[(1) - (2)].val.i_tkval))); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'k'); ;} break; - case 155: -#line 1091 "perly.y" + case 154: +#line 1089 "perly.y" { (yyval.opval) = sawparens(IF_MAD(newUNOP(OP_NULL,0,(ps[(2) - (3)].val.opval)), (ps[(2) - (3)].val.opval))); TOKEN_GETMAD((ps[(1) - (3)].val.i_tkval),(yyval.opval),'('); TOKEN_GETMAD((ps[(3) - (3)].val.i_tkval),(yyval.opval),')'); ;} break; - case 156: -#line 1096 "perly.y" + case 155: +#line 1094 "perly.y" { (yyval.opval) = sawparens(newNULLLIST()); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'('); TOKEN_GETMAD((ps[(2) - (2)].val.i_tkval),(yyval.opval),')'); ;} break; + case 156: +#line 1099 "perly.y" + { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} + break; + case 157: #line 1101 "perly.y" { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} @@ -1252,21 +1253,16 @@ case 2: case 160: #line 1107 "perly.y" - { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} + { (yyval.opval) = newUNOP(OP_AV2ARYLEN, 0, ref((ps[(1) - (1)].val.opval), OP_AV2ARYLEN));;} break; case 161: #line 1109 "perly.y" - { (yyval.opval) = newUNOP(OP_AV2ARYLEN, 0, ref((ps[(1) - (1)].val.opval), OP_AV2ARYLEN));;} + { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} break; case 162: #line 1111 "perly.y" - { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} - break; - - case 163: -#line 1113 "perly.y" { (yyval.opval) = prepend_elem(OP_ASLICE, newOP(OP_PUSHMARK, 0), newLISTOP(OP_ASLICE, 0, @@ -1277,8 +1273,8 @@ case 2: ;} break; - case 164: -#line 1122 "perly.y" + case 163: +#line 1120 "perly.y" { (yyval.opval) = prepend_elem(OP_HSLICE, newOP(OP_PUSHMARK, 0), newLISTOP(OP_HSLICE, 0, @@ -1291,26 +1287,26 @@ case 2: ;} break; - case 165: -#line 1133 "perly.y" + case 164: +#line 1131 "perly.y" { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} break; - case 166: -#line 1135 "perly.y" + case 165: +#line 1133 "perly.y" { (yyval.opval) = newUNOP(OP_ENTERSUB, 0, scalar((ps[(1) - (1)].val.opval))); ;} break; - case 167: -#line 1137 "perly.y" + case 166: +#line 1135 "perly.y" { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, scalar((ps[(1) - (3)].val.opval))); TOKEN_GETMAD((ps[(2) - (3)].val.i_tkval),(yyval.opval),'('); TOKEN_GETMAD((ps[(3) - (3)].val.i_tkval),(yyval.opval),')'); ;} break; - case 168: -#line 1142 "perly.y" + case 167: +#line 1140 "perly.y" { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, append_elem(OP_LIST, (ps[(3) - (4)].val.opval), scalar((ps[(1) - (4)].val.opval)))); @@ -1325,91 +1321,91 @@ case 2: ;} break; - case 169: -#line 1155 "perly.y" + case 168: +#line 1153 "perly.y" { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, append_elem(OP_LIST, (ps[(3) - (3)].val.opval), scalar((ps[(2) - (3)].val.opval)))); TOKEN_GETMAD((ps[(1) - (3)].val.i_tkval),(yyval.opval),'o'); ;} break; - case 170: -#line 1160 "perly.y" + case 169: +#line 1158 "perly.y" { (yyval.opval) = newOP(IVAL((ps[(1) - (1)].val.i_tkval)), OPf_SPECIAL); PL_hints |= HINT_BLOCK_SCOPE; TOKEN_GETMAD((ps[(1) - (1)].val.i_tkval),(yyval.opval),'o'); ;} break; - case 171: -#line 1165 "perly.y" + case 170: +#line 1163 "perly.y" { (yyval.opval) = newLOOPEX(IVAL((ps[(1) - (2)].val.i_tkval)),(ps[(2) - (2)].val.opval)); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'o'); ;} break; - case 172: -#line 1169 "perly.y" + case 171: +#line 1167 "perly.y" { (yyval.opval) = newUNOP(OP_NOT, 0, scalar((ps[(2) - (2)].val.opval))); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'o'); ;} break; - case 173: -#line 1173 "perly.y" + case 172: +#line 1171 "perly.y" { (yyval.opval) = newOP(IVAL((ps[(1) - (1)].val.i_tkval)), 0); TOKEN_GETMAD((ps[(1) - (1)].val.i_tkval),(yyval.opval),'o'); ;} break; - case 174: -#line 1177 "perly.y" + case 173: +#line 1175 "perly.y" { (yyval.opval) = newUNOP(IVAL((ps[(1) - (2)].val.i_tkval)), 0, (ps[(2) - (2)].val.opval)); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'o'); ;} break; - case 175: -#line 1181 "perly.y" + case 174: +#line 1179 "perly.y" { (yyval.opval) = newUNOP(IVAL((ps[(1) - (2)].val.i_tkval)), 0, (ps[(2) - (2)].val.opval)); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'o'); ;} break; - case 176: -#line 1185 "perly.y" + case 175: +#line 1183 "perly.y" { (yyval.opval) = newOP(OP_REQUIRE, (ps[(1) - (1)].val.i_tkval) ? OPf_SPECIAL : 0); TOKEN_GETMAD((ps[(1) - (1)].val.i_tkval),(yyval.opval),'o'); ;} break; - case 177: -#line 1189 "perly.y" + case 176: +#line 1187 "perly.y" { (yyval.opval) = newUNOP(OP_REQUIRE, (ps[(1) - (2)].val.i_tkval) ? OPf_SPECIAL : 0, (ps[(2) - (2)].val.opval)); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'o'); ;} break; - case 178: -#line 1193 "perly.y" + case 177: +#line 1191 "perly.y" { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, scalar((ps[(1) - (1)].val.opval))); ;} break; - case 179: -#line 1195 "perly.y" + case 178: +#line 1193 "perly.y" { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, append_elem(OP_LIST, (ps[(2) - (2)].val.opval), scalar((ps[(1) - (2)].val.opval)))); ;} break; - case 180: -#line 1198 "perly.y" + case 179: +#line 1196 "perly.y" { (yyval.opval) = newOP(IVAL((ps[(1) - (1)].val.i_tkval)), 0); TOKEN_GETMAD((ps[(1) - (1)].val.i_tkval),(yyval.opval),'o'); ;} break; - case 181: -#line 1202 "perly.y" + case 180: +#line 1200 "perly.y" { (yyval.opval) = newOP(IVAL((ps[(1) - (3)].val.i_tkval)), 0); TOKEN_GETMAD((ps[(1) - (3)].val.i_tkval),(yyval.opval),'o'); TOKEN_GETMAD((ps[(2) - (3)].val.i_tkval),(yyval.opval),'('); @@ -1417,14 +1413,14 @@ case 2: ;} break; - case 182: -#line 1208 "perly.y" + case 181: +#line 1206 "perly.y" { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, scalar((ps[(1) - (1)].val.opval))); ;} break; - case 183: -#line 1211 "perly.y" + case 182: +#line 1209 "perly.y" { (yyval.opval) = (IVAL((ps[(1) - (3)].val.i_tkval)) == OP_NOT) ? newUNOP(IVAL((ps[(1) - (3)].val.i_tkval)), 0, newSVOP(OP_CONST, 0, newSViv(0))) : newOP(IVAL((ps[(1) - (3)].val.i_tkval)), OPf_SPECIAL); @@ -1435,8 +1431,8 @@ case 2: ;} break; - case 184: -#line 1220 "perly.y" + case 183: +#line 1218 "perly.y" { (yyval.opval) = newUNOP(IVAL((ps[(1) - (4)].val.i_tkval)), 0, (ps[(3) - (4)].val.opval)); TOKEN_GETMAD((ps[(1) - (4)].val.i_tkval),(yyval.opval),'o'); TOKEN_GETMAD((ps[(2) - (4)].val.i_tkval),(yyval.opval),'('); @@ -1444,16 +1440,16 @@ case 2: ;} break; - case 185: -#line 1226 "perly.y" + case 184: +#line 1224 "perly.y" { (yyval.opval) = pmruntime((ps[(1) - (4)].val.opval), (ps[(3) - (4)].val.opval), 1); TOKEN_GETMAD((ps[(2) - (4)].val.i_tkval),(yyval.opval),'('); TOKEN_GETMAD((ps[(4) - (4)].val.i_tkval),(yyval.opval),')'); ;} break; - case 188: -#line 1236 "perly.y" + case 187: +#line 1234 "perly.y" { (yyval.opval) = my_attrs((ps[(2) - (3)].val.opval),(ps[(3) - (3)].val.opval)); DO_MAD( token_getmad((ps[(1) - (3)].val.i_tkval),(yyval.opval),'d'); @@ -1463,29 +1459,34 @@ case 2: ;} break; - case 189: -#line 1244 "perly.y" + case 188: +#line 1242 "perly.y" { (yyval.opval) = localize((ps[(2) - (2)].val.opval),IVAL((ps[(1) - (2)].val.i_tkval))); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'d'); ;} break; - case 190: -#line 1251 "perly.y" + case 189: +#line 1249 "perly.y" { (yyval.opval) = sawparens((ps[(2) - (3)].val.opval)); TOKEN_GETMAD((ps[(1) - (3)].val.i_tkval),(yyval.opval),'('); TOKEN_GETMAD((ps[(3) - (3)].val.i_tkval),(yyval.opval),')'); ;} break; - case 191: -#line 1256 "perly.y" + case 190: +#line 1254 "perly.y" { (yyval.opval) = sawparens(newNULLLIST()); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'('); TOKEN_GETMAD((ps[(2) - (2)].val.i_tkval),(yyval.opval),')'); ;} break; + case 191: +#line 1259 "perly.y" + { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} + break; + case 192: #line 1261 "perly.y" { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} @@ -1497,32 +1498,27 @@ case 2: break; case 194: -#line 1265 "perly.y" - { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} +#line 1268 "perly.y" + { (yyval.opval) = Nullop; ;} break; case 195: #line 1270 "perly.y" - { (yyval.opval) = Nullop; ;} + { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} break; case 196: -#line 1272 "perly.y" - { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} +#line 1274 "perly.y" + { (yyval.opval) = Nullop; ;} break; case 197: #line 1276 "perly.y" - { (yyval.opval) = Nullop; ;} + { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} break; case 198: #line 1278 "perly.y" - { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} - break; - - case 199: -#line 1280 "perly.y" { #ifdef MAD OP* op = newNULLLIST(); @@ -1535,53 +1531,58 @@ case 2: ;} break; - case 200: -#line 1295 "perly.y" + case 199: +#line 1293 "perly.y" { PL_parser->in_my = 0; (yyval.opval) = my((ps[(1) - (1)].val.opval)); ;} break; - case 201: -#line 1299 "perly.y" + case 200: +#line 1297 "perly.y" { (yyval.opval) = newCVREF(IVAL((ps[(1) - (2)].val.i_tkval)),(ps[(2) - (2)].val.opval)); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'&'); ;} break; - case 202: -#line 1305 "perly.y" + case 201: +#line 1303 "perly.y" { (yyval.opval) = newSVREF((ps[(2) - (2)].val.opval)); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'$'); ;} break; - case 203: -#line 1311 "perly.y" + case 202: +#line 1309 "perly.y" { (yyval.opval) = newAVREF((ps[(2) - (2)].val.opval)); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'@'); ;} break; - case 204: -#line 1317 "perly.y" + case 203: +#line 1315 "perly.y" { (yyval.opval) = newHVREF((ps[(2) - (2)].val.opval)); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'%'); ;} break; - case 205: -#line 1323 "perly.y" + case 204: +#line 1321 "perly.y" { (yyval.opval) = newAVREF((ps[(2) - (2)].val.opval)); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'l'); ;} break; - case 206: -#line 1329 "perly.y" + case 205: +#line 1327 "perly.y" { (yyval.opval) = newGVREF(0,(ps[(2) - (2)].val.opval)); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'*'); ;} break; + case 206: +#line 1334 "perly.y" + { (yyval.opval) = scalar((ps[(1) - (1)].val.opval)); ;} + break; + case 207: #line 1336 "perly.y" { (yyval.opval) = scalar((ps[(1) - (1)].val.opval)); ;} @@ -1589,16 +1590,11 @@ case 2: case 208: #line 1338 "perly.y" - { (yyval.opval) = scalar((ps[(1) - (1)].val.opval)); ;} - break; - - case 209: -#line 1340 "perly.y" { (yyval.opval) = scope((ps[(1) - (1)].val.opval)); ;} break; - case 210: -#line 1343 "perly.y" + case 209: +#line 1341 "perly.y" { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} break; |