diff options
author | Zefram <zefram@fysh.org> | 2010-12-12 11:41:55 +0000 |
---|---|---|
committer | Zefram <zefram@fysh.org> | 2010-12-13 20:54:52 +0000 |
commit | 8e720305f65b4f201f4aef0d72433f29360b876f (patch) | |
tree | 2201d6bc359362feaa2bb8bffa4e70164e65ba9a /perly.act | |
parent | 3e4ddde58e18d81b358926bde131ebf3c037e8bc (diff) | |
download | perl-8e720305f65b4f201f4aef0d72433f29360b876f.tar.gz |
permit labels to be stacked
Liberalise label syntax a little more, by allowing multiple adjacent
labels with no intervening statements, as in "foo: bar: baz:".
Diffstat (limited to 'perly.act')
-rw-r--r-- | perly.act | 803 |
1 files changed, 405 insertions, 398 deletions
@@ -1,12 +1,12 @@ case 2: -#line 143 "perly.y" +#line 142 "perly.y" { PL_parser->expect = XSTATE; ;} break; case 3: -#line 147 "perly.y" +#line 146 "perly.y" { newPROG(block_end((ps[(3) - (4)].val.ival),(ps[(4) - (4)].val.opval))); (yyval.ival) = 0; @@ -14,14 +14,14 @@ case 2: break; case 4: -#line 152 "perly.y" +#line 151 "perly.y" { parser->expect = XTERM; ;} break; case 5: -#line 156 "perly.y" +#line 155 "perly.y" { PL_eval_root = (ps[(3) - (3)].val.opval); (yyval.ival) = 0; @@ -29,14 +29,14 @@ case 2: break; case 6: -#line 161 "perly.y" +#line 160 "perly.y" { parser->expect = XBLOCK; ;} break; case 7: -#line 165 "perly.y" +#line 164 "perly.y" { PL_pad_reset_pending = TRUE; PL_eval_root = (ps[(3) - (3)].val.opval); @@ -47,14 +47,14 @@ case 2: break; case 8: -#line 173 "perly.y" +#line 172 "perly.y" { parser->expect = XSTATE; ;} break; case 9: -#line 177 "perly.y" +#line 176 "perly.y" { PL_pad_reset_pending = TRUE; PL_eval_root = (ps[(3) - (3)].val.opval); @@ -65,14 +65,14 @@ case 2: break; case 10: -#line 185 "perly.y" +#line 184 "perly.y" { parser->expect = XSTATE; ;} break; case 11: -#line 189 "perly.y" +#line 188 "perly.y" { PL_pad_reset_pending = TRUE; PL_eval_root = (ps[(3) - (3)].val.opval); @@ -83,14 +83,14 @@ case 2: break; case 12: -#line 197 "perly.y" +#line 196 "perly.y" { parser->expect = XSTATE; ;} break; case 13: -#line 201 "perly.y" +#line 200 "perly.y" { PL_eval_root = (ps[(3) - (3)].val.opval); (yyval.ival) = 0; @@ -98,7 +98,7 @@ case 2: break; case 14: -#line 209 "perly.y" +#line 208 "perly.y" { if (PL_parser->copline > (line_t)IVAL((ps[(1) - (4)].val.i_tkval))) PL_parser->copline = (line_t)IVAL((ps[(1) - (4)].val.i_tkval)); (yyval.opval) = block_end((ps[(2) - (4)].val.ival), (ps[(3) - (4)].val.opval)); @@ -108,17 +108,17 @@ case 2: break; case 15: -#line 218 "perly.y" +#line 217 "perly.y" { (yyval.ival) = block_start(TRUE); ;} break; case 16: -#line 222 "perly.y" +#line 221 "perly.y" { (yyval.ival) = (I32) Perl_allocmy(aTHX_ STR_WITH_LEN("$_"), 0); ;} break; case 17: -#line 226 "perly.y" +#line 225 "perly.y" { if (PL_parser->copline > (line_t)IVAL((ps[(1) - (4)].val.i_tkval))) PL_parser->copline = (line_t)IVAL((ps[(1) - (4)].val.i_tkval)); (yyval.opval) = block_end((ps[(2) - (4)].val.ival), (ps[(3) - (4)].val.opval)); @@ -128,17 +128,17 @@ case 2: break; case 18: -#line 235 "perly.y" +#line 234 "perly.y" { (yyval.ival) = block_start(FALSE); ;} break; case 19: -#line 240 "perly.y" +#line 239 "perly.y" { (yyval.opval) = (OP*)NULL; ;} break; case 20: -#line 242 "perly.y" +#line 241 "perly.y" { (yyval.opval) = op_append_list(OP_LINESEQ, (ps[(1) - (2)].val.opval), (ps[(2) - (2)].val.opval)); PL_pad_reset_pending = TRUE; if ((ps[(1) - (2)].val.opval) && (ps[(2) - (2)].val.opval)) @@ -147,33 +147,53 @@ case 2: break; case 21: -#line 251 "perly.y" +#line 250 "perly.y" { - if (PVAL((ps[(1) - (2)].val.p_tkval)) || (ps[(2) - (2)].val.opval)) { - (yyval.opval) = newSTATEOP(0, PVAL((ps[(1) - (2)].val.p_tkval)), (ps[(2) - (2)].val.opval)); - TOKEN_GETMAD((ps[(1) - (2)].val.p_tkval), - (ps[(2) - (2)].val.opval) ? cLISTOPx((yyval.opval))->op_first : (yyval.opval), 'L'); + if((ps[(1) - (1)].val.opval)) { + (yyval.opval) = newSTATEOP(0, NULL, (ps[(1) - (1)].val.opval)); } else { - (yyval.opval) = IF_MAD(newOP(OP_NULL, 0), (ps[(2) - (2)].val.opval)); + (yyval.opval) = IF_MAD(newOP(OP_NULL, 0), NULL); } ;} break; case 22: -#line 264 "perly.y" +#line 258 "perly.y" { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} break; case 23: -#line 266 "perly.y" +#line 262 "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), + (ps[(2) - (2)].val.opval) ? cLISTOPx((yyval.opval))->op_first : (yyval.opval), 'L'); + ;} + break; + + case 24: +#line 268 "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), cLISTOPx((yyval.opval))->op_first, 'L'); + ;} + break; + + case 25: +#line 276 "perly.y" + { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} + break; + + case 26: +#line 278 "perly.y" { (yyval.opval) = newOP(OP_NULL,0); TOKEN_GETMAD((ps[(1) - (1)].val.i_tkval),(yyval.opval),'p'); ;} break; - case 24: -#line 271 "perly.y" + case 27: +#line 283 "perly.y" { CV *fmtcv = PL_compcv; SvREFCNT_inc_simple_void(PL_compcv); @@ -193,8 +213,8 @@ case 2: ;} break; - case 25: -#line 289 "perly.y" + case 28: +#line 301 "perly.y" { SvREFCNT_inc_simple_void(PL_compcv); #ifdef MAD @@ -217,8 +237,8 @@ case 2: ;} break; - case 26: -#line 310 "perly.y" + case 29: +#line 322 "perly.y" { /* Unimplemented "my sub foo { }" */ SvREFCNT_inc_simple_void(PL_compcv); @@ -232,8 +252,8 @@ case 2: ;} break; - case 27: -#line 322 "perly.y" + case 30: +#line 334 "perly.y" { #ifdef MAD (yyval.opval) = package((ps[(3) - (4)].val.opval)); @@ -250,13 +270,13 @@ case 2: ;} break; - case 28: -#line 337 "perly.y" + case 31: +#line 349 "perly.y" { CvSPECIAL_on(PL_compcv); /* It's a BEGIN {} */ ;} break; - case 29: -#line 339 "perly.y" + case 32: +#line 351 "perly.y" { SvREFCNT_inc_simple_void(PL_compcv); #ifdef MAD @@ -273,8 +293,8 @@ case 2: ;} break; - case 30: -#line 354 "perly.y" + case 33: +#line 366 "perly.y" { (yyval.opval) = block_end((ps[(3) - (7)].val.ival), newCONDOP(0, (ps[(4) - (7)].val.opval), op_scope((ps[(6) - (7)].val.opval)), (ps[(7) - (7)].val.opval))); @@ -285,8 +305,8 @@ case 2: ;} break; - case 31: -#line 363 "perly.y" + case 34: +#line 375 "perly.y" { (yyval.opval) = block_end((ps[(3) - (7)].val.ival), newCONDOP(0, (ps[(4) - (7)].val.opval), op_scope((ps[(6) - (7)].val.opval)), (ps[(7) - (7)].val.opval))); @@ -297,8 +317,8 @@ case 2: ;} break; - case 32: -#line 372 "perly.y" + case 35: +#line 384 "perly.y" { (yyval.opval) = block_end((ps[(3) - (7)].val.ival), newGIVENOP((ps[(5) - (7)].val.opval), op_scope((ps[(7) - (7)].val.opval)), (PADOFFSET)(ps[(4) - (7)].val.ival))); @@ -306,18 +326,18 @@ case 2: ;} break; - case 33: -#line 378 "perly.y" + case 36: +#line 390 "perly.y" { (yyval.opval) = block_end((ps[(3) - (6)].val.ival), newWHENOP((ps[(4) - (6)].val.opval), op_scope((ps[(6) - (6)].val.opval)))); ;} break; - case 34: -#line 380 "perly.y" + case 37: +#line 392 "perly.y" { (yyval.opval) = newWHENOP(0, op_scope((ps[(2) - (2)].val.opval))); ;} break; - case 35: -#line 382 "perly.y" + case 38: +#line 394 "perly.y" { (yyval.opval) = block_end((ps[(3) - (8)].val.ival), newWHILEOP(0, 1, (LOOP*)(OP*)NULL, @@ -329,8 +349,8 @@ case 2: ;} break; - case 36: -#line 392 "perly.y" + case 39: +#line 404 "perly.y" { (yyval.opval) = block_end((ps[(3) - (8)].val.ival), newWHILEOP(0, 1, (LOOP*)(OP*)NULL, @@ -342,8 +362,8 @@ case 2: ;} break; - case 37: -#line 403 "perly.y" + case 40: +#line 415 "perly.y" { OP *initop = IF_MAD((ps[(4) - (11)].val.opval) ? (ps[(4) - (11)].val.opval) : newOP(OP_NULL, 0), (ps[(4) - (11)].val.opval)); OP *forop = newWHILEOP(0, 1, (LOOP*)(OP*)NULL, @@ -365,8 +385,8 @@ case 2: ;} break; - case 38: -#line 423 "perly.y" + case 41: +#line 435 "perly.y" { (yyval.opval) = block_end((ps[(3) - (9)].val.ival), newFOROP(0, (ps[(4) - (9)].val.opval), (ps[(6) - (9)].val.opval), (ps[(8) - (9)].val.opval), (ps[(9) - (9)].val.opval))); TOKEN_GETMAD((ps[(1) - (9)].val.i_tkval),(yyval.opval),'W'); @@ -377,8 +397,8 @@ case 2: ;} break; - case 39: -#line 432 "perly.y" + case 42: +#line 444 "perly.y" { (yyval.opval) = block_end((ps[(4) - (8)].val.ival), newFOROP(0, op_lvalue((ps[(2) - (8)].val.opval), OP_ENTERLOOP), (ps[(5) - (8)].val.opval), (ps[(7) - (8)].val.opval), (ps[(8) - (8)].val.opval))); @@ -389,8 +409,8 @@ case 2: ;} break; - case 40: -#line 441 "perly.y" + case 43: +#line 453 "perly.y" { (yyval.opval) = block_end((ps[(3) - (7)].val.ival), newFOROP(0, (OP*)NULL, (ps[(4) - (7)].val.opval), (ps[(6) - (7)].val.opval), (ps[(7) - (7)].val.opval))); @@ -401,8 +421,8 @@ case 2: ;} break; - case 41: -#line 450 "perly.y" + case 44: +#line 462 "perly.y" { /* a block is a loop that happens once */ (yyval.opval) = newWHILEOP(0, 1, (LOOP*)(OP*)NULL, @@ -410,8 +430,8 @@ case 2: ;} break; - case 42: -#line 456 "perly.y" + case 45: +#line 468 "perly.y" { int save_3_latefree = (ps[(3) - (5)].val.opval)->op_latefree; (ps[(3) - (5)].val.opval)->op_latefree = 1; @@ -426,8 +446,8 @@ case 2: ;} break; - case 43: -#line 469 "perly.y" + case 46: +#line 481 "perly.y" { /* a block is a loop that happens once */ (yyval.opval) = newWHILEOP(0, 1, (LOOP*)(OP*)NULL, @@ -442,8 +462,8 @@ case 2: ;} break; - case 44: -#line 482 "perly.y" + case 47: +#line 494 "perly.y" { PL_parser->expect = XSTATE; (yyval.opval) = (ps[(1) - (2)].val.opval); @@ -451,8 +471,8 @@ case 2: ;} break; - case 45: -#line 488 "perly.y" + case 48: +#line 500 "perly.y" { PL_parser->expect = XSTATE; (yyval.opval) = IF_MAD(newOP(OP_NULL, 0), (OP*)NULL); @@ -461,64 +481,64 @@ case 2: ;} break; - case 46: -#line 498 "perly.y" + case 49: +#line 510 "perly.y" { (yyval.opval) = (OP*)NULL; ;} break; - case 47: -#line 500 "perly.y" + case 50: +#line 512 "perly.y" { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} break; - case 48: -#line 502 "perly.y" + case 51: +#line 514 "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 49: -#line 506 "perly.y" + case 52: +#line 518 "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 50: -#line 510 "perly.y" + case 53: +#line 522 "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 51: -#line 514 "perly.y" + case 54: +#line 526 "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 52: -#line 518 "perly.y" + case 55: +#line 530 "perly.y" { (yyval.opval) = newFOROP(0, (OP*)NULL, (ps[(3) - (3)].val.opval), (ps[(1) - (3)].val.opval), (OP*)NULL); TOKEN_GETMAD((ps[(2) - (3)].val.i_tkval),(yyval.opval),'w'); PL_parser->copline = (line_t)IVAL((ps[(2) - (3)].val.i_tkval)); ;} break; - case 53: -#line 523 "perly.y" + case 56: +#line 535 "perly.y" { (yyval.opval) = newWHENOP((ps[(3) - (3)].val.opval), op_scope((ps[(1) - (3)].val.opval))); ;} break; - case 54: -#line 528 "perly.y" + case 57: +#line 540 "perly.y" { (yyval.opval) = (OP*)NULL; ;} break; - case 55: -#line 530 "perly.y" + case 58: +#line 542 "perly.y" { ((ps[(2) - (2)].val.opval))->op_flags |= OPf_PARENS; (yyval.opval) = op_scope((ps[(2) - (2)].val.opval)); @@ -526,8 +546,8 @@ case 2: ;} break; - case 56: -#line 536 "perly.y" + case 59: +#line 548 "perly.y" { PL_parser->copline = (line_t)IVAL((ps[(1) - (6)].val.i_tkval)); (yyval.opval) = newCONDOP(0, newSTATEOP(OPf_SPECIAL,NULL,(ps[(3) - (6)].val.opval)), @@ -539,101 +559,88 @@ case 2: ;} break; - case 57: -#line 549 "perly.y" + case 60: +#line 561 "perly.y" { (yyval.opval) = (OP*)NULL; ;} break; - case 58: -#line 551 "perly.y" + case 61: +#line 563 "perly.y" { (yyval.opval) = op_scope((ps[(2) - (2)].val.opval)); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'o'); ;} break; - case 59: -#line 559 "perly.y" + case 62: +#line 571 "perly.y" { (yyval.ival) = (PL_min_intro_pending && PL_max_intro_pending >= PL_min_intro_pending); intro_my(); ;} break; - case 60: -#line 565 "perly.y" + case 63: +#line 577 "perly.y" { (yyval.opval) = (OP*)NULL; ;} break; - case 62: -#line 571 "perly.y" + case 65: +#line 583 "perly.y" { YYSTYPE tmplval; (void)scan_num("1", &tmplval); (yyval.opval) = tmplval.opval; ;} break; - case 64: -#line 579 "perly.y" + case 67: +#line 591 "perly.y" { (yyval.opval) = invert(scalar((ps[(1) - (1)].val.opval))); ;} break; - case 65: -#line 584 "perly.y" + case 68: +#line 596 "perly.y" { (yyval.opval) = (ps[(1) - (1)].val.opval); intro_my(); ;} break; - case 66: -#line 588 "perly.y" + case 69: +#line 600 "perly.y" { (yyval.opval) = (ps[(1) - (1)].val.opval); intro_my(); ;} break; - case 67: -#line 592 "perly.y" + case 70: +#line 604 "perly.y" { (yyval.opval) = (ps[(1) - (1)].val.opval); intro_my(); ;} break; - case 68: -#line 597 "perly.y" - { -#ifdef MAD - YYSTYPE tmplval; - tmplval.pval = NULL; - (yyval.p_tkval) = newTOKEN(OP_NULL, tmplval, 0); -#else - (yyval.p_tkval) = NULL; -#endif - ;} - break; - - case 70: -#line 609 "perly.y" + case 71: +#line 607 "perly.y" { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} break; - case 71: -#line 610 "perly.y" + case 72: +#line 608 "perly.y" { (yyval.opval) = (OP*)NULL; ;} break; - case 72: -#line 614 "perly.y" + case 73: +#line 612 "perly.y" { (yyval.ival) = start_subparse(FALSE, 0); SAVEFREESV(PL_compcv); ;} break; - case 73: -#line 620 "perly.y" + case 74: +#line 618 "perly.y" { (yyval.ival) = start_subparse(FALSE, CVf_ANON); SAVEFREESV(PL_compcv); ;} break; - case 74: -#line 625 "perly.y" + case 75: +#line 623 "perly.y" { (yyval.ival) = start_subparse(TRUE, 0); SAVEFREESV(PL_compcv); ;} break; - case 75: -#line 630 "perly.y" + case 76: +#line 628 "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") @@ -642,25 +649,25 @@ case 2: (yyval.opval) = (ps[(1) - (1)].val.opval); ;} break; - case 76: -#line 640 "perly.y" + case 77: +#line 638 "perly.y" { (yyval.opval) = (OP*)NULL; ;} break; - case 78: -#line 646 "perly.y" + case 79: +#line 644 "perly.y" { (yyval.opval) = (OP*)NULL; ;} break; - case 79: -#line 648 "perly.y" + case 80: +#line 646 "perly.y" { (yyval.opval) = (ps[(2) - (2)].val.opval); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),':'); ;} break; - case 80: -#line 652 "perly.y" + case 81: +#line 650 "perly.y" { (yyval.opval) = IF_MAD( newOP(OP_NULL, 0), (OP*)NULL @@ -669,15 +676,15 @@ case 2: ;} break; - case 81: -#line 662 "perly.y" + case 82: +#line 660 "perly.y" { (yyval.opval) = (ps[(2) - (2)].val.opval); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),':'); ;} break; - case 82: -#line 666 "perly.y" + case 83: +#line 664 "perly.y" { (yyval.opval) = IF_MAD( newOP(OP_NULL, 0), (OP*)NULL @@ -686,13 +693,13 @@ case 2: ;} break; - case 83: -#line 675 "perly.y" + case 84: +#line 673 "perly.y" { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} break; - case 84: -#line 676 "perly.y" + case 85: +#line 674 "perly.y" { (yyval.opval) = IF_MAD( newOP(OP_NULL,0), (OP*)NULL @@ -702,29 +709,29 @@ case 2: ;} break; - case 85: -#line 687 "perly.y" + case 86: +#line 685 "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 86: -#line 691 "perly.y" + case 87: +#line 689 "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 87: -#line 695 "perly.y" + case 88: +#line 693 "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 89: -#line 703 "perly.y" + case 90: +#line 701 "perly.y" { #ifdef MAD OP* op = newNULLLIST(); @@ -736,8 +743,8 @@ case 2: ;} break; - case 90: -#line 713 "perly.y" + case 91: +#line 711 "perly.y" { OP* term = (ps[(3) - (3)].val.opval); DO_MAD( @@ -748,16 +755,16 @@ case 2: ;} break; - case 92: -#line 726 "perly.y" + case 93: +#line 724 "perly.y" { (yyval.opval) = convert(IVAL((ps[(1) - (3)].val.i_tkval)), OPf_STACKED, op_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 93: -#line 731 "perly.y" + case 94: +#line 729 "perly.y" { (yyval.opval) = convert(IVAL((ps[(1) - (5)].val.i_tkval)), OPf_STACKED, op_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'); @@ -766,8 +773,8 @@ case 2: ;} break; - case 94: -#line 738 "perly.y" + case 95: +#line 736 "perly.y" { (yyval.opval) = convert(OP_ENTERSUB, OPf_STACKED, op_append_elem(OP_LIST, op_prepend_elem(OP_LIST, scalar((ps[(1) - (6)].val.opval)), (ps[(5) - (6)].val.opval)), @@ -778,8 +785,8 @@ case 2: ;} break; - case 95: -#line 747 "perly.y" + case 96: +#line 745 "perly.y" { (yyval.opval) = convert(OP_ENTERSUB, OPf_STACKED, op_append_elem(OP_LIST, scalar((ps[(1) - (3)].val.opval)), newUNOP(OP_METHOD, 0, (ps[(3) - (3)].val.opval)))); @@ -787,8 +794,8 @@ case 2: ;} break; - case 96: -#line 753 "perly.y" + case 97: +#line 751 "perly.y" { (yyval.opval) = convert(OP_ENTERSUB, OPf_STACKED, op_append_elem(OP_LIST, op_prepend_elem(OP_LIST, (ps[(2) - (3)].val.opval), (ps[(3) - (3)].val.opval)), @@ -796,8 +803,8 @@ case 2: ;} break; - case 97: -#line 759 "perly.y" + case 98: +#line 757 "perly.y" { (yyval.opval) = convert(OP_ENTERSUB, OPf_STACKED, op_append_elem(OP_LIST, op_prepend_elem(OP_LIST, (ps[(2) - (5)].val.opval), (ps[(4) - (5)].val.opval)), @@ -807,15 +814,15 @@ case 2: ;} break; - case 98: -#line 767 "perly.y" + case 99: +#line 765 "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 99: -#line 771 "perly.y" + case 100: +#line 769 "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),'('); @@ -823,22 +830,22 @@ case 2: ;} break; - case 100: -#line 777 "perly.y" + case 101: +#line 775 "perly.y" { SvREFCNT_inc_simple_void(PL_compcv); (yyval.opval) = newANONATTRSUB((ps[(2) - (3)].val.ival), 0, (OP*)NULL, (ps[(3) - (3)].val.opval)); ;} break; - case 101: -#line 780 "perly.y" + case 102: +#line 778 "perly.y" { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, op_append_elem(OP_LIST, op_prepend_elem(OP_LIST, (ps[(4) - (5)].val.opval), (ps[(5) - (5)].val.opval)), (ps[(1) - (5)].val.opval))); ;} break; - case 104: -#line 795 "perly.y" + case 105: +#line 793 "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),'{'); @@ -847,16 +854,16 @@ case 2: ;} break; - case 105: -#line 802 "perly.y" + case 106: +#line 800 "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 106: -#line 807 "perly.y" + case 107: +#line 805 "perly.y" { (yyval.opval) = newBINOP(OP_AELEM, 0, ref(newAVREF((ps[(1) - (5)].val.opval)),OP_RV2AV), scalar((ps[(4) - (5)].val.opval))); @@ -866,8 +873,8 @@ case 2: ;} break; - case 107: -#line 815 "perly.y" + case 108: +#line 813 "perly.y" { (yyval.opval) = newBINOP(OP_AELEM, 0, ref(newAVREF((ps[(1) - (4)].val.opval)),OP_RV2AV), scalar((ps[(3) - (4)].val.opval))); @@ -876,8 +883,8 @@ case 2: ;} break; - case 108: -#line 822 "perly.y" + case 109: +#line 820 "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),'{'); @@ -886,8 +893,8 @@ case 2: ;} break; - case 109: -#line 829 "perly.y" + case 110: +#line 827 "perly.y" { (yyval.opval) = newBINOP(OP_HELEM, 0, ref(newHVREF((ps[(1) - (6)].val.opval)),OP_RV2HV), jmaybe((ps[(4) - (6)].val.opval))); @@ -899,8 +906,8 @@ case 2: ;} break; - case 110: -#line 839 "perly.y" + case 111: +#line 837 "perly.y" { (yyval.opval) = newBINOP(OP_HELEM, 0, ref(newHVREF((ps[(1) - (5)].val.opval)),OP_RV2HV), jmaybe((ps[(3) - (5)].val.opval))); @@ -911,8 +918,8 @@ case 2: ;} break; - case 111: -#line 848 "perly.y" + case 112: +#line 846 "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'); @@ -921,8 +928,8 @@ case 2: ;} break; - case 112: -#line 855 "perly.y" + case 113: +#line 853 "perly.y" { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, op_append_elem(OP_LIST, (ps[(4) - (5)].val.opval), newCVREF(0, scalar((ps[(1) - (5)].val.opval))))); @@ -932,8 +939,8 @@ case 2: ;} break; - case 113: -#line 864 "perly.y" + case 114: +#line 862 "perly.y" { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, op_append_elem(OP_LIST, (ps[(3) - (4)].val.opval), newCVREF(0, scalar((ps[(1) - (4)].val.opval))))); @@ -942,8 +949,8 @@ case 2: ;} break; - case 114: -#line 871 "perly.y" + case 115: +#line 869 "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),'('); @@ -951,8 +958,8 @@ case 2: ;} break; - case 115: -#line 877 "perly.y" + case 116: +#line 875 "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),')'); @@ -961,16 +968,16 @@ case 2: ;} break; - case 116: -#line 884 "perly.y" + case 117: +#line 882 "perly.y" { (yyval.opval) = newSLICEOP(0, (ps[(3) - (4)].val.opval), (ps[(1) - (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 117: -#line 889 "perly.y" + case 118: +#line 887 "perly.y" { (yyval.opval) = newSLICEOP(0, (ps[(4) - (5)].val.opval), (OP*)NULL); TOKEN_GETMAD((ps[(1) - (5)].val.i_tkval),(yyval.opval),'('); TOKEN_GETMAD((ps[(2) - (5)].val.i_tkval),(yyval.opval),')'); @@ -979,22 +986,22 @@ case 2: ;} break; - case 118: -#line 899 "perly.y" + case 119: +#line 897 "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 119: -#line 903 "perly.y" + case 120: +#line 901 "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 907 "perly.y" + case 121: +#line 905 "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))); @@ -1002,50 +1009,50 @@ case 2: ;} break; - case 121: -#line 913 "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 917 "perly.y" +#line 911 "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 921 "perly.y" +#line 915 "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 124: -#line 925 "perly.y" +#line 919 "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 125: -#line 929 "perly.y" +#line 923 "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 126: -#line 933 "perly.y" +#line 927 "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 127: -#line 937 "perly.y" +#line 931 "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 128: +#line 935 "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({ @@ -1059,29 +1066,29 @@ case 2: ;} break; - case 128: -#line 949 "perly.y" + case 129: +#line 947 "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 129: -#line 953 "perly.y" + case 130: +#line 951 "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 130: -#line 957 "perly.y" + case 131: +#line 955 "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 131: -#line 961 "perly.y" + case 132: +#line 959 "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 @@ -1090,15 +1097,15 @@ case 2: ;} break; - case 132: -#line 971 "perly.y" + case 133: +#line 969 "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 133: -#line 975 "perly.y" + case 134: +#line 973 "perly.y" { (yyval.opval) = IF_MAD( newUNOP(OP_NULL, 0, (ps[(2) - (2)].val.opval)), (ps[(2) - (2)].val.opval) @@ -1107,70 +1114,70 @@ case 2: ;} break; - case 134: -#line 982 "perly.y" + case 135: +#line 980 "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 135: -#line 986 "perly.y" + case 136: +#line 984 "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 136: -#line 990 "perly.y" + case 137: +#line 988 "perly.y" { (yyval.opval) = newUNOP(OP_POSTINC, 0, op_lvalue(scalar((ps[(1) - (2)].val.opval)), OP_POSTINC)); TOKEN_GETMAD((ps[(2) - (2)].val.i_tkval),(yyval.opval),'o'); ;} break; - case 137: -#line 995 "perly.y" + case 138: +#line 993 "perly.y" { (yyval.opval) = newUNOP(OP_POSTDEC, 0, op_lvalue(scalar((ps[(1) - (2)].val.opval)), OP_POSTDEC)); TOKEN_GETMAD((ps[(2) - (2)].val.i_tkval),(yyval.opval),'o'); ;} break; - case 138: -#line 1000 "perly.y" + case 139: +#line 998 "perly.y" { (yyval.opval) = newUNOP(OP_PREINC, 0, op_lvalue(scalar((ps[(2) - (2)].val.opval)), OP_PREINC)); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'o'); ;} break; - case 139: -#line 1005 "perly.y" + case 140: +#line 1003 "perly.y" { (yyval.opval) = newUNOP(OP_PREDEC, 0, op_lvalue(scalar((ps[(2) - (2)].val.opval)), OP_PREDEC)); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'o'); ;} break; - case 140: -#line 1014 "perly.y" + case 141: +#line 1012 "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 141: -#line 1019 "perly.y" + case 142: +#line 1017 "perly.y" { (yyval.opval) = newANONLIST((OP*)NULL); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'['); TOKEN_GETMAD((ps[(2) - (2)].val.i_tkval),(yyval.opval),']'); ;} break; - case 142: -#line 1024 "perly.y" + case 143: +#line 1022 "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),';'); @@ -1178,8 +1185,8 @@ case 2: ;} break; - case 143: -#line 1030 "perly.y" + case 144: +#line 1028 "perly.y" { (yyval.opval) = newANONHASH((OP*)NULL); TOKEN_GETMAD((ps[(1) - (3)].val.i_tkval),(yyval.opval),'{'); TOKEN_GETMAD((ps[(2) - (3)].val.i_tkval),(yyval.opval),';'); @@ -1187,8 +1194,8 @@ case 2: ;} break; - case 144: -#line 1036 "perly.y" + case 145: +#line 1034 "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'); @@ -1197,22 +1204,22 @@ case 2: ;} break; - case 145: -#line 1047 "perly.y" + case 146: +#line 1045 "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 146: -#line 1051 "perly.y" + case 147: +#line 1049 "perly.y" { (yyval.opval) = newUNOP(OP_NULL, OPf_SPECIAL, op_scope((ps[(2) - (2)].val.opval))); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'D'); ;} break; - case 147: -#line 1055 "perly.y" + case 148: +#line 1053 "perly.y" { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_SPECIAL|OPf_STACKED, op_prepend_elem(OP_LIST, @@ -1226,8 +1233,8 @@ case 2: ;} break; - case 148: -#line 1067 "perly.y" + case 149: +#line 1065 "perly.y" { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_SPECIAL|OPf_STACKED, op_append_elem(OP_LIST, @@ -1242,8 +1249,8 @@ case 2: ;} break; - case 149: -#line 1080 "perly.y" + case 150: +#line 1078 "perly.y" { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_SPECIAL|OPf_STACKED, op_prepend_elem(OP_LIST, scalar(newCVREF(0,scalar((ps[(2) - (4)].val.opval)))), (OP*)NULL)); dep(); @@ -1253,8 +1260,8 @@ case 2: ;} break; - case 150: -#line 1088 "perly.y" + case 151: +#line 1086 "perly.y" { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_SPECIAL|OPf_STACKED, op_prepend_elem(OP_LIST, (ps[(4) - (5)].val.opval), @@ -1265,86 +1272,86 @@ case 2: ;} break; - case 155: -#line 1104 "perly.y" + case 156: +#line 1102 "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 156: -#line 1109 "perly.y" + case 157: +#line 1107 "perly.y" { (yyval.opval) = newUNOP(OP_REFGEN, 0, op_lvalue((ps[(2) - (2)].val.opval),OP_REFGEN)); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'o'); ;} break; - case 157: -#line 1113 "perly.y" + case 158: +#line 1111 "perly.y" { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} break; - case 158: -#line 1115 "perly.y" + case 159: +#line 1113 "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 159: -#line 1119 "perly.y" + case 160: +#line 1117 "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 160: -#line 1124 "perly.y" + case 161: +#line 1122 "perly.y" { (yyval.opval) = IF_MAD(newUNOP(OP_NULL,0,(ps[(1) - (1)].val.opval)), (ps[(1) - (1)].val.opval)); ;} break; - case 161: -#line 1126 "perly.y" + case 162: +#line 1124 "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 162: -#line 1131 "perly.y" - { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} - break; - case 163: -#line 1133 "perly.y" +#line 1129 "perly.y" { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} break; case 164: -#line 1135 "perly.y" +#line 1131 "perly.y" { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} break; case 165: -#line 1137 "perly.y" +#line 1133 "perly.y" { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} break; case 166: -#line 1139 "perly.y" - { (yyval.opval) = newUNOP(OP_AV2ARYLEN, 0, ref((ps[(1) - (1)].val.opval), OP_AV2ARYLEN));;} +#line 1135 "perly.y" + { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} break; case 167: -#line 1141 "perly.y" - { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} +#line 1137 "perly.y" + { (yyval.opval) = newUNOP(OP_AV2ARYLEN, 0, ref((ps[(1) - (1)].val.opval), OP_AV2ARYLEN));;} break; case 168: -#line 1143 "perly.y" +#line 1139 "perly.y" + { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} + break; + + case 169: +#line 1141 "perly.y" { (yyval.opval) = op_prepend_elem(OP_ASLICE, newOP(OP_PUSHMARK, 0), newLISTOP(OP_ASLICE, 0, @@ -1355,8 +1362,8 @@ case 2: ;} break; - case 169: -#line 1152 "perly.y" + case 170: +#line 1150 "perly.y" { (yyval.opval) = op_prepend_elem(OP_HSLICE, newOP(OP_PUSHMARK, 0), newLISTOP(OP_HSLICE, 0, @@ -1369,26 +1376,26 @@ case 2: ;} break; - case 170: -#line 1163 "perly.y" + case 171: +#line 1161 "perly.y" { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} break; - case 171: -#line 1165 "perly.y" + case 172: +#line 1163 "perly.y" { (yyval.opval) = newUNOP(OP_ENTERSUB, 0, scalar((ps[(1) - (1)].val.opval))); ;} break; - case 172: -#line 1167 "perly.y" + case 173: +#line 1165 "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 173: -#line 1172 "perly.y" + case 174: +#line 1170 "perly.y" { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, op_append_elem(OP_LIST, (ps[(3) - (4)].val.opval), scalar((ps[(1) - (4)].val.opval)))); @@ -1403,91 +1410,91 @@ case 2: ;} break; - case 174: -#line 1185 "perly.y" + case 175: +#line 1183 "perly.y" { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, op_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 175: -#line 1190 "perly.y" + case 176: +#line 1188 "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 176: -#line 1195 "perly.y" + case 177: +#line 1193 "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 177: -#line 1199 "perly.y" + case 178: +#line 1197 "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 178: -#line 1203 "perly.y" + case 179: +#line 1201 "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 179: -#line 1207 "perly.y" + case 180: +#line 1205 "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 180: -#line 1211 "perly.y" + case 181: +#line 1209 "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 181: -#line 1215 "perly.y" + case 182: +#line 1213 "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 182: -#line 1219 "perly.y" + case 183: +#line 1217 "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 183: -#line 1223 "perly.y" + case 184: +#line 1221 "perly.y" { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, scalar((ps[(1) - (1)].val.opval))); ;} break; - case 184: -#line 1225 "perly.y" + case 185: +#line 1223 "perly.y" { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, op_append_elem(OP_LIST, (ps[(2) - (2)].val.opval), scalar((ps[(1) - (2)].val.opval)))); ;} break; - case 185: -#line 1228 "perly.y" + case 186: +#line 1226 "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 186: -#line 1232 "perly.y" + case 187: +#line 1230 "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),'('); @@ -1495,14 +1502,14 @@ case 2: ;} break; - case 187: -#line 1238 "perly.y" + case 188: +#line 1236 "perly.y" { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, scalar((ps[(1) - (1)].val.opval))); ;} break; - case 188: -#line 1241 "perly.y" + case 189: +#line 1239 "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); @@ -1513,8 +1520,8 @@ case 2: ;} break; - case 189: -#line 1250 "perly.y" + case 190: +#line 1248 "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),'('); @@ -1522,16 +1529,16 @@ case 2: ;} break; - case 190: -#line 1256 "perly.y" + case 191: +#line 1254 "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 193: -#line 1263 "perly.y" + case 194: +#line 1261 "perly.y" { (yyval.opval) = newLISTOP(OP_DIE, 0, newOP(OP_PUSHMARK, 0), newSVOP(OP_CONST, 0, newSVpvs("Unimplemented"))); @@ -1539,8 +1546,8 @@ case 2: ;} break; - case 195: -#line 1273 "perly.y" + case 196: +#line 1271 "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'); @@ -1550,143 +1557,143 @@ case 2: ;} break; - case 196: -#line 1281 "perly.y" + case 197: +#line 1279 "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 197: -#line 1288 "perly.y" + case 198: +#line 1286 "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 198: -#line 1293 "perly.y" + case 199: +#line 1291 "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 199: -#line 1298 "perly.y" - { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} - break; - case 200: -#line 1300 "perly.y" +#line 1296 "perly.y" { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} break; case 201: -#line 1302 "perly.y" +#line 1298 "perly.y" { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} break; case 202: -#line 1307 "perly.y" - { (yyval.opval) = (OP*)NULL; ;} +#line 1300 "perly.y" + { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} break; case 203: -#line 1309 "perly.y" - { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} +#line 1305 "perly.y" + { (yyval.opval) = (OP*)NULL; ;} break; case 204: -#line 1313 "perly.y" - { (yyval.opval) = (OP*)NULL; ;} +#line 1307 "perly.y" + { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} break; case 205: -#line 1315 "perly.y" - { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} +#line 1311 "perly.y" + { (yyval.opval) = (OP*)NULL; ;} break; case 206: -#line 1319 "perly.y" - { (yyval.i_tkval) = (ps[(1) - (1)].val.i_tkval); ;} +#line 1313 "perly.y" + { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} break; case 207: -#line 1321 "perly.y" - { munge_qwlist_to_paren_list((ps[(1) - (1)].val.opval)); ;} +#line 1317 "perly.y" + { (yyval.i_tkval) = (ps[(1) - (1)].val.i_tkval); ;} break; case 208: -#line 1323 "perly.y" - { (yyval.i_tkval) = (ps[(3) - (3)].val.i_tkval); ;} +#line 1319 "perly.y" + { munge_qwlist_to_paren_list((ps[(1) - (1)].val.opval)); ;} break; case 209: -#line 1329 "perly.y" - { PL_parser->in_my = 0; (yyval.opval) = my((ps[(1) - (1)].val.opval)); ;} +#line 1321 "perly.y" + { (yyval.i_tkval) = (ps[(3) - (3)].val.i_tkval); ;} break; case 210: -#line 1333 "perly.y" +#line 1327 "perly.y" + { PL_parser->in_my = 0; (yyval.opval) = my((ps[(1) - (1)].val.opval)); ;} + break; + + case 211: +#line 1331 "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 211: -#line 1339 "perly.y" + case 212: +#line 1337 "perly.y" { (yyval.opval) = newSVREF((ps[(2) - (2)].val.opval)); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'$'); ;} break; - case 212: -#line 1345 "perly.y" + case 213: +#line 1343 "perly.y" { (yyval.opval) = newAVREF((ps[(2) - (2)].val.opval)); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'@'); ;} break; - case 213: -#line 1351 "perly.y" + case 214: +#line 1349 "perly.y" { (yyval.opval) = newHVREF((ps[(2) - (2)].val.opval)); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'%'); ;} break; - case 214: -#line 1357 "perly.y" + case 215: +#line 1355 "perly.y" { (yyval.opval) = newAVREF((ps[(2) - (2)].val.opval)); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'l'); ;} break; - case 215: -#line 1363 "perly.y" + case 216: +#line 1361 "perly.y" { (yyval.opval) = newGVREF(0,(ps[(2) - (2)].val.opval)); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'*'); ;} break; - case 216: -#line 1370 "perly.y" + case 217: +#line 1368 "perly.y" { (yyval.opval) = scalar((ps[(1) - (1)].val.opval)); ;} break; - case 217: -#line 1372 "perly.y" + case 218: +#line 1370 "perly.y" { (yyval.opval) = scalar((ps[(1) - (1)].val.opval)); ;} break; - case 218: -#line 1374 "perly.y" + case 219: +#line 1372 "perly.y" { (yyval.opval) = op_scope((ps[(1) - (1)].val.opval)); ;} break; - case 219: -#line 1377 "perly.y" + case 220: +#line 1375 "perly.y" { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} break; |