From bfa863c83bfd01d72a748decaaf2676b800c60ff Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 29 Sep 2008 17:19:07 +0000 Subject: import perl 5.10.0 from CPAN --- gnu/usr.bin/perl/perly.act | 1605 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 1605 insertions(+) create mode 100644 gnu/usr.bin/perl/perly.act (limited to 'gnu/usr.bin/perl/perly.act') diff --git a/gnu/usr.bin/perl/perly.act b/gnu/usr.bin/perl/perly.act new file mode 100644 index 00000000000..61c8f5b44a2 --- /dev/null +++ b/gnu/usr.bin/perl/perly.act @@ -0,0 +1,1605 @@ +case 2: +#line 137 "perly.y" + { (yyval.ival) = (ps[(1) - (2)].val.ival); newPROG(block_end((ps[(1) - (2)].val.ival),(ps[(2) - (2)].val.opval))); ;} + break; + + case 3: +#line 142 "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)); + TOKEN_GETMAD((ps[(1) - (4)].val.i_tkval),(yyval.opval),'{'); + TOKEN_GETMAD((ps[(4) - (4)].val.i_tkval),(yyval.opval),'}'); + ;} + break; + + case 4: +#line 151 "perly.y" + { (yyval.ival) = block_start(TRUE); ;} + break; + + case 5: +#line 155 "perly.y" + { (yyval.ival) = (I32) allocmy("$_"); ;} + break; + + case 6: +#line 159 "perly.y" + { + PL_parser->expect = XSTATE; (yyval.ival) = block_start(TRUE); + ;} + break; + + case 7: +#line 166 "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)); + TOKEN_GETMAD((ps[(1) - (4)].val.i_tkval),(yyval.opval),'{'); + TOKEN_GETMAD((ps[(4) - (4)].val.i_tkval),(yyval.opval),'}'); + ;} + break; + + case 8: +#line 175 "perly.y" + { (yyval.ival) = block_start(FALSE); ;} + break; + + case 9: +#line 180 "perly.y" + { (yyval.opval) = Nullop; ;} + break; + + case 10: +#line 182 "perly.y" + { + (yyval.opval) = IF_MAD( + append_list(OP_LINESEQ, + (LISTOP*)(ps[(1) - (2)].val.opval), (LISTOP*)(ps[(2) - (2)].val.opval)), + (ps[(1) - (2)].val.opval)); + ;} + break; + + 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) - (2)].val.opval) && (ps[(2) - (2)].val.opval)) + PL_hints |= HINT_BLOCK_SCOPE; + ;} + break; + + 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 14: +#line 203 "perly.y" + { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} + break; + + case 15: +#line 205 "perly.y" + { (yyval.opval) = newSTATEOP(0, PVAL((ps[(1) - (2)].val.p_tkval)), (ps[(2) - (2)].val.opval)); ;} + break; + + 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)); + TOKEN_GETMAD((ps[(1) - (2)].val.p_tkval),(yyval.opval),'L'); + TOKEN_GETMAD((ps[(2) - (2)].val.i_tkval),((LISTOP*)(yyval.opval))->op_first,';'); + } + else { + (yyval.opval) = IF_MAD( + newOP(OP_NULL, 0), + Nullop); + PL_parser->copline = NOLINE; + TOKEN_FREE((ps[(1) - (2)].val.p_tkval)); + TOKEN_GETMAD((ps[(2) - (2)].val.i_tkval),(yyval.opval),';'); + } + PL_parser->expect = XSTATE; + ;} + break; + + 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; + DO_MAD({ + /* sideff might already have a nexstate */ + OP* op = ((LISTOP*)(yyval.opval))->op_first; + if (op) { + while (op->op_sibling && + op->op_sibling->op_type == OP_NEXTSTATE) + op = op->op_sibling; + token_getmad((ps[(1) - (3)].val.p_tkval),op,'L'); + token_getmad((ps[(3) - (3)].val.i_tkval),op,';'); + } + }) + ;} + break; + + case 18: +#line 243 "perly.y" + { (yyval.opval) = Nullop; ;} + break; + + case 19: +#line 245 "perly.y" + { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} + break; + + 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 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 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 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 24: +#line 263 "perly.y" + { (yyval.opval) = newFOROP(0, NULL, (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 25: +#line 271 "perly.y" + { (yyval.opval) = Nullop; ;} + break; + + 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 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; + TOKEN_GETMAD((ps[(1) - (6)].val.i_tkval),(yyval.opval),'I'); + TOKEN_GETMAD((ps[(2) - (6)].val.i_tkval),(yyval.opval),'('); + TOKEN_GETMAD((ps[(4) - (6)].val.i_tkval),(yyval.opval),')'); + ;} + break; + + 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))); + TOKEN_GETMAD((ps[(1) - (7)].val.i_tkval),(yyval.opval),'I'); + TOKEN_GETMAD((ps[(2) - (7)].val.i_tkval),(yyval.opval),'('); + TOKEN_GETMAD((ps[(5) - (7)].val.i_tkval),(yyval.opval),')'); + ;} + break; + + 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))); + TOKEN_GETMAD((ps[(1) - (7)].val.i_tkval),(yyval.opval),'I'); + TOKEN_GETMAD((ps[(2) - (7)].val.i_tkval),(yyval.opval),'('); + TOKEN_GETMAD((ps[(5) - (7)].val.i_tkval),(yyval.opval),')'); + ;} + break; + + 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 31: +#line 310 "perly.y" + { (yyval.opval) = newWHENOP(0, scope((ps[(2) - (2)].val.opval))); ;} + break; + + case 32: +#line 315 "perly.y" + { (yyval.opval) = Nullop; ;} + break; + + 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 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), + newSTATEOP(0, PVAL((ps[(1) - (9)].val.p_tkval)), + innerop = newWHILEOP(0, 1, (LOOP*)Nullop, + IVAL((ps[(2) - (9)].val.i_tkval)), (ps[(5) - (9)].val.opval), (ps[(8) - (9)].val.opval), (ps[(9) - (9)].val.opval), (ps[(7) - (9)].val.ival)))); + TOKEN_GETMAD((ps[(1) - (9)].val.p_tkval),innerop,'L'); + TOKEN_GETMAD((ps[(2) - (9)].val.i_tkval),innerop,'W'); + TOKEN_GETMAD((ps[(3) - (9)].val.i_tkval),innerop,'('); + TOKEN_GETMAD((ps[(6) - (9)].val.i_tkval),innerop,')'); + ;} + break; + + 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), + newSTATEOP(0, PVAL((ps[(1) - (9)].val.p_tkval)), + innerop = newWHILEOP(0, 1, (LOOP*)Nullop, + IVAL((ps[(2) - (9)].val.i_tkval)), (ps[(5) - (9)].val.opval), (ps[(8) - (9)].val.opval), (ps[(9) - (9)].val.opval), (ps[(7) - (9)].val.ival)))); + TOKEN_GETMAD((ps[(1) - (9)].val.p_tkval),innerop,'L'); + TOKEN_GETMAD((ps[(2) - (9)].val.i_tkval),innerop,'W'); + TOKEN_GETMAD((ps[(3) - (9)].val.i_tkval),innerop,'('); + TOKEN_GETMAD((ps[(6) - (9)].val.i_tkval),innerop,')'); + ;} + break; + + 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)), + (ps[(5) - (10)].val.opval), (ps[(7) - (10)].val.opval), (ps[(9) - (10)].val.opval), (ps[(10) - (10)].val.opval))); + TOKEN_GETMAD((ps[(1) - (10)].val.p_tkval),((LISTOP*)innerop)->op_first,'L'); + TOKEN_GETMAD((ps[(2) - (10)].val.i_tkval),((LISTOP*)innerop)->op_first->op_sibling,'W'); + TOKEN_GETMAD((ps[(3) - (10)].val.i_tkval),((LISTOP*)innerop)->op_first->op_sibling,'d'); + TOKEN_GETMAD((ps[(6) - (10)].val.i_tkval),((LISTOP*)innerop)->op_first->op_sibling,'('); + TOKEN_GETMAD((ps[(8) - (10)].val.i_tkval),((LISTOP*)innerop)->op_first->op_sibling,')'); + ;} + break; + + 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)), + mod((ps[(3) - (9)].val.opval), OP_ENTERLOOP), (ps[(6) - (9)].val.opval), (ps[(8) - (9)].val.opval), (ps[(9) - (9)].val.opval))); + TOKEN_GETMAD((ps[(1) - (9)].val.p_tkval),((LISTOP*)innerop)->op_first,'L'); + TOKEN_GETMAD((ps[(2) - (9)].val.i_tkval),((LISTOP*)innerop)->op_first->op_sibling,'W'); + TOKEN_GETMAD((ps[(4) - (9)].val.i_tkval),((LISTOP*)innerop)->op_first->op_sibling,'('); + TOKEN_GETMAD((ps[(7) - (9)].val.i_tkval),((LISTOP*)innerop)->op_first->op_sibling,')'); + ;} + break; + + 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)), + Nullop, (ps[(5) - (8)].val.opval), (ps[(7) - (8)].val.opval), (ps[(8) - (8)].val.opval))); + TOKEN_GETMAD((ps[(1) - (8)].val.p_tkval),((LISTOP*)innerop)->op_first,'L'); + TOKEN_GETMAD((ps[(2) - (8)].val.i_tkval),((LISTOP*)innerop)->op_first->op_sibling,'W'); + TOKEN_GETMAD((ps[(3) - (8)].val.i_tkval),((LISTOP*)innerop)->op_first->op_sibling,'('); + TOKEN_GETMAD((ps[(6) - (8)].val.i_tkval),((LISTOP*)innerop)->op_first->op_sibling,')'); + ;} + break; + + 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)), + newWHILEOP(0, 1, (LOOP*)Nullop, + IVAL((ps[(2) - (12)].val.i_tkval)), scalar((ps[(7) - (12)].val.opval)), + (ps[(12) - (12)].val.opval), (ps[(10) - (12)].val.opval), (ps[(9) - (12)].val.ival))); +#ifdef MAD + forop = newUNOP(OP_NULL, 0, append_elem(OP_LINESEQ, + newSTATEOP(0, + CopLABEL_alloc(((ps[(1) - (12)].val.p_tkval))->tk_lval.pval), + ((ps[(5) - (12)].val.opval) ? (ps[(5) - (12)].val.opval) : newOP(OP_NULL, 0)) ), + forop)); + + token_getmad((ps[(2) - (12)].val.i_tkval),forop,'3'); + token_getmad((ps[(3) - (12)].val.i_tkval),forop,'('); + token_getmad((ps[(6) - (12)].val.i_tkval),forop,'1'); + token_getmad((ps[(8) - (12)].val.i_tkval),forop,'2'); + token_getmad((ps[(11) - (12)].val.i_tkval),forop,')'); + token_getmad((ps[(1) - (12)].val.p_tkval),forop,'L'); +#else + if ((ps[(5) - (12)].val.opval)) { + forop = append_elem(OP_LINESEQ, + newSTATEOP(0, CopLABEL_alloc((ps[(1) - (12)].val.p_tkval)), (ps[(5) - (12)].val.opval)), + forop); + } + + +#endif + (yyval.opval) = block_end((ps[(4) - (12)].val.ival), forop); ;} + break; + + 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 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)), + newGIVENOP((ps[(6) - (8)].val.opval), scope((ps[(8) - (8)].val.opval)), + (PADOFFSET) (ps[(5) - (8)].val.ival)) )); ;} + break; + + case 42: +#line 429 "perly.y" + { (yyval.ival) = (PL_min_intro_pending && + PL_max_intro_pending >= PL_min_intro_pending); + intro_my(); ;} + break; + + case 43: +#line 435 "perly.y" + { (yyval.opval) = Nullop; ;} + break; + + case 45: +#line 441 "perly.y" + { YYSTYPE tmplval; + (void)scan_num("1", &tmplval); + (yyval.opval) = tmplval.opval; ;} + break; + + case 47: +#line 449 "perly.y" + { (yyval.opval) = invert(scalar((ps[(1) - (1)].val.opval))); ;} + break; + + case 48: +#line 454 "perly.y" + { (yyval.opval) = (ps[(1) - (1)].val.opval); intro_my(); ;} + break; + + case 49: +#line 458 "perly.y" + { (yyval.opval) = (ps[(1) - (1)].val.opval); intro_my(); ;} + break; + + case 50: +#line 462 "perly.y" + { (yyval.opval) = (ps[(1) - (1)].val.opval); intro_my(); ;} + break; + + case 51: +#line 467 "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 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); ;} + break; + + case 55: +#line 485 "perly.y" + { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} + break; + + case 56: +#line 487 "perly.y" + { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} + break; + + case 57: +#line 489 "perly.y" + { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} + break; + + case 58: +#line 494 "perly.y" + { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} + break; + + case 59: +#line 498 "perly.y" + { (yyval.opval) = newOP(OP_NULL,0); + TOKEN_GETMAD((ps[(1) - (1)].val.i_tkval),(yyval.opval),'p'); + ;} + break; + + 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)); + prepend_madprops((ps[(1) - (4)].val.i_tkval)->tk_mad, (yyval.opval), 'F'); + (ps[(1) - (4)].val.i_tkval)->tk_mad = 0; + token_free((ps[(1) - (4)].val.i_tkval)); +#else + newFORM((ps[(2) - (4)].val.ival), (ps[(3) - (4)].val.opval), (ps[(4) - (4)].val.opval)); + (yyval.opval) = Nullop; +#endif + ;} + break; + + case 61: +#line 517 "perly.y" + { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} + break; + + case 62: +#line 518 "perly.y" + { (yyval.opval) = Nullop; ;} + break; + + 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)); + token_getmad((ps[(1) - (6)].val.i_tkval),(yyval.opval),'d'); +#else + 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)); + (yyval.opval) = Nullop; +#endif + ;} + break; + + case 64: +#line 536 "perly.y" + { SvREFCNT_inc_simple_void(PL_compcv); +#ifdef MAD + { + OP* o = newSVOP(OP_ANONCODE, 0, + (SV*)newATTRSUB((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))); + (yyval.opval) = newOP(OP_NULL,0); + op_getmad(o,(yyval.opval),'&'); + op_getmad((ps[(3) - (6)].val.opval),(yyval.opval),'n'); + op_getmad((ps[(4) - (6)].val.opval),(yyval.opval),'s'); + op_getmad((ps[(5) - (6)].val.opval),(yyval.opval),'a'); + token_getmad((ps[(1) - (6)].val.i_tkval),(yyval.opval),'d'); + append_madprops((ps[(6) - (6)].val.opval)->op_madprop, (yyval.opval), 0); + (ps[(6) - (6)].val.opval)->op_madprop = 0; + } +#else + newATTRSUB((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)); + (yyval.opval) = Nullop; +#endif + ;} + break; + + case 65: +#line 558 "perly.y" + { (yyval.ival) = start_subparse(FALSE, 0); + SAVEFREESV(PL_compcv); ;} + break; + + case 66: +#line 564 "perly.y" + { (yyval.ival) = start_subparse(FALSE, CVf_ANON); + SAVEFREESV(PL_compcv); ;} + break; + + case 67: +#line 569 "perly.y" + { (yyval.ival) = start_subparse(TRUE, 0); + SAVEFREESV(PL_compcv); ;} + break; + + 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") + || strEQ(name, "UNITCHECK")) + CvSPECIAL_on(PL_compcv); + (yyval.opval) = (ps[(1) - (1)].val.opval); ;} + break; + + case 69: +#line 584 "perly.y" + { (yyval.opval) = Nullop; ;} + break; + + case 71: +#line 590 "perly.y" + { (yyval.opval) = Nullop; ;} + break; + + 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 73: +#line 596 "perly.y" + { (yyval.opval) = IF_MAD( + newOP(OP_NULL, 0), + Nullop + ); + TOKEN_GETMAD((ps[(1) - (1)].val.i_tkval),(yyval.opval),':'); + ;} + break; + + 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 75: +#line 610 "perly.y" + { (yyval.opval) = IF_MAD( + newOP(OP_NULL, 0), + Nullop + ); + TOKEN_GETMAD((ps[(1) - (1)].val.i_tkval),(yyval.opval),':'); + ;} + break; + + case 76: +#line 619 "perly.y" + { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} + break; + + case 77: +#line 620 "perly.y" + { (yyval.opval) = IF_MAD( + newOP(OP_NULL,0), + Nullop + ); + PL_parser->expect = XSTATE; + TOKEN_GETMAD((ps[(1) - (1)].val.i_tkval),(yyval.opval),';'); + ;} + break; + + case 78: +#line 630 "perly.y" + { +#ifdef MAD + (yyval.opval) = package((ps[(2) - (3)].val.opval)); + token_getmad((ps[(1) - (3)].val.i_tkval),(yyval.opval),'o'); + token_getmad((ps[(3) - (3)].val.i_tkval),(yyval.opval),';'); +#else + package((ps[(2) - (3)].val.opval)); + (yyval.opval) = Nullop; +#endif + ;} + break; + + case 79: +#line 643 "perly.y" + { CvSPECIAL_on(PL_compcv); /* It's a BEGIN {} */ ;} + break; + + 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)); + token_getmad((ps[(1) - (7)].val.i_tkval),(yyval.opval),'o'); + token_getmad((ps[(7) - (7)].val.i_tkval),(yyval.opval),';'); + if (PL_parser->rsfp_filters && + AvFILLp(PL_parser->rsfp_filters) >= 0) + append_madprops(newMADPROP('!', MAD_PV, "", 0), (yyval.opval), 0); +#else + 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)); + (yyval.opval) = Nullop; +#endif + ;} + break; + + 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 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 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 85: +#line 678 "perly.y" + { +#ifdef MAD + OP* op = newNULLLIST(); + token_getmad((ps[(2) - (2)].val.i_tkval),op,','); + (yyval.opval) = append_elem(OP_LIST, (ps[(1) - (2)].val.opval), op); +#else + (yyval.opval) = (ps[(1) - (2)].val.opval); +#endif + ;} + break; + + case 86: +#line 688 "perly.y" + { + OP* term = (ps[(3) - (3)].val.opval); + DO_MAD( + term = newUNOP(OP_NULL, 0, term); + token_getmad((ps[(2) - (3)].val.i_tkval),term,','); + ) + (yyval.opval) = append_elem(OP_LIST, (ps[(1) - (3)].val.opval), term); + ;} + break; + + 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 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'); + TOKEN_GETMAD((ps[(2) - (5)].val.i_tkval),(yyval.opval),'('); + TOKEN_GETMAD((ps[(5) - (5)].val.i_tkval),(yyval.opval),')'); + ;} + break; + + 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)), + newUNOP(OP_METHOD, 0, (ps[(3) - (6)].val.opval)))); + TOKEN_GETMAD((ps[(2) - (6)].val.i_tkval),(yyval.opval),'A'); + TOKEN_GETMAD((ps[(4) - (6)].val.i_tkval),(yyval.opval),'('); + TOKEN_GETMAD((ps[(6) - (6)].val.i_tkval),(yyval.opval),')'); + ;} + break; + + 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)))); + TOKEN_GETMAD((ps[(2) - (3)].val.i_tkval),(yyval.opval),'A'); + ;} + break; + + 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)), + newUNOP(OP_METHOD, 0, (ps[(1) - (3)].val.opval)))); + ;} + break; + + 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)), + newUNOP(OP_METHOD, 0, (ps[(1) - (5)].val.opval)))); + TOKEN_GETMAD((ps[(3) - (5)].val.i_tkval),(yyval.opval),'('); + TOKEN_GETMAD((ps[(5) - (5)].val.i_tkval),(yyval.opval),')'); + ;} + break; + + 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 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),'('); + TOKEN_GETMAD((ps[(4) - (4)].val.i_tkval),(yyval.opval),')'); + ;} + break; + + 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 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 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),'{'); + TOKEN_GETMAD((ps[(4) - (5)].val.i_tkval),(yyval.opval),';'); + TOKEN_GETMAD((ps[(5) - (5)].val.i_tkval),(yyval.opval),'}'); + ;} + break; + + 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 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))); + TOKEN_GETMAD((ps[(2) - (5)].val.i_tkval),(yyval.opval),'a'); + TOKEN_GETMAD((ps[(3) - (5)].val.i_tkval),(yyval.opval),'['); + TOKEN_GETMAD((ps[(5) - (5)].val.i_tkval),(yyval.opval),']'); + ;} + break; + + 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))); + TOKEN_GETMAD((ps[(2) - (4)].val.i_tkval),(yyval.opval),'['); + TOKEN_GETMAD((ps[(4) - (4)].val.i_tkval),(yyval.opval),']'); + ;} + break; + + 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),'{'); + TOKEN_GETMAD((ps[(4) - (5)].val.i_tkval),(yyval.opval),';'); + TOKEN_GETMAD((ps[(5) - (5)].val.i_tkval),(yyval.opval),'}'); + ;} + break; + + 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))); + PL_parser->expect = XOPERATOR; + TOKEN_GETMAD((ps[(2) - (6)].val.i_tkval),(yyval.opval),'a'); + TOKEN_GETMAD((ps[(3) - (6)].val.i_tkval),(yyval.opval),'{'); + TOKEN_GETMAD((ps[(5) - (6)].val.i_tkval),(yyval.opval),';'); + TOKEN_GETMAD((ps[(6) - (6)].val.i_tkval),(yyval.opval),'}'); + ;} + break; + + 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))); + PL_parser->expect = XOPERATOR; + TOKEN_GETMAD((ps[(2) - (5)].val.i_tkval),(yyval.opval),'{'); + TOKEN_GETMAD((ps[(4) - (5)].val.i_tkval),(yyval.opval),';'); + TOKEN_GETMAD((ps[(5) - (5)].val.i_tkval),(yyval.opval),'}'); + ;} + break; + + 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'); + TOKEN_GETMAD((ps[(3) - (4)].val.i_tkval),(yyval.opval),'('); + TOKEN_GETMAD((ps[(4) - (4)].val.i_tkval),(yyval.opval),')'); + ;} + break; + + 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))))); + TOKEN_GETMAD((ps[(2) - (5)].val.i_tkval),(yyval.opval),'a'); + TOKEN_GETMAD((ps[(3) - (5)].val.i_tkval),(yyval.opval),'('); + TOKEN_GETMAD((ps[(5) - (5)].val.i_tkval),(yyval.opval),')'); + ;} + break; + + 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))))); + TOKEN_GETMAD((ps[(2) - (4)].val.i_tkval),(yyval.opval),'('); + TOKEN_GETMAD((ps[(4) - (4)].val.i_tkval),(yyval.opval),')'); + ;} + break; + + 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),'('); + TOKEN_GETMAD((ps[(3) - (3)].val.i_tkval),(yyval.opval),')'); + ;} + break; + + 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),')'); + TOKEN_GETMAD((ps[(4) - (6)].val.i_tkval),(yyval.opval),'['); + TOKEN_GETMAD((ps[(6) - (6)].val.i_tkval),(yyval.opval),']'); + ;} + break; + + 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),')'); + TOKEN_GETMAD((ps[(3) - (5)].val.i_tkval),(yyval.opval),'['); + TOKEN_GETMAD((ps[(5) - (5)].val.i_tkval),(yyval.opval),']'); + ;} + break; + + 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 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 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))); + TOKEN_GETMAD((ps[(2) - (3)].val.i_tkval),(yyval.opval),'o'); + ;} + 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 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 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 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 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 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 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({ + UNOP *op; + op = (UNOP*)(yyval.opval); + op = (UNOP*)op->op_first; /* get to flop */ + op = (UNOP*)op->op_first; /* get to flip */ + op = (UNOP*)op->op_first; /* get to range */ + token_getmad((ps[(2) - (3)].val.i_tkval),(OP*)op,'o'); + }) + ;} + break; + + 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 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 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 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 + ? ((UNOP*)(yyval.opval))->op_first : (yyval.opval)), + '~'); + ;} + break; + + 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 128: +#line 945 "perly.y" + { (yyval.opval) = IF_MAD( + newUNOP(OP_NULL, 0, (ps[(2) - (2)].val.opval)), + (ps[(2) - (2)].val.opval) + ); + TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'+'); + ;} + break; + + 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 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 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 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 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 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 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 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 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),';'); + TOKEN_GETMAD((ps[(4) - (4)].val.i_tkval),(yyval.opval),'}'); + ;} + break; + + 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),';'); + TOKEN_GETMAD((ps[(3) - (3)].val.i_tkval),(yyval.opval),'}'); + ;} + break; + + 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'); + OP_GETMAD((ps[(3) - (5)].val.opval),(yyval.opval),'s'); + OP_GETMAD((ps[(4) - (5)].val.opval),(yyval.opval),'a'); + ;} + break; + + 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 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 142: +#line 1025 "perly.y" + { (yyval.opval) = newUNOP(OP_ENTERSUB, + OPf_SPECIAL|OPf_STACKED, + prepend_elem(OP_LIST, + scalar(newCVREF( + (OPpENTERSUB_AMPER<<8), + scalar((ps[(2) - (4)].val.opval)) + )),Nullop)); dep(); + TOKEN_GETMAD((ps[(1) - (4)].val.i_tkval),(yyval.opval),'o'); + TOKEN_GETMAD((ps[(3) - (4)].val.i_tkval),(yyval.opval),'('); + TOKEN_GETMAD((ps[(4) - (4)].val.i_tkval),(yyval.opval),')'); + ;} + break; + + case 143: +#line 1037 "perly.y" + { (yyval.opval) = newUNOP(OP_ENTERSUB, + OPf_SPECIAL|OPf_STACKED, + append_elem(OP_LIST, + (ps[(4) - (5)].val.opval), + scalar(newCVREF( + (OPpENTERSUB_AMPER<<8), + scalar((ps[(2) - (5)].val.opval)) + )))); dep(); + TOKEN_GETMAD((ps[(1) - (5)].val.i_tkval),(yyval.opval),'o'); + TOKEN_GETMAD((ps[(3) - (5)].val.i_tkval),(yyval.opval),'('); + TOKEN_GETMAD((ps[(5) - (5)].val.i_tkval),(yyval.opval),')'); + ;} + break; + + 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(); + TOKEN_GETMAD((ps[(1) - (4)].val.i_tkval),(yyval.opval),'o'); + TOKEN_GETMAD((ps[(3) - (4)].val.i_tkval),(yyval.opval),'('); + TOKEN_GETMAD((ps[(4) - (4)].val.i_tkval),(yyval.opval),')'); + ;} + break; + + case 145: +#line 1058 "perly.y" + { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_SPECIAL|OPf_STACKED, + prepend_elem(OP_LIST, + (ps[(4) - (5)].val.opval), + scalar(newCVREF(0,scalar((ps[(2) - (5)].val.opval)))))); dep(); + TOKEN_GETMAD((ps[(1) - (5)].val.i_tkval),(yyval.opval),'o'); + TOKEN_GETMAD((ps[(3) - (5)].val.i_tkval),(yyval.opval),'('); + TOKEN_GETMAD((ps[(5) - (5)].val.i_tkval),(yyval.opval),')'); + ;} + break; + + 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 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 152: +#line 1083 "perly.y" + { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} + break; + + 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 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 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); ;} + break; + + case 158: +#line 1103 "perly.y" + { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} + break; + + case 159: +#line 1105 "perly.y" + { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} + break; + + case 160: +#line 1107 "perly.y" + { (yyval.opval) = newUNOP(OP_AV2ARYLEN, 0, ref((ps[(1) - (1)].val.opval), OP_AV2ARYLEN));;} + break; + + case 161: +#line 1109 "perly.y" + { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} + break; + + case 162: +#line 1111 "perly.y" + { (yyval.opval) = prepend_elem(OP_ASLICE, + newOP(OP_PUSHMARK, 0), + newLISTOP(OP_ASLICE, 0, + list((ps[(3) - (4)].val.opval)), + ref((ps[(1) - (4)].val.opval), OP_ASLICE))); + TOKEN_GETMAD((ps[(2) - (4)].val.i_tkval),(yyval.opval),'['); + TOKEN_GETMAD((ps[(4) - (4)].val.i_tkval),(yyval.opval),']'); + ;} + break; + + case 163: +#line 1120 "perly.y" + { (yyval.opval) = prepend_elem(OP_HSLICE, + newOP(OP_PUSHMARK, 0), + newLISTOP(OP_HSLICE, 0, + list((ps[(3) - (5)].val.opval)), + ref(oopsHV((ps[(1) - (5)].val.opval)), OP_HSLICE))); + PL_parser->expect = XOPERATOR; + TOKEN_GETMAD((ps[(2) - (5)].val.i_tkval),(yyval.opval),'{'); + TOKEN_GETMAD((ps[(4) - (5)].val.i_tkval),(yyval.opval),';'); + TOKEN_GETMAD((ps[(5) - (5)].val.i_tkval),(yyval.opval),'}'); + ;} + break; + + case 164: +#line 1131 "perly.y" + { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} + break; + + case 165: +#line 1133 "perly.y" + { (yyval.opval) = newUNOP(OP_ENTERSUB, 0, scalar((ps[(1) - (1)].val.opval))); ;} + break; + + 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 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)))); + DO_MAD({ + OP* op = (yyval.opval); + if (op->op_type == OP_CONST) { /* defeat const fold */ + op = (OP*)op->op_madprop->mad_val; + } + token_getmad((ps[(2) - (4)].val.i_tkval),op,'('); + token_getmad((ps[(4) - (4)].val.i_tkval),op,')'); + }) + ;} + break; + + 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 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 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 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 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 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 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 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 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 177: +#line 1191 "perly.y" + { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, scalar((ps[(1) - (1)].val.opval))); ;} + break; + + 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 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 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),'('); + TOKEN_GETMAD((ps[(3) - (3)].val.i_tkval),(yyval.opval),')'); + ;} + break; + + case 181: +#line 1206 "perly.y" + { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, + scalar((ps[(1) - (1)].val.opval))); ;} + break; + + 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); + + TOKEN_GETMAD((ps[(1) - (3)].val.i_tkval),(yyval.opval),'o'); + TOKEN_GETMAD((ps[(2) - (3)].val.i_tkval),(yyval.opval),'('); + TOKEN_GETMAD((ps[(3) - (3)].val.i_tkval),(yyval.opval),')'); + ;} + break; + + 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),'('); + TOKEN_GETMAD((ps[(4) - (4)].val.i_tkval),(yyval.opval),')'); + ;} + break; + + 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 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'); + append_madprops((ps[(3) - (3)].val.opval)->op_madprop, (yyval.opval), 'a'); + (ps[(3) - (3)].val.opval)->op_madprop = 0; + ) + ;} + break; + + 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 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 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); ;} + break; + + case 193: +#line 1263 "perly.y" + { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} + break; + + case 194: +#line 1268 "perly.y" + { (yyval.opval) = Nullop; ;} + break; + + case 195: +#line 1270 "perly.y" + { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} + break; + + case 196: +#line 1274 "perly.y" + { (yyval.opval) = Nullop; ;} + break; + + case 197: +#line 1276 "perly.y" + { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} + break; + + case 198: +#line 1278 "perly.y" + { +#ifdef MAD + OP* op = newNULLLIST(); + token_getmad((ps[(2) - (2)].val.i_tkval),op,','); + (yyval.opval) = append_elem(OP_LIST, (ps[(1) - (2)].val.opval), op); +#else + (yyval.opval) = (ps[(1) - (2)].val.opval); +#endif + + ;} + break; + + case 199: +#line 1293 "perly.y" + { PL_parser->in_my = 0; (yyval.opval) = my((ps[(1) - (1)].val.opval)); ;} + break; + + 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 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 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 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 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 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)); ;} + break; + + case 208: +#line 1338 "perly.y" + { (yyval.opval) = scope((ps[(1) - (1)].val.opval)); ;} + break; + + case 209: +#line 1341 "perly.y" + { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} + break; + + +/* Line 1267 of yacc.c. */ + + default: break; + -- cgit v1.2.3