summaryrefslogtreecommitdiff
path: root/perly.act
diff options
context:
space:
mode:
authorZefram <zefram@fysh.org>2010-10-24 03:13:39 +0100
committerFather Chrysostomos <sprout@cpan.org>2010-10-25 12:29:47 -0700
commit8359b381d0e4b7d1489abafb919f3c2a465401a4 (patch)
tree50b3187c01fbea29c0ffe65bda449ef0419a690d /perly.act
parent94bf0465170f13a4a3114b27d564dc2287d466b2 (diff)
downloadperl-8359b381d0e4b7d1489abafb919f3c2a465401a4.tar.gz
function to parse unlabelled statement
New API function parse_barestmt() parses a pure statement, with no label, and returns just the statement's core ops, not attaching a state op.
Diffstat (limited to 'perly.act')
-rw-r--r--perly.act788
1 files changed, 403 insertions, 385 deletions
diff --git a/perly.act b/perly.act
index 50e525ba56..d17cb448de 100644
--- a/perly.act
+++ b/perly.act
@@ -49,18 +49,36 @@ case 2:
case 8:
#line 173 "perly.y"
{
+ PL_pad_reset_pending = TRUE;
PL_eval_root = (ps[(3) - (3)].val.opval);
(yyval.ival) = 0;
+ yyunlex();
+ parser->yychar = YYEOF;
;}
break;
case 9:
-#line 182 "perly.y"
- { (yyval.ival) = (ps[(1) - (2)].val.ival); newPROG(block_end((ps[(1) - (2)].val.ival),(ps[(2) - (2)].val.opval))); ;}
+#line 181 "perly.y"
+ {
+ parser->expect = XSTATE;
+ ;}
break;
case 10:
-#line 187 "perly.y"
+#line 185 "perly.y"
+ {
+ PL_eval_root = (ps[(3) - (3)].val.opval);
+ (yyval.ival) = 0;
+ ;}
+ break;
+
+ case 11:
+#line 194 "perly.y"
+ { (yyval.ival) = (ps[(1) - (2)].val.ival); newPROG(block_end((ps[(1) - (2)].val.ival),(ps[(2) - (2)].val.opval))); ;}
+ break;
+
+ case 12:
+#line 199 "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));
@@ -69,25 +87,25 @@ case 2:
;}
break;
- case 11:
-#line 196 "perly.y"
+ case 13:
+#line 208 "perly.y"
{ (yyval.ival) = block_start(TRUE); ;}
break;
- case 12:
-#line 200 "perly.y"
+ case 14:
+#line 212 "perly.y"
{ (yyval.ival) = (I32) Perl_allocmy(aTHX_ STR_WITH_LEN("$_"), 0); ;}
break;
- case 13:
-#line 204 "perly.y"
+ case 15:
+#line 216 "perly.y"
{
PL_parser->expect = XSTATE; (yyval.ival) = block_start(TRUE);
;}
break;
- case 14:
-#line 211 "perly.y"
+ case 16:
+#line 223 "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));
@@ -96,18 +114,18 @@ case 2:
;}
break;
- case 15:
-#line 220 "perly.y"
+ case 17:
+#line 232 "perly.y"
{ (yyval.ival) = block_start(FALSE); ;}
break;
- case 16:
-#line 225 "perly.y"
+ case 18:
+#line 237 "perly.y"
{ (yyval.opval) = (OP*)NULL; ;}
break;
- case 17:
-#line 227 "perly.y"
+ case 19:
+#line 239 "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))
@@ -115,8 +133,8 @@ case 2:
;}
break;
- case 18:
-#line 236 "perly.y"
+ case 20:
+#line 248 "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));
@@ -128,21 +146,21 @@ case 2:
;}
break;
- case 19:
-#line 249 "perly.y"
+ case 21:
+#line 261 "perly.y"
{ (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
break;
- case 20:
-#line 251 "perly.y"
+ case 22:
+#line 263 "perly.y"
{
(yyval.opval) = newOP(OP_NULL,0);
TOKEN_GETMAD((ps[(1) - (1)].val.i_tkval),(yyval.opval),'p');
;}
break;
- case 21:
-#line 256 "perly.y"
+ case 23:
+#line 268 "perly.y"
{
CV *fmtcv = PL_compcv;
SvREFCNT_inc_simple_void(PL_compcv);
@@ -162,8 +180,8 @@ case 2:
;}
break;
- case 22:
-#line 274 "perly.y"
+ case 24:
+#line 286 "perly.y"
{
SvREFCNT_inc_simple_void(PL_compcv);
#ifdef MAD
@@ -186,8 +204,8 @@ case 2:
;}
break;
- case 23:
-#line 295 "perly.y"
+ case 25:
+#line 307 "perly.y"
{
/* Unimplemented "my sub foo { }" */
SvREFCNT_inc_simple_void(PL_compcv);
@@ -201,8 +219,8 @@ case 2:
;}
break;
- case 24:
-#line 307 "perly.y"
+ case 26:
+#line 319 "perly.y"
{
#ifdef MAD
(yyval.opval) = package((ps[(3) - (4)].val.opval));
@@ -219,13 +237,13 @@ case 2:
;}
break;
- case 25:
-#line 322 "perly.y"
+ case 27:
+#line 334 "perly.y"
{ CvSPECIAL_on(PL_compcv); /* It's a BEGIN {} */ ;}
break;
- case 26:
-#line 324 "perly.y"
+ case 28:
+#line 336 "perly.y"
{
SvREFCNT_inc_simple_void(PL_compcv);
#ifdef MAD
@@ -242,8 +260,8 @@ case 2:
;}
break;
- case 27:
-#line 339 "perly.y"
+ case 29:
+#line 351 "perly.y"
{
(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');
@@ -253,8 +271,8 @@ case 2:
;}
break;
- case 28:
-#line 347 "perly.y"
+ case 30:
+#line 359 "perly.y"
{
(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');
@@ -264,8 +282,8 @@ case 2:
;}
break;
- case 29:
-#line 355 "perly.y"
+ case 31:
+#line 367 "perly.y"
{
(yyval.opval) = block_end((ps[(3) - (7)].val.ival),
newGIVENOP((ps[(5) - (7)].val.opval), scope((ps[(7) - (7)].val.opval)), (PADOFFSET)(ps[(4) - (7)].val.ival)));
@@ -273,18 +291,18 @@ case 2:
;}
break;
- case 30:
-#line 361 "perly.y"
+ case 32:
+#line 373 "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 363 "perly.y"
+ case 33:
+#line 375 "perly.y"
{ (yyval.opval) = newWHENOP(0, scope((ps[(2) - (2)].val.opval))); ;}
break;
- case 32:
-#line 365 "perly.y"
+ case 34:
+#line 377 "perly.y"
{
(yyval.opval) = block_end((ps[(3) - (8)].val.ival),
newWHILEOP(0, 1, (LOOP*)(OP*)NULL,
@@ -296,8 +314,8 @@ case 2:
;}
break;
- case 33:
-#line 375 "perly.y"
+ case 35:
+#line 387 "perly.y"
{
(yyval.opval) = block_end((ps[(3) - (8)].val.ival),
newWHILEOP(0, 1, (LOOP*)(OP*)NULL,
@@ -309,8 +327,8 @@ case 2:
;}
break;
- case 34:
-#line 386 "perly.y"
+ case 36:
+#line 398 "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,
@@ -332,8 +350,8 @@ case 2:
;}
break;
- case 35:
-#line 406 "perly.y"
+ case 37:
+#line 418 "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');
@@ -344,8 +362,8 @@ case 2:
;}
break;
- case 36:
-#line 415 "perly.y"
+ case 38:
+#line 427 "perly.y"
{
(yyval.opval) = block_end((ps[(4) - (8)].val.ival), newFOROP(0,
mod((ps[(2) - (8)].val.opval), OP_ENTERLOOP), (ps[(5) - (8)].val.opval), (ps[(7) - (8)].val.opval), (ps[(8) - (8)].val.opval)));
@@ -356,8 +374,8 @@ case 2:
;}
break;
- case 37:
-#line 424 "perly.y"
+ case 39:
+#line 436 "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)));
@@ -368,8 +386,8 @@ case 2:
;}
break;
- case 38:
-#line 433 "perly.y"
+ case 40:
+#line 445 "perly.y"
{
/* a block is a loop that happens once */
(yyval.opval) = newWHILEOP(0, 1, (LOOP*)(OP*)NULL,
@@ -378,8 +396,8 @@ case 2:
;}
break;
- case 39:
-#line 440 "perly.y"
+ case 41:
+#line 452 "perly.y"
{
int save_3_latefree = (ps[(3) - (5)].val.opval)->op_latefree;
(ps[(3) - (5)].val.opval)->op_latefree = 1;
@@ -394,8 +412,8 @@ case 2:
;}
break;
- case 40:
-#line 453 "perly.y"
+ case 42:
+#line 465 "perly.y"
{
/* a block is a loop that happens once */
(yyval.opval) = newWHILEOP(0, 1, (LOOP*)(OP*)NULL,
@@ -410,8 +428,8 @@ case 2:
;}
break;
- case 41:
-#line 466 "perly.y"
+ case 43:
+#line 478 "perly.y"
{
PL_parser->expect = XSTATE;
(yyval.opval) = (ps[(1) - (2)].val.opval);
@@ -419,8 +437,8 @@ case 2:
;}
break;
- case 42:
-#line 472 "perly.y"
+ case 44:
+#line 484 "perly.y"
{
PL_parser->expect = XSTATE;
(yyval.opval) = IF_MAD(newOP(OP_NULL, 0), (OP*)NULL);
@@ -429,71 +447,71 @@ case 2:
;}
break;
- case 43:
-#line 482 "perly.y"
+ case 45:
+#line 494 "perly.y"
{ (yyval.opval) = (OP*)NULL; ;}
break;
- case 44:
-#line 484 "perly.y"
+ case 46:
+#line 496 "perly.y"
{ (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
break;
- case 45:
-#line 486 "perly.y"
+ case 47:
+#line 498 "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 46:
-#line 490 "perly.y"
+ case 48:
+#line 502 "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 47:
-#line 494 "perly.y"
+ case 49:
+#line 506 "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 48:
-#line 498 "perly.y"
+ case 50:
+#line 510 "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 49:
-#line 502 "perly.y"
+ case 51:
+#line 514 "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 50:
-#line 507 "perly.y"
+ case 52:
+#line 519 "perly.y"
{ (yyval.opval) = newWHENOP((ps[(3) - (3)].val.opval), scope((ps[(1) - (3)].val.opval))); ;}
break;
- case 51:
-#line 512 "perly.y"
+ case 53:
+#line 524 "perly.y"
{ (yyval.opval) = (OP*)NULL; ;}
break;
- case 52:
-#line 514 "perly.y"
+ case 54:
+#line 526 "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 53:
-#line 518 "perly.y"
+ case 55:
+#line 530 "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)), scope((ps[(5) - (6)].val.opval)), (ps[(6) - (6)].val.opval));
PL_hints |= HINT_BLOCK_SCOPE;
@@ -503,59 +521,59 @@ case 2:
;}
break;
- case 54:
-#line 529 "perly.y"
+ case 56:
+#line 541 "perly.y"
{ (yyval.opval) = (OP*)NULL; ;}
break;
- case 55:
-#line 531 "perly.y"
+ case 57:
+#line 543 "perly.y"
{ (yyval.opval) = scope((ps[(2) - (2)].val.opval));
TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'o');
;}
break;
- case 56:
-#line 538 "perly.y"
+ case 58:
+#line 550 "perly.y"
{ (yyval.ival) = (PL_min_intro_pending &&
PL_max_intro_pending >= PL_min_intro_pending);
intro_my(); ;}
break;
- case 57:
-#line 544 "perly.y"
+ case 59:
+#line 556 "perly.y"
{ (yyval.opval) = (OP*)NULL; ;}
break;
- case 59:
-#line 550 "perly.y"
+ case 61:
+#line 562 "perly.y"
{ YYSTYPE tmplval;
(void)scan_num("1", &tmplval);
(yyval.opval) = tmplval.opval; ;}
break;
- case 61:
-#line 558 "perly.y"
+ case 63:
+#line 570 "perly.y"
{ (yyval.opval) = invert(scalar((ps[(1) - (1)].val.opval))); ;}
break;
- case 62:
-#line 563 "perly.y"
+ case 64:
+#line 575 "perly.y"
{ (yyval.opval) = (ps[(1) - (1)].val.opval); intro_my(); ;}
break;
- case 63:
-#line 567 "perly.y"
+ case 65:
+#line 579 "perly.y"
{ (yyval.opval) = (ps[(1) - (1)].val.opval); intro_my(); ;}
break;
- case 64:
-#line 571 "perly.y"
+ case 66:
+#line 583 "perly.y"
{ (yyval.opval) = (ps[(1) - (1)].val.opval); intro_my(); ;}
break;
- case 65:
-#line 576 "perly.y"
+ case 67:
+#line 588 "perly.y"
{
#ifdef MAD
YYSTYPE tmplval;
@@ -567,36 +585,36 @@ case 2:
;}
break;
- case 67:
-#line 588 "perly.y"
+ case 69:
+#line 600 "perly.y"
{ (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
break;
- case 68:
-#line 589 "perly.y"
+ case 70:
+#line 601 "perly.y"
{ (yyval.opval) = (OP*)NULL; ;}
break;
- case 69:
-#line 593 "perly.y"
+ case 71:
+#line 605 "perly.y"
{ (yyval.ival) = start_subparse(FALSE, 0);
SAVEFREESV(PL_compcv); ;}
break;
- case 70:
-#line 599 "perly.y"
+ case 72:
+#line 611 "perly.y"
{ (yyval.ival) = start_subparse(FALSE, CVf_ANON);
SAVEFREESV(PL_compcv); ;}
break;
- case 71:
-#line 604 "perly.y"
+ case 73:
+#line 616 "perly.y"
{ (yyval.ival) = start_subparse(TRUE, 0);
SAVEFREESV(PL_compcv); ;}
break;
- case 72:
-#line 609 "perly.y"
+ case 74:
+#line 621 "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")
@@ -605,25 +623,25 @@ case 2:
(yyval.opval) = (ps[(1) - (1)].val.opval); ;}
break;
- case 73:
-#line 619 "perly.y"
+ case 75:
+#line 631 "perly.y"
{ (yyval.opval) = (OP*)NULL; ;}
break;
- case 75:
-#line 625 "perly.y"
+ case 77:
+#line 637 "perly.y"
{ (yyval.opval) = (OP*)NULL; ;}
break;
- case 76:
-#line 627 "perly.y"
+ case 78:
+#line 639 "perly.y"
{ (yyval.opval) = (ps[(2) - (2)].val.opval);
TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),':');
;}
break;
- case 77:
-#line 631 "perly.y"
+ case 79:
+#line 643 "perly.y"
{ (yyval.opval) = IF_MAD(
newOP(OP_NULL, 0),
(OP*)NULL
@@ -632,15 +650,15 @@ case 2:
;}
break;
- case 78:
-#line 641 "perly.y"
+ case 80:
+#line 653 "perly.y"
{ (yyval.opval) = (ps[(2) - (2)].val.opval);
TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),':');
;}
break;
- case 79:
-#line 645 "perly.y"
+ case 81:
+#line 657 "perly.y"
{ (yyval.opval) = IF_MAD(
newOP(OP_NULL, 0),
(OP*)NULL
@@ -649,13 +667,13 @@ case 2:
;}
break;
- case 80:
-#line 654 "perly.y"
+ case 82:
+#line 666 "perly.y"
{ (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
break;
- case 81:
-#line 655 "perly.y"
+ case 83:
+#line 667 "perly.y"
{ (yyval.opval) = IF_MAD(
newOP(OP_NULL,0),
(OP*)NULL
@@ -665,29 +683,29 @@ case 2:
;}
break;
- case 82:
-#line 666 "perly.y"
+ case 84:
+#line 678 "perly.y"
{ (yyval.opval) = newLOGOP(OP_AND, 0, (ps[(1) - (3)].val.opval), (ps[(3) - (3)].val.opval));
TOKEN_GETMAD((ps[(2) - (3)].val.i_tkval),(yyval.opval),'o');
;}
break;
- case 83:
-#line 670 "perly.y"
+ case 85:
+#line 682 "perly.y"
{ (yyval.opval) = newLOGOP(IVAL((ps[(2) - (3)].val.i_tkval)), 0, (ps[(1) - (3)].val.opval), (ps[(3) - (3)].val.opval));
TOKEN_GETMAD((ps[(2) - (3)].val.i_tkval),(yyval.opval),'o');
;}
break;
- case 84:
-#line 674 "perly.y"
+ case 86:
+#line 686 "perly.y"
{ (yyval.opval) = newLOGOP(OP_DOR, 0, (ps[(1) - (3)].val.opval), (ps[(3) - (3)].val.opval));
TOKEN_GETMAD((ps[(2) - (3)].val.i_tkval),(yyval.opval),'o');
;}
break;
- case 86:
-#line 682 "perly.y"
+ case 88:
+#line 694 "perly.y"
{
#ifdef MAD
OP* op = newNULLLIST();
@@ -699,8 +717,8 @@ case 2:
;}
break;
- case 87:
-#line 692 "perly.y"
+ case 89:
+#line 704 "perly.y"
{
OP* term = (ps[(3) - (3)].val.opval);
DO_MAD(
@@ -711,16 +729,16 @@ case 2:
;}
break;
- case 89:
-#line 705 "perly.y"
+ case 91:
+#line 717 "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 90:
-#line 710 "perly.y"
+ case 92:
+#line 722 "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');
@@ -729,8 +747,8 @@ case 2:
;}
break;
- case 91:
-#line 717 "perly.y"
+ case 93:
+#line 729 "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)),
@@ -741,8 +759,8 @@ case 2:
;}
break;
- case 92:
-#line 726 "perly.y"
+ case 94:
+#line 738 "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))));
@@ -750,8 +768,8 @@ case 2:
;}
break;
- case 93:
-#line 732 "perly.y"
+ case 95:
+#line 744 "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)),
@@ -759,8 +777,8 @@ case 2:
;}
break;
- case 94:
-#line 738 "perly.y"
+ case 96:
+#line 750 "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)),
@@ -770,15 +788,15 @@ case 2:
;}
break;
- case 95:
-#line 746 "perly.y"
+ case 97:
+#line 758 "perly.y"
{ (yyval.opval) = convert(IVAL((ps[(1) - (2)].val.i_tkval)), 0, (ps[(2) - (2)].val.opval));
TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'o');
;}
break;
- case 96:
-#line 750 "perly.y"
+ case 98:
+#line 762 "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),'(');
@@ -786,22 +804,22 @@ case 2:
;}
break;
- case 97:
-#line 756 "perly.y"
+ case 99:
+#line 768 "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 98:
-#line 759 "perly.y"
+ case 100:
+#line 771 "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 101:
-#line 774 "perly.y"
+ case 103:
+#line 786 "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),'{');
@@ -810,16 +828,16 @@ case 2:
;}
break;
- case 102:
-#line 781 "perly.y"
+ case 104:
+#line 793 "perly.y"
{ (yyval.opval) = newBINOP(OP_AELEM, 0, oopsAV((ps[(1) - (4)].val.opval)), scalar((ps[(3) - (4)].val.opval)));
TOKEN_GETMAD((ps[(2) - (4)].val.i_tkval),(yyval.opval),'[');
TOKEN_GETMAD((ps[(4) - (4)].val.i_tkval),(yyval.opval),']');
;}
break;
- case 103:
-#line 786 "perly.y"
+ case 105:
+#line 798 "perly.y"
{ (yyval.opval) = newBINOP(OP_AELEM, 0,
ref(newAVREF((ps[(1) - (5)].val.opval)),OP_RV2AV),
scalar((ps[(4) - (5)].val.opval)));
@@ -829,8 +847,8 @@ case 2:
;}
break;
- case 104:
-#line 794 "perly.y"
+ case 106:
+#line 806 "perly.y"
{ (yyval.opval) = newBINOP(OP_AELEM, 0,
ref(newAVREF((ps[(1) - (4)].val.opval)),OP_RV2AV),
scalar((ps[(3) - (4)].val.opval)));
@@ -839,8 +857,8 @@ case 2:
;}
break;
- case 105:
-#line 801 "perly.y"
+ case 107:
+#line 813 "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),'{');
@@ -849,8 +867,8 @@ case 2:
;}
break;
- case 106:
-#line 808 "perly.y"
+ case 108:
+#line 820 "perly.y"
{ (yyval.opval) = newBINOP(OP_HELEM, 0,
ref(newHVREF((ps[(1) - (6)].val.opval)),OP_RV2HV),
jmaybe((ps[(4) - (6)].val.opval)));
@@ -862,8 +880,8 @@ case 2:
;}
break;
- case 107:
-#line 818 "perly.y"
+ case 109:
+#line 830 "perly.y"
{ (yyval.opval) = newBINOP(OP_HELEM, 0,
ref(newHVREF((ps[(1) - (5)].val.opval)),OP_RV2HV),
jmaybe((ps[(3) - (5)].val.opval)));
@@ -874,8 +892,8 @@ case 2:
;}
break;
- case 108:
-#line 827 "perly.y"
+ case 110:
+#line 839 "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');
@@ -884,8 +902,8 @@ case 2:
;}
break;
- case 109:
-#line 834 "perly.y"
+ case 111:
+#line 846 "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)))));
@@ -895,8 +913,8 @@ case 2:
;}
break;
- case 110:
-#line 843 "perly.y"
+ case 112:
+#line 855 "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)))));
@@ -905,8 +923,8 @@ case 2:
;}
break;
- case 111:
-#line 850 "perly.y"
+ case 113:
+#line 862 "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),'(');
@@ -914,8 +932,8 @@ case 2:
;}
break;
- case 112:
-#line 856 "perly.y"
+ case 114:
+#line 868 "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),')');
@@ -924,16 +942,16 @@ case 2:
;}
break;
- case 113:
-#line 863 "perly.y"
+ case 115:
+#line 875 "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 114:
-#line 868 "perly.y"
+ case 116:
+#line 880 "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),')');
@@ -942,22 +960,22 @@ case 2:
;}
break;
- case 115:
-#line 878 "perly.y"
+ case 117:
+#line 890 "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 116:
-#line 882 "perly.y"
+ case 118:
+#line 894 "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 886 "perly.y"
+ case 119:
+#line 898 "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)));
@@ -965,50 +983,50 @@ case 2:
;}
break;
- case 118:
-#line 892 "perly.y"
+ case 120:
+#line 904 "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 896 "perly.y"
+ case 121:
+#line 908 "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 900 "perly.y"
+ case 122:
+#line 912 "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 904 "perly.y"
+ case 123:
+#line 916 "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 908 "perly.y"
+ case 124:
+#line 920 "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 912 "perly.y"
+ case 125:
+#line 924 "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 916 "perly.y"
+ case 126:
+#line 928 "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({
@@ -1022,29 +1040,29 @@ case 2:
;}
break;
- case 125:
-#line 928 "perly.y"
+ case 127:
+#line 940 "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 126:
-#line 932 "perly.y"
+ case 128:
+#line 944 "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 127:
-#line 936 "perly.y"
+ case 129:
+#line 948 "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 128:
-#line 940 "perly.y"
+ case 130:
+#line 952 "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
@@ -1053,15 +1071,15 @@ case 2:
;}
break;
- case 129:
-#line 950 "perly.y"
+ case 131:
+#line 962 "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 130:
-#line 954 "perly.y"
+ case 132:
+#line 966 "perly.y"
{ (yyval.opval) = IF_MAD(
newUNOP(OP_NULL, 0, (ps[(2) - (2)].val.opval)),
(ps[(2) - (2)].val.opval)
@@ -1070,70 +1088,70 @@ case 2:
;}
break;
- case 131:
-#line 961 "perly.y"
+ case 133:
+#line 973 "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 132:
-#line 965 "perly.y"
+ case 134:
+#line 977 "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 133:
-#line 969 "perly.y"
+ case 135:
+#line 981 "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 134:
-#line 974 "perly.y"
+ case 136:
+#line 986 "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 135:
-#line 979 "perly.y"
+ case 137:
+#line 991 "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 136:
-#line 984 "perly.y"
+ case 138:
+#line 996 "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 137:
-#line 993 "perly.y"
+ case 139:
+#line 1005 "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 138:
-#line 998 "perly.y"
+ case 140:
+#line 1010 "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 139:
-#line 1003 "perly.y"
+ case 141:
+#line 1015 "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),';');
@@ -1141,8 +1159,8 @@ case 2:
;}
break;
- case 140:
-#line 1009 "perly.y"
+ case 142:
+#line 1021 "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),';');
@@ -1150,8 +1168,8 @@ case 2:
;}
break;
- case 141:
-#line 1015 "perly.y"
+ case 143:
+#line 1027 "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');
@@ -1160,22 +1178,22 @@ case 2:
;}
break;
- case 142:
-#line 1026 "perly.y"
+ case 144:
+#line 1038 "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 143:
-#line 1030 "perly.y"
+ case 145:
+#line 1042 "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 144:
-#line 1034 "perly.y"
+ case 146:
+#line 1046 "perly.y"
{ (yyval.opval) = newUNOP(OP_ENTERSUB,
OPf_SPECIAL|OPf_STACKED,
op_prepend_elem(OP_LIST,
@@ -1189,8 +1207,8 @@ case 2:
;}
break;
- case 145:
-#line 1046 "perly.y"
+ case 147:
+#line 1058 "perly.y"
{ (yyval.opval) = newUNOP(OP_ENTERSUB,
OPf_SPECIAL|OPf_STACKED,
op_append_elem(OP_LIST,
@@ -1205,8 +1223,8 @@ case 2:
;}
break;
- case 146:
-#line 1059 "perly.y"
+ case 148:
+#line 1071 "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();
@@ -1216,8 +1234,8 @@ case 2:
;}
break;
- case 147:
-#line 1067 "perly.y"
+ case 149:
+#line 1079 "perly.y"
{ (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_SPECIAL|OPf_STACKED,
op_prepend_elem(OP_LIST,
(ps[(4) - (5)].val.opval),
@@ -1228,86 +1246,86 @@ case 2:
;}
break;
- case 152:
-#line 1083 "perly.y"
+ case 154:
+#line 1095 "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 153:
-#line 1088 "perly.y"
+ case 155:
+#line 1100 "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 154:
-#line 1092 "perly.y"
+ case 156:
+#line 1104 "perly.y"
{ (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
break;
- case 155:
-#line 1094 "perly.y"
+ case 157:
+#line 1106 "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 156:
-#line 1098 "perly.y"
+ case 158:
+#line 1110 "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 157:
-#line 1103 "perly.y"
+ case 159:
+#line 1115 "perly.y"
{ (yyval.opval) = IF_MAD(newUNOP(OP_NULL,0,(ps[(1) - (1)].val.opval)), (ps[(1) - (1)].val.opval)); ;}
break;
- case 158:
-#line 1105 "perly.y"
+ case 160:
+#line 1117 "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 159:
-#line 1110 "perly.y"
+ case 161:
+#line 1122 "perly.y"
{ (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
break;
- case 160:
-#line 1112 "perly.y"
+ case 162:
+#line 1124 "perly.y"
{ (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
break;
- case 161:
-#line 1114 "perly.y"
+ case 163:
+#line 1126 "perly.y"
{ (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
break;
- case 162:
-#line 1116 "perly.y"
+ case 164:
+#line 1128 "perly.y"
{ (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
break;
- case 163:
-#line 1118 "perly.y"
+ case 165:
+#line 1130 "perly.y"
{ (yyval.opval) = newUNOP(OP_AV2ARYLEN, 0, ref((ps[(1) - (1)].val.opval), OP_AV2ARYLEN));;}
break;
- case 164:
-#line 1120 "perly.y"
+ case 166:
+#line 1132 "perly.y"
{ (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
break;
- case 165:
-#line 1122 "perly.y"
+ case 167:
+#line 1134 "perly.y"
{ (yyval.opval) = op_prepend_elem(OP_ASLICE,
newOP(OP_PUSHMARK, 0),
newLISTOP(OP_ASLICE, 0,
@@ -1318,8 +1336,8 @@ case 2:
;}
break;
- case 166:
-#line 1131 "perly.y"
+ case 168:
+#line 1143 "perly.y"
{ (yyval.opval) = op_prepend_elem(OP_HSLICE,
newOP(OP_PUSHMARK, 0),
newLISTOP(OP_HSLICE, 0,
@@ -1332,26 +1350,26 @@ case 2:
;}
break;
- case 167:
-#line 1142 "perly.y"
+ case 169:
+#line 1154 "perly.y"
{ (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
break;
- case 168:
-#line 1144 "perly.y"
+ case 170:
+#line 1156 "perly.y"
{ (yyval.opval) = newUNOP(OP_ENTERSUB, 0, scalar((ps[(1) - (1)].val.opval))); ;}
break;
- case 169:
-#line 1146 "perly.y"
+ case 171:
+#line 1158 "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 170:
-#line 1151 "perly.y"
+ case 172:
+#line 1163 "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))));
@@ -1366,91 +1384,91 @@ case 2:
;}
break;
- case 171:
-#line 1164 "perly.y"
+ case 173:
+#line 1176 "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 172:
-#line 1169 "perly.y"
+ case 174:
+#line 1181 "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 173:
-#line 1174 "perly.y"
+ case 175:
+#line 1186 "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 174:
-#line 1178 "perly.y"
+ case 176:
+#line 1190 "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 175:
-#line 1182 "perly.y"
+ case 177:
+#line 1194 "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 176:
-#line 1186 "perly.y"
+ case 178:
+#line 1198 "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 177:
-#line 1190 "perly.y"
+ case 179:
+#line 1202 "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 178:
-#line 1194 "perly.y"
+ case 180:
+#line 1206 "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 179:
-#line 1198 "perly.y"
+ case 181:
+#line 1210 "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 180:
-#line 1202 "perly.y"
+ case 182:
+#line 1214 "perly.y"
{ (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, scalar((ps[(1) - (1)].val.opval))); ;}
break;
- case 181:
-#line 1204 "perly.y"
+ case 183:
+#line 1216 "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 182:
-#line 1207 "perly.y"
+ case 184:
+#line 1219 "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 183:
-#line 1211 "perly.y"
+ case 185:
+#line 1223 "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),'(');
@@ -1458,14 +1476,14 @@ case 2:
;}
break;
- case 184:
-#line 1217 "perly.y"
+ case 186:
+#line 1229 "perly.y"
{ (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED,
scalar((ps[(1) - (1)].val.opval))); ;}
break;
- case 185:
-#line 1220 "perly.y"
+ case 187:
+#line 1232 "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);
@@ -1476,8 +1494,8 @@ case 2:
;}
break;
- case 186:
-#line 1229 "perly.y"
+ case 188:
+#line 1241 "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),'(');
@@ -1485,16 +1503,16 @@ case 2:
;}
break;
- case 187:
-#line 1235 "perly.y"
+ case 189:
+#line 1247 "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 190:
-#line 1242 "perly.y"
+ case 192:
+#line 1254 "perly.y"
{
(yyval.opval) = newLISTOP(OP_DIE, 0, newOP(OP_PUSHMARK, 0),
newSVOP(OP_CONST, 0, newSVpvs("Unimplemented")));
@@ -1502,8 +1520,8 @@ case 2:
;}
break;
- case 192:
-#line 1252 "perly.y"
+ case 194:
+#line 1264 "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');
@@ -1513,143 +1531,143 @@ case 2:
;}
break;
- case 193:
-#line 1260 "perly.y"
+ case 195:
+#line 1272 "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 194:
-#line 1267 "perly.y"
+ case 196:
+#line 1279 "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 195:
-#line 1272 "perly.y"
+ case 197:
+#line 1284 "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 196:
-#line 1277 "perly.y"
+ case 198:
+#line 1289 "perly.y"
{ (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
break;
- case 197:
-#line 1279 "perly.y"
+ case 199:
+#line 1291 "perly.y"
{ (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
break;
- case 198:
-#line 1281 "perly.y"
+ case 200:
+#line 1293 "perly.y"
{ (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
break;
- case 199:
-#line 1286 "perly.y"
+ case 201:
+#line 1298 "perly.y"
{ (yyval.opval) = (OP*)NULL; ;}
break;
- case 200:
-#line 1288 "perly.y"
+ case 202:
+#line 1300 "perly.y"
{ (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
break;
- case 201:
-#line 1292 "perly.y"
+ case 203:
+#line 1304 "perly.y"
{ (yyval.opval) = (OP*)NULL; ;}
break;
- case 202:
-#line 1294 "perly.y"
+ case 204:
+#line 1306 "perly.y"
{ (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
break;
- case 203:
-#line 1298 "perly.y"
+ case 205:
+#line 1310 "perly.y"
{ (yyval.i_tkval) = (ps[(1) - (1)].val.i_tkval); ;}
break;
- case 204:
-#line 1300 "perly.y"
+ case 206:
+#line 1312 "perly.y"
{ munge_qwlist_to_paren_list((ps[(1) - (1)].val.opval)); ;}
break;
- case 205:
-#line 1302 "perly.y"
+ case 207:
+#line 1314 "perly.y"
{ (yyval.i_tkval) = (ps[(3) - (3)].val.i_tkval); ;}
break;
- case 206:
-#line 1308 "perly.y"
+ case 208:
+#line 1320 "perly.y"
{ PL_parser->in_my = 0; (yyval.opval) = my((ps[(1) - (1)].val.opval)); ;}
break;
- case 207:
-#line 1312 "perly.y"
+ case 209:
+#line 1324 "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 208:
-#line 1318 "perly.y"
+ case 210:
+#line 1330 "perly.y"
{ (yyval.opval) = newSVREF((ps[(2) - (2)].val.opval));
TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'$');
;}
break;
- case 209:
-#line 1324 "perly.y"
+ case 211:
+#line 1336 "perly.y"
{ (yyval.opval) = newAVREF((ps[(2) - (2)].val.opval));
TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'@');
;}
break;
- case 210:
-#line 1330 "perly.y"
+ case 212:
+#line 1342 "perly.y"
{ (yyval.opval) = newHVREF((ps[(2) - (2)].val.opval));
TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'%');
;}
break;
- case 211:
-#line 1336 "perly.y"
+ case 213:
+#line 1348 "perly.y"
{ (yyval.opval) = newAVREF((ps[(2) - (2)].val.opval));
TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'l');
;}
break;
- case 212:
-#line 1342 "perly.y"
+ case 214:
+#line 1354 "perly.y"
{ (yyval.opval) = newGVREF(0,(ps[(2) - (2)].val.opval));
TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'*');
;}
break;
- case 213:
-#line 1349 "perly.y"
+ case 215:
+#line 1361 "perly.y"
{ (yyval.opval) = scalar((ps[(1) - (1)].val.opval)); ;}
break;
- case 214:
-#line 1351 "perly.y"
+ case 216:
+#line 1363 "perly.y"
{ (yyval.opval) = scalar((ps[(1) - (1)].val.opval)); ;}
break;
- case 215:
-#line 1353 "perly.y"
+ case 217:
+#line 1365 "perly.y"
{ (yyval.opval) = scope((ps[(1) - (1)].val.opval)); ;}
break;
- case 216:
-#line 1356 "perly.y"
+ case 218:
+#line 1368 "perly.y"
{ (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
break;