summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2015-10-02 17:19:22 +0100
committerDavid Mitchell <davem@iabyn.com>2015-10-02 17:23:23 +0100
commit5d051ee03641d21c898bf366fb1caee7baf7e646 (patch)
tree26fb55d97521454facd4b45552201c65c052d091
parent9ff1a054e52a031d80d4625192ca222e15bb9c69 (diff)
downloadperl-5d051ee03641d21c898bf366fb1caee7baf7e646.tar.gz
given(): remove support for lexical $_
There is dead code that used to allow my $_; ... given ($foo) { # lexical $_ aliased to $foo here } Now that lexical $_ has been removed, remove the code. I've left the signatures of the newFOO() functions unchanged; they just expect a target of 0 to always be passed now.
-rw-r--r--op.c11
-rw-r--r--perly.act847
-rw-r--r--perly.h64
-rw-r--r--perly.tab99
-rw-r--r--perly.y8
-rw-r--r--pp_ctl.c12
6 files changed, 524 insertions, 517 deletions
diff --git a/op.c b/op.c
index a6b361f546..399cf3024a 100644
--- a/op.c
+++ b/op.c
@@ -7452,9 +7452,10 @@ S_newGIVWHENOP(pTHX_ OP *cond, OP *block,
OP *o;
PERL_ARGS_ASSERT_NEWGIVWHENOP;
+ PERL_UNUSED_ARG(entertarg); /* used to indicate targ of lexical $_ */
enterop = S_alloc_LOGOP(aTHX_ enter_opcode, block, NULL);
- enterop->op_targ = ((entertarg == NOT_IN_PAD) ? 0 : entertarg);
+ enterop->op_targ = 0;
enterop->op_private = 0;
o = newUNOP(leave_opcode, 0, (OP *) enterop);
@@ -7573,8 +7574,7 @@ Constructs, checks, and returns an op tree expressing a C<given> block.
C<cond> supplies the expression that will be locally assigned to a lexical
variable, and C<block> supplies the body of the C<given> construct; they
are consumed by this function and become part of the constructed op tree.
-C<defsv_off> is the pad offset of the scalar lexical variable that will
-be affected. If it is 0, the global C<$_> will be used.
+C<defsv_off> must be zero (it used to identity the pad slot of lexical $_).
=cut
*/
@@ -7583,11 +7583,14 @@ OP *
Perl_newGIVENOP(pTHX_ OP *cond, OP *block, PADOFFSET defsv_off)
{
PERL_ARGS_ASSERT_NEWGIVENOP;
+ PERL_UNUSED_ARG(defsv_off);
+
+ assert(!defsv_off);
return newGIVWHENOP(
ref_array_or_hash(cond),
block,
OP_ENTERGIVEN, OP_LEAVEGIVEN,
- defsv_off);
+ 0);
}
/*
diff --git a/perly.act b/perly.act
index 70a1a4bdad..a636b74670 100644
--- a/perly.act
+++ b/perly.act
@@ -8,7 +8,7 @@ case 2:
#line 115 "perly.y"
{
parser->expect = XSTATE;
- ;}
+ }
break;
case 3:
@@ -17,14 +17,14 @@ case 2:
newPROG(block_end((ps[(3) - (4)].val.ival),(ps[(4) - (4)].val.opval)));
PL_compiling.cop_seq = 0;
(yyval.ival) = 0;
- ;}
+ }
break;
case 4:
#line 125 "perly.y"
{
parser->expect = XTERM;
- ;}
+ }
break;
case 5:
@@ -32,14 +32,14 @@ case 2:
{
PL_eval_root = (ps[(3) - (3)].val.opval);
(yyval.ival) = 0;
- ;}
+ }
break;
case 6:
#line 134 "perly.y"
{
parser->expect = XBLOCK;
- ;}
+ }
break;
case 7:
@@ -50,14 +50,14 @@ case 2:
(yyval.ival) = 0;
yyunlex();
parser->yychar = YYEOF;
- ;}
+ }
break;
case 8:
#line 146 "perly.y"
{
parser->expect = XSTATE;
- ;}
+ }
break;
case 9:
@@ -68,14 +68,14 @@ case 2:
(yyval.ival) = 0;
yyunlex();
parser->yychar = YYEOF;
- ;}
+ }
break;
case 10:
#line 158 "perly.y"
{
parser->expect = XSTATE;
- ;}
+ }
break;
case 11:
@@ -86,14 +86,14 @@ case 2:
(yyval.ival) = 0;
yyunlex();
parser->yychar = YYEOF;
- ;}
+ }
break;
case 12:
#line 170 "perly.y"
{
parser->expect = XSTATE;
- ;}
+ }
break;
case 13:
@@ -101,7 +101,7 @@ case 2:
{
PL_eval_root = (ps[(3) - (3)].val.opval);
(yyval.ival) = 0;
- ;}
+ }
break;
case 14:
@@ -109,7 +109,7 @@ case 2:
{ if (parser->copline > (line_t)(ps[(1) - (4)].val.ival))
parser->copline = (line_t)(ps[(1) - (4)].val.ival);
(yyval.opval) = block_end((ps[(2) - (4)].val.ival), (ps[(3) - (4)].val.opval));
- ;}
+ }
break;
case 15:
@@ -117,13 +117,13 @@ case 2:
{ if (parser->copline > (line_t)(ps[(1) - (7)].val.ival))
parser->copline = (line_t)(ps[(1) - (7)].val.ival);
(yyval.opval) = block_end((ps[(2) - (7)].val.ival), (ps[(5) - (7)].val.opval));
- ;}
+ }
break;
case 16:
#line 197 "perly.y"
{ (yyval.ival) = block_start(TRUE);
- parser->parsed_sub = 0; ;}
+ parser->parsed_sub = 0; }
break;
case 17:
@@ -131,18 +131,18 @@ case 2:
{ if (parser->copline > (line_t)(ps[(1) - (4)].val.ival))
parser->copline = (line_t)(ps[(1) - (4)].val.ival);
(yyval.opval) = block_end((ps[(2) - (4)].val.ival), (ps[(3) - (4)].val.opval));
- ;}
+ }
break;
case 18:
#line 209 "perly.y"
{ (yyval.ival) = block_start(FALSE);
- parser->parsed_sub = 0; ;}
+ parser->parsed_sub = 0; }
break;
case 19:
#line 215 "perly.y"
- { (yyval.opval) = (OP*)NULL; ;}
+ { (yyval.opval) = (OP*)NULL; }
break;
case 20:
@@ -151,12 +151,12 @@ case 2:
PL_pad_reset_pending = TRUE;
if ((ps[(1) - (2)].val.opval) && (ps[(2) - (2)].val.opval))
PL_hints |= HINT_BLOCK_SCOPE;
- ;}
+ }
break;
case 21:
#line 226 "perly.y"
- { (yyval.opval) = (OP*)NULL; ;}
+ { (yyval.opval) = (OP*)NULL; }
break;
case 22:
@@ -165,38 +165,38 @@ case 2:
PL_pad_reset_pending = TRUE;
if ((ps[(1) - (2)].val.opval) && (ps[(2) - (2)].val.opval))
PL_hints |= HINT_BLOCK_SCOPE;
- ;}
+ }
break;
case 23:
#line 237 "perly.y"
{
(yyval.opval) = (ps[(1) - (1)].val.opval) ? newSTATEOP(0, NULL, (ps[(1) - (1)].val.opval)) : NULL;
- ;}
+ }
break;
case 24:
#line 241 "perly.y"
- { (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
+ { (yyval.opval) = (ps[(1) - (1)].val.opval); }
break;
case 25:
#line 245 "perly.y"
{
(yyval.opval) = newSTATEOP(SVf_UTF8 * (ps[(1) - (2)].val.pval)[strlen((ps[(1) - (2)].val.pval))+1], (ps[(1) - (2)].val.pval), (ps[(2) - (2)].val.opval));
- ;}
+ }
break;
case 26:
#line 249 "perly.y"
{
(yyval.opval) = newSTATEOP(SVf_UTF8 * (ps[(1) - (2)].val.pval)[strlen((ps[(1) - (2)].val.pval))+1], (ps[(1) - (2)].val.pval), (ps[(2) - (2)].val.opval));
- ;}
+ }
break;
case 27:
#line 256 "perly.y"
- { (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
+ { (yyval.opval) = (ps[(1) - (1)].val.opval); }
break;
case 28:
@@ -209,7 +209,7 @@ case 2:
pad_add_weakref(fmtcv);
}
parser->parsed_sub = 1;
- ;}
+ }
break;
case 29:
@@ -234,7 +234,7 @@ case 2:
CvCLONE_on(PL_compcv);
parser->in_my = 0;
parser->in_my_stash = NULL;
- ;}
+ }
break;
case 30:
@@ -248,7 +248,7 @@ case 2:
(yyval.opval) = (OP*)NULL;
intro_my();
parser->parsed_sub = 1;
- ;}
+ }
break;
case 31:
@@ -273,7 +273,7 @@ case 2:
CvCLONE_on(PL_compcv);
parser->in_my = 0;
parser->in_my_stash = NULL;
- ;}
+ }
break;
case 32:
@@ -293,7 +293,7 @@ case 2:
(yyval.opval) = (OP*)NULL;
intro_my();
parser->parsed_sub = 1;
- ;}
+ }
break;
case 33:
@@ -303,12 +303,12 @@ case 2:
if ((ps[(2) - (4)].val.opval))
package_version((ps[(2) - (4)].val.opval));
(yyval.opval) = (OP*)NULL;
- ;}
+ }
break;
case 34:
#line 347 "perly.y"
- { CvSPECIAL_on(PL_compcv); /* It's a BEGIN {} */ ;}
+ { CvSPECIAL_on(PL_compcv); /* It's a BEGIN {} */ }
break;
case 35:
@@ -318,7 +318,7 @@ case 2:
utilize((ps[(1) - (7)].val.ival), (ps[(2) - (7)].val.ival), (ps[(4) - (7)].val.opval), (ps[(5) - (7)].val.opval), (ps[(6) - (7)].val.opval));
parser->parsed_sub = 1;
(yyval.opval) = (OP*)NULL;
- ;}
+ }
break;
case 36:
@@ -327,7 +327,7 @@ case 2:
(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)));
parser->copline = (line_t)(ps[(1) - (7)].val.ival);
- ;}
+ }
break;
case 37:
@@ -336,65 +336,59 @@ case 2:
(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)));
parser->copline = (line_t)(ps[(1) - (7)].val.ival);
- ;}
+ }
break;
case 38:
#line 368 "perly.y"
{
- const PADOFFSET offset = pad_findmy_pvs("$_", 0);
- (yyval.opval) = block_end((ps[(3) - (6)].val.ival),
- newGIVENOP((ps[(4) - (6)].val.opval), op_scope((ps[(6) - (6)].val.opval)),
- offset == NOT_IN_PAD
- || PAD_COMPNAME_FLAGS_isOUR(offset)
- ? 0
- : offset));
+ (yyval.opval) = block_end((ps[(3) - (6)].val.ival), newGIVENOP((ps[(4) - (6)].val.opval), op_scope((ps[(6) - (6)].val.opval)), 0));
parser->copline = (line_t)(ps[(1) - (6)].val.ival);
- ;}
+ }
break;
case 39:
-#line 379 "perly.y"
- { (yyval.opval) = block_end((ps[(3) - (6)].val.ival), newWHENOP((ps[(4) - (6)].val.opval), op_scope((ps[(6) - (6)].val.opval)))); ;}
+#line 373 "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 40:
-#line 381 "perly.y"
- { (yyval.opval) = newWHENOP(0, op_scope((ps[(2) - (2)].val.opval))); ;}
+#line 375 "perly.y"
+ { (yyval.opval) = newWHENOP(0, op_scope((ps[(2) - (2)].val.opval))); }
break;
case 41:
-#line 383 "perly.y"
+#line 377 "perly.y"
{
(yyval.opval) = block_end((ps[(3) - (8)].val.ival),
newWHILEOP(0, 1, (LOOP*)(OP*)NULL,
(ps[(4) - (8)].val.opval), (ps[(7) - (8)].val.opval), (ps[(8) - (8)].val.opval), (ps[(6) - (8)].val.ival)));
parser->copline = (line_t)(ps[(1) - (8)].val.ival);
- ;}
+ }
break;
case 42:
-#line 390 "perly.y"
+#line 384 "perly.y"
{
(yyval.opval) = block_end((ps[(3) - (8)].val.ival),
newWHILEOP(0, 1, (LOOP*)(OP*)NULL,
(ps[(4) - (8)].val.opval), (ps[(7) - (8)].val.opval), (ps[(8) - (8)].val.opval), (ps[(6) - (8)].val.ival)));
parser->copline = (line_t)(ps[(1) - (8)].val.ival);
- ;}
+ }
break;
case 43:
-#line 397 "perly.y"
- { parser->expect = XTERM; ;}
+#line 391 "perly.y"
+ { parser->expect = XTERM; }
break;
case 44:
-#line 399 "perly.y"
- { parser->expect = XTERM; ;}
+#line 393 "perly.y"
+ { parser->expect = XTERM; }
break;
case 45:
-#line 402 "perly.y"
+#line 396 "perly.y"
{
OP *initop = (ps[(4) - (13)].val.opval);
OP *forop = newWHILEOP(0, 1, (LOOP*)(OP*)NULL,
@@ -408,33 +402,33 @@ case 2:
PL_hints |= HINT_BLOCK_SCOPE;
(yyval.opval) = block_end((ps[(3) - (13)].val.ival), forop);
parser->copline = (line_t)(ps[(1) - (13)].val.ival);
- ;}
+ }
break;
case 46:
-#line 417 "perly.y"
+#line 411 "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)));
parser->copline = (line_t)(ps[(1) - (9)].val.ival);
- ;}
+ }
break;
case 47:
-#line 422 "perly.y"
+#line 416 "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)));
parser->copline = (line_t)(ps[(1) - (8)].val.ival);
- ;}
+ }
break;
case 48:
-#line 428 "perly.y"
- { parser->in_my = 0; (yyval.opval) = my((ps[(5) - (5)].val.opval)); ;}
+#line 422 "perly.y"
+ { parser->in_my = 0; (yyval.opval) = my((ps[(5) - (5)].val.opval)); }
break;
case 49:
-#line 430 "perly.y"
+#line 424 "perly.y"
{
(yyval.opval) = block_end(
(ps[(4) - (11)].val.ival),
@@ -446,76 +440,76 @@ case 2:
(ps[(8) - (11)].val.opval), (ps[(10) - (11)].val.opval), (ps[(11) - (11)].val.opval))
);
parser->copline = (line_t)(ps[(1) - (11)].val.ival);
- ;}
+ }
break;
case 50:
-#line 443 "perly.y"
+#line 437 "perly.y"
{
(yyval.opval) = block_end((ps[(5) - (9)].val.ival), newFOROP(
0, op_lvalue(newUNOP(OP_REFGEN, 0,
(ps[(3) - (9)].val.opval)),
OP_ENTERLOOP), (ps[(6) - (9)].val.opval), (ps[(8) - (9)].val.opval), (ps[(9) - (9)].val.opval)));
parser->copline = (line_t)(ps[(1) - (9)].val.ival);
- ;}
+ }
break;
case 51:
-#line 451 "perly.y"
+#line 445 "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)));
parser->copline = (line_t)(ps[(1) - (7)].val.ival);
- ;}
+ }
break;
case 52:
-#line 457 "perly.y"
+#line 451 "perly.y"
{
/* a block is a loop that happens once */
(yyval.opval) = newWHILEOP(0, 1, (LOOP*)(OP*)NULL,
(OP*)NULL, (ps[(1) - (2)].val.opval), (ps[(2) - (2)].val.opval), 0);
- ;}
+ }
break;
case 53:
-#line 463 "perly.y"
+#line 457 "perly.y"
{
package((ps[(3) - (5)].val.opval));
if ((ps[(2) - (5)].val.opval)) {
package_version((ps[(2) - (5)].val.opval));
}
- ;}
+ }
break;
case 54:
-#line 470 "perly.y"
+#line 464 "perly.y"
{
/* a block is a loop that happens once */
(yyval.opval) = newWHILEOP(0, 1, (LOOP*)(OP*)NULL,
(OP*)NULL, block_end((ps[(5) - (8)].val.ival), (ps[(7) - (8)].val.opval)), (OP*)NULL, 0);
if (parser->copline > (line_t)(ps[(4) - (8)].val.ival))
parser->copline = (line_t)(ps[(4) - (8)].val.ival);
- ;}
+ }
break;
case 55:
-#line 478 "perly.y"
+#line 472 "perly.y"
{
(yyval.opval) = (ps[(1) - (2)].val.opval);
- ;}
+ }
break;
case 56:
-#line 482 "perly.y"
+#line 476 "perly.y"
{
(yyval.opval) = (OP*)NULL;
parser->copline = NOLINE;
- ;}
+ }
break;
case 57:
-#line 490 "perly.y"
+#line 484 "perly.y"
{ OP *list;
if ((ps[(2) - (2)].val.opval)) {
OP *term = (ps[(2) - (2)].val.opval);
@@ -529,192 +523,192 @@ case 2:
else parser->copline--;
(yyval.opval) = newSTATEOP(0, NULL,
op_convert_list(OP_FORMLINE, 0, list));
- ;}
+ }
break;
case 58:
-#line 507 "perly.y"
- { (yyval.opval) = NULL; ;}
+#line 501 "perly.y"
+ { (yyval.opval) = NULL; }
break;
case 59:
-#line 509 "perly.y"
- { (yyval.opval) = op_unscope((ps[(2) - (3)].val.opval)); ;}
+#line 503 "perly.y"
+ { (yyval.opval) = op_unscope((ps[(2) - (3)].val.opval)); }
break;
case 60:
-#line 514 "perly.y"
- { (yyval.opval) = (OP*)NULL; ;}
+#line 508 "perly.y"
+ { (yyval.opval) = (OP*)NULL; }
break;
case 61:
-#line 516 "perly.y"
- { (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
+#line 510 "perly.y"
+ { (yyval.opval) = (ps[(1) - (1)].val.opval); }
break;
case 62:
-#line 518 "perly.y"
- { (yyval.opval) = newLOGOP(OP_AND, 0, (ps[(3) - (3)].val.opval), (ps[(1) - (3)].val.opval)); ;}
+#line 512 "perly.y"
+ { (yyval.opval) = newLOGOP(OP_AND, 0, (ps[(3) - (3)].val.opval), (ps[(1) - (3)].val.opval)); }
break;
case 63:
-#line 520 "perly.y"
- { (yyval.opval) = newLOGOP(OP_OR, 0, (ps[(3) - (3)].val.opval), (ps[(1) - (3)].val.opval)); ;}
+#line 514 "perly.y"
+ { (yyval.opval) = newLOGOP(OP_OR, 0, (ps[(3) - (3)].val.opval), (ps[(1) - (3)].val.opval)); }
break;
case 64:
-#line 522 "perly.y"
- { (yyval.opval) = newLOOPOP(OPf_PARENS, 1, scalar((ps[(3) - (3)].val.opval)), (ps[(1) - (3)].val.opval)); ;}
+#line 516 "perly.y"
+ { (yyval.opval) = newLOOPOP(OPf_PARENS, 1, scalar((ps[(3) - (3)].val.opval)), (ps[(1) - (3)].val.opval)); }
break;
case 65:
-#line 524 "perly.y"
- { (yyval.opval) = newLOOPOP(OPf_PARENS, 1, (ps[(3) - (3)].val.opval), (ps[(1) - (3)].val.opval)); ;}
+#line 518 "perly.y"
+ { (yyval.opval) = newLOOPOP(OPf_PARENS, 1, (ps[(3) - (3)].val.opval), (ps[(1) - (3)].val.opval)); }
break;
case 66:
-#line 526 "perly.y"
+#line 520 "perly.y"
{ (yyval.opval) = newFOROP(0, (OP*)NULL, (ps[(3) - (3)].val.opval), (ps[(1) - (3)].val.opval), (OP*)NULL);
- parser->copline = (line_t)(ps[(2) - (3)].val.ival); ;}
+ parser->copline = (line_t)(ps[(2) - (3)].val.ival); }
break;
case 67:
-#line 529 "perly.y"
- { (yyval.opval) = newWHENOP((ps[(3) - (3)].val.opval), op_scope((ps[(1) - (3)].val.opval))); ;}
+#line 523 "perly.y"
+ { (yyval.opval) = newWHENOP((ps[(3) - (3)].val.opval), op_scope((ps[(1) - (3)].val.opval))); }
break;
case 68:
-#line 534 "perly.y"
- { (yyval.opval) = (OP*)NULL; ;}
+#line 528 "perly.y"
+ { (yyval.opval) = (OP*)NULL; }
break;
case 69:
-#line 536 "perly.y"
+#line 530 "perly.y"
{
((ps[(2) - (2)].val.opval))->op_flags |= OPf_PARENS;
(yyval.opval) = op_scope((ps[(2) - (2)].val.opval));
- ;}
+ }
break;
case 70:
-#line 541 "perly.y"
+#line 535 "perly.y"
{ parser->copline = (line_t)(ps[(1) - (6)].val.ival);
(yyval.opval) = newCONDOP(0,
newSTATEOP(OPf_SPECIAL,NULL,(ps[(3) - (6)].val.opval)),
op_scope((ps[(5) - (6)].val.opval)), (ps[(6) - (6)].val.opval));
PL_hints |= HINT_BLOCK_SCOPE;
- ;}
+ }
break;
case 71:
-#line 551 "perly.y"
- { (yyval.opval) = (OP*)NULL; ;}
+#line 545 "perly.y"
+ { (yyval.opval) = (OP*)NULL; }
break;
case 72:
-#line 553 "perly.y"
- { (yyval.opval) = op_scope((ps[(2) - (2)].val.opval)); ;}
+#line 547 "perly.y"
+ { (yyval.opval) = op_scope((ps[(2) - (2)].val.opval)); }
break;
case 73:
-#line 558 "perly.y"
+#line 552 "perly.y"
{ (yyval.ival) = (PL_min_intro_pending &&
PL_max_intro_pending >= PL_min_intro_pending);
- intro_my(); ;}
+ intro_my(); }
break;
case 74:
-#line 564 "perly.y"
- { (yyval.opval) = (OP*)NULL; ;}
+#line 558 "perly.y"
+ { (yyval.opval) = (OP*)NULL; }
break;
case 76:
-#line 570 "perly.y"
+#line 564 "perly.y"
{ YYSTYPE tmplval;
(void)scan_num("1", &tmplval);
- (yyval.opval) = tmplval.opval; ;}
+ (yyval.opval) = tmplval.opval; }
break;
case 78:
-#line 578 "perly.y"
- { (yyval.opval) = invert(scalar((ps[(1) - (1)].val.opval))); ;}
+#line 572 "perly.y"
+ { (yyval.opval) = invert(scalar((ps[(1) - (1)].val.opval))); }
break;
case 79:
-#line 583 "perly.y"
- { (yyval.opval) = (ps[(1) - (1)].val.opval); intro_my(); ;}
+#line 577 "perly.y"
+ { (yyval.opval) = (ps[(1) - (1)].val.opval); intro_my(); }
break;
case 80:
-#line 587 "perly.y"
- { (yyval.opval) = (ps[(1) - (1)].val.opval); intro_my(); ;}
+#line 581 "perly.y"
+ { (yyval.opval) = (ps[(1) - (1)].val.opval); intro_my(); }
break;
case 81:
-#line 591 "perly.y"
- { (yyval.opval) = (ps[(1) - (1)].val.opval); intro_my(); ;}
+#line 585 "perly.y"
+ { (yyval.opval) = (ps[(1) - (1)].val.opval); intro_my(); }
break;
case 82:
-#line 594 "perly.y"
- { (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
+#line 588 "perly.y"
+ { (yyval.opval) = (ps[(1) - (1)].val.opval); }
break;
case 83:
-#line 595 "perly.y"
- { (yyval.opval) = (OP*)NULL; ;}
+#line 589 "perly.y"
+ { (yyval.opval) = (OP*)NULL; }
break;
case 84:
-#line 599 "perly.y"
+#line 593 "perly.y"
{ (yyval.ival) = start_subparse(FALSE, 0);
- SAVEFREESV(PL_compcv); ;}
+ SAVEFREESV(PL_compcv); }
break;
case 85:
-#line 605 "perly.y"
+#line 599 "perly.y"
{ (yyval.ival) = start_subparse(FALSE, CVf_ANON);
- SAVEFREESV(PL_compcv); ;}
+ SAVEFREESV(PL_compcv); }
break;
case 86:
-#line 610 "perly.y"
+#line 604 "perly.y"
{ (yyval.ival) = start_subparse(TRUE, 0);
- SAVEFREESV(PL_compcv); ;}
+ SAVEFREESV(PL_compcv); }
break;
case 89:
-#line 621 "perly.y"
- { (yyval.opval) = (OP*)NULL; ;}
+#line 615 "perly.y"
+ { (yyval.opval) = (OP*)NULL; }
break;
case 91:
-#line 627 "perly.y"
- { (yyval.opval) = (OP*)NULL; ;}
+#line 621 "perly.y"
+ { (yyval.opval) = (OP*)NULL; }
break;
case 92:
-#line 629 "perly.y"
- { (yyval.opval) = (ps[(2) - (2)].val.opval); ;}
+#line 623 "perly.y"
+ { (yyval.opval) = (ps[(2) - (2)].val.opval); }
break;
case 93:
-#line 631 "perly.y"
- { (yyval.opval) = (OP*)NULL; ;}
+#line 625 "perly.y"
+ { (yyval.opval) = (OP*)NULL; }
break;
case 94:
-#line 636 "perly.y"
- { (yyval.opval) = (ps[(2) - (2)].val.opval); ;}
+#line 630 "perly.y"
+ { (yyval.opval) = (ps[(2) - (2)].val.opval); }
break;
case 95:
-#line 638 "perly.y"
- { (yyval.opval) = (OP*)NULL; ;}
+#line 632 "perly.y"
+ { (yyval.opval) = (OP*)NULL; }
break;
case 96:
-#line 643 "perly.y"
+#line 637 "perly.y"
{
/* We shouldn't get here otherwise */
assert(FEATURE_SIGNATURES_IS_ENABLED);
@@ -723,319 +717,319 @@ case 2:
packWARN(WARN_EXPERIMENTAL__SIGNATURES),
"The signatures feature is experimental");
(yyval.opval) = parse_subsignature();
- ;}
+ }
break;
case 97:
-#line 653 "perly.y"
+#line 647 "perly.y"
{
(yyval.opval) = op_append_list(OP_LINESEQ, (ps[(2) - (3)].val.opval),
newSTATEOP(0, NULL, sawparens(newNULLLIST())));
parser->expect = XATTRBLOCK;
- ;}
+ }
break;
case 99:
-#line 662 "perly.y"
- { (yyval.opval) = (OP*)NULL; ;}
+#line 656 "perly.y"
+ { (yyval.opval) = (OP*)NULL; }
break;
case 100:
-#line 667 "perly.y"
- { (yyval.opval) = newLOGOP(OP_AND, 0, (ps[(1) - (3)].val.opval), (ps[(3) - (3)].val.opval)); ;}
+#line 661 "perly.y"
+ { (yyval.opval) = newLOGOP(OP_AND, 0, (ps[(1) - (3)].val.opval), (ps[(3) - (3)].val.opval)); }
break;
case 101:
-#line 669 "perly.y"
- { (yyval.opval) = newLOGOP((ps[(2) - (3)].val.ival), 0, (ps[(1) - (3)].val.opval), (ps[(3) - (3)].val.opval)); ;}
+#line 663 "perly.y"
+ { (yyval.opval) = newLOGOP((ps[(2) - (3)].val.ival), 0, (ps[(1) - (3)].val.opval), (ps[(3) - (3)].val.opval)); }
break;
case 102:
-#line 671 "perly.y"
- { (yyval.opval) = newLOGOP(OP_DOR, 0, (ps[(1) - (3)].val.opval), (ps[(3) - (3)].val.opval)); ;}
+#line 665 "perly.y"
+ { (yyval.opval) = newLOGOP(OP_DOR, 0, (ps[(1) - (3)].val.opval), (ps[(3) - (3)].val.opval)); }
break;
case 104:
-#line 677 "perly.y"
- { (yyval.opval) = (ps[(1) - (2)].val.opval); ;}
+#line 671 "perly.y"
+ { (yyval.opval) = (ps[(1) - (2)].val.opval); }
break;
case 105:
-#line 679 "perly.y"
+#line 673 "perly.y"
{
OP* term = (ps[(3) - (3)].val.opval);
(yyval.opval) = op_append_elem(OP_LIST, (ps[(1) - (3)].val.opval), term);
- ;}
+ }
break;
case 107:
-#line 688 "perly.y"
+#line 682 "perly.y"
{ (yyval.opval) = op_convert_list((ps[(1) - (3)].val.ival), OPf_STACKED,
op_prepend_elem(OP_LIST, newGVREF((ps[(1) - (3)].val.ival),(ps[(2) - (3)].val.opval)), (ps[(3) - (3)].val.opval)) );
- ;}
+ }
break;
case 108:
-#line 692 "perly.y"
+#line 686 "perly.y"
{ (yyval.opval) = op_convert_list((ps[(1) - (5)].val.ival), OPf_STACKED,
op_prepend_elem(OP_LIST, newGVREF((ps[(1) - (5)].val.ival),(ps[(3) - (5)].val.opval)), (ps[(4) - (5)].val.opval)) );
- ;}
+ }
break;
case 109:
-#line 696 "perly.y"
+#line 690 "perly.y"
{ (yyval.opval) = op_convert_list(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)),
newMETHOP(OP_METHOD, 0, (ps[(3) - (6)].val.opval))));
- ;}
+ }
break;
case 110:
-#line 702 "perly.y"
+#line 696 "perly.y"
{ (yyval.opval) = op_convert_list(OP_ENTERSUB, OPf_STACKED,
op_append_elem(OP_LIST, scalar((ps[(1) - (3)].val.opval)),
newMETHOP(OP_METHOD, 0, (ps[(3) - (3)].val.opval))));
- ;}
+ }
break;
case 111:
-#line 707 "perly.y"
+#line 701 "perly.y"
{ (yyval.opval) = op_convert_list(OP_ENTERSUB, OPf_STACKED,
op_append_elem(OP_LIST,
op_prepend_elem(OP_LIST, (ps[(2) - (3)].val.opval), (ps[(3) - (3)].val.opval)),
newMETHOP(OP_METHOD, 0, (ps[(1) - (3)].val.opval))));
- ;}
+ }
break;
case 112:
-#line 713 "perly.y"
+#line 707 "perly.y"
{ (yyval.opval) = op_convert_list(OP_ENTERSUB, OPf_STACKED,
op_append_elem(OP_LIST,
op_prepend_elem(OP_LIST, (ps[(2) - (5)].val.opval), (ps[(4) - (5)].val.opval)),
newMETHOP(OP_METHOD, 0, (ps[(1) - (5)].val.opval))));
- ;}
+ }
break;
case 113:
-#line 719 "perly.y"
- { (yyval.opval) = op_convert_list((ps[(1) - (2)].val.ival), 0, (ps[(2) - (2)].val.opval)); ;}
+#line 713 "perly.y"
+ { (yyval.opval) = op_convert_list((ps[(1) - (2)].val.ival), 0, (ps[(2) - (2)].val.opval)); }
break;
case 114:
-#line 721 "perly.y"
- { (yyval.opval) = op_convert_list((ps[(1) - (4)].val.ival), 0, (ps[(3) - (4)].val.opval)); ;}
+#line 715 "perly.y"
+ { (yyval.opval) = op_convert_list((ps[(1) - (4)].val.ival), 0, (ps[(3) - (4)].val.opval)); }
break;
case 115:
-#line 723 "perly.y"
+#line 717 "perly.y"
{ SvREFCNT_inc_simple_void(PL_compcv);
- (yyval.opval) = newANONATTRSUB((ps[(2) - (3)].val.ival), 0, (OP*)NULL, (ps[(3) - (3)].val.opval)); ;}
+ (yyval.opval) = newANONATTRSUB((ps[(2) - (3)].val.ival), 0, (OP*)NULL, (ps[(3) - (3)].val.opval)); }
break;
case 116:
-#line 726 "perly.y"
+#line 720 "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 119:
-#line 741 "perly.y"
- { (yyval.opval) = newBINOP(OP_GELEM, 0, (ps[(1) - (5)].val.opval), scalar((ps[(3) - (5)].val.opval))); ;}
+#line 735 "perly.y"
+ { (yyval.opval) = newBINOP(OP_GELEM, 0, (ps[(1) - (5)].val.opval), scalar((ps[(3) - (5)].val.opval))); }
break;
case 120:
-#line 743 "perly.y"
+#line 737 "perly.y"
{ (yyval.opval) = newBINOP(OP_AELEM, 0, oopsAV((ps[(1) - (4)].val.opval)), scalar((ps[(3) - (4)].val.opval)));
- ;}
+ }
break;
case 121:
-#line 746 "perly.y"
+#line 740 "perly.y"
{ (yyval.opval) = newBINOP(OP_AELEM, 0,
ref(newAVREF((ps[(1) - (5)].val.opval)),OP_RV2AV),
scalar((ps[(4) - (5)].val.opval)));
- ;}
+ }
break;
case 122:
-#line 751 "perly.y"
+#line 745 "perly.y"
{ (yyval.opval) = newBINOP(OP_AELEM, 0,
ref(newAVREF((ps[(1) - (4)].val.opval)),OP_RV2AV),
scalar((ps[(3) - (4)].val.opval)));
- ;}
+ }
break;
case 123:
-#line 756 "perly.y"
+#line 750 "perly.y"
{ (yyval.opval) = newBINOP(OP_HELEM, 0, oopsHV((ps[(1) - (5)].val.opval)), jmaybe((ps[(3) - (5)].val.opval)));
- ;}
+ }
break;
case 124:
-#line 759 "perly.y"
+#line 753 "perly.y"
{ (yyval.opval) = newBINOP(OP_HELEM, 0,
ref(newHVREF((ps[(1) - (6)].val.opval)),OP_RV2HV),
- jmaybe((ps[(4) - (6)].val.opval))); ;}
+ jmaybe((ps[(4) - (6)].val.opval))); }
break;
case 125:
-#line 763 "perly.y"
+#line 757 "perly.y"
{ (yyval.opval) = newBINOP(OP_HELEM, 0,
ref(newHVREF((ps[(1) - (5)].val.opval)),OP_RV2HV),
- jmaybe((ps[(3) - (5)].val.opval))); ;}
+ jmaybe((ps[(3) - (5)].val.opval))); }
break;
case 126:
-#line 767 "perly.y"
+#line 761 "perly.y"
{ (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED,
- newCVREF(0, scalar((ps[(1) - (4)].val.opval)))); ;}
+ newCVREF(0, scalar((ps[(1) - (4)].val.opval)))); }
break;
case 127:
-#line 770 "perly.y"
+#line 764 "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))))); ;}
+ newCVREF(0, scalar((ps[(1) - (5)].val.opval))))); }
break;
case 128:
-#line 775 "perly.y"
+#line 769 "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))))); ;}
+ newCVREF(0, scalar((ps[(1) - (4)].val.opval))))); }
break;
case 129:
-#line 779 "perly.y"
+#line 773 "perly.y"
{ (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED,
- newCVREF(0, scalar((ps[(1) - (3)].val.opval)))); ;}
+ newCVREF(0, scalar((ps[(1) - (3)].val.opval)))); }
break;
case 130:
-#line 782 "perly.y"
- { (yyval.opval) = newSLICEOP(0, (ps[(5) - (6)].val.opval), (ps[(2) - (6)].val.opval)); ;}
+#line 776 "perly.y"
+ { (yyval.opval) = newSLICEOP(0, (ps[(5) - (6)].val.opval), (ps[(2) - (6)].val.opval)); }
break;
case 131:
-#line 784 "perly.y"
- { (yyval.opval) = newSLICEOP(0, (ps[(3) - (4)].val.opval), (ps[(1) - (4)].val.opval)); ;}
+#line 778 "perly.y"
+ { (yyval.opval) = newSLICEOP(0, (ps[(3) - (4)].val.opval), (ps[(1) - (4)].val.opval)); }
break;
case 132:
-#line 786 "perly.y"
- { (yyval.opval) = newSLICEOP(0, (ps[(4) - (5)].val.opval), (OP*)NULL); ;}
+#line 780 "perly.y"
+ { (yyval.opval) = newSLICEOP(0, (ps[(4) - (5)].val.opval), (OP*)NULL); }
break;
case 133:
-#line 791 "perly.y"
- { (yyval.opval) = newASSIGNOP(OPf_STACKED, (ps[(1) - (3)].val.opval), (ps[(2) - (3)].val.ival), (ps[(3) - (3)].val.opval)); ;}
+#line 785 "perly.y"
+ { (yyval.opval) = newASSIGNOP(OPf_STACKED, (ps[(1) - (3)].val.opval), (ps[(2) - (3)].val.ival), (ps[(3) - (3)].val.opval)); }
break;
case 134:
-#line 793 "perly.y"
- { (yyval.opval) = newBINOP((ps[(2) - (3)].val.ival), 0, scalar((ps[(1) - (3)].val.opval)), scalar((ps[(3) - (3)].val.opval))); ;}
+#line 787 "perly.y"
+ { (yyval.opval) = newBINOP((ps[(2) - (3)].val.ival), 0, scalar((ps[(1) - (3)].val.opval)), scalar((ps[(3) - (3)].val.opval))); }
break;
case 135:
-#line 795 "perly.y"
+#line 789 "perly.y"
{ if ((ps[(2) - (3)].val.ival) != OP_REPEAT)
scalar((ps[(1) - (3)].val.opval));
(yyval.opval) = newBINOP((ps[(2) - (3)].val.ival), 0, (ps[(1) - (3)].val.opval), scalar((ps[(3) - (3)].val.opval)));
- ;}
+ }
break;
case 136:
-#line 800 "perly.y"
- { (yyval.opval) = newBINOP((ps[(2) - (3)].val.ival), 0, scalar((ps[(1) - (3)].val.opval)), scalar((ps[(3) - (3)].val.opval))); ;}
+#line 794 "perly.y"
+ { (yyval.opval) = newBINOP((ps[(2) - (3)].val.ival), 0, scalar((ps[(1) - (3)].val.opval)), scalar((ps[(3) - (3)].val.opval))); }
break;
case 137:
-#line 802 "perly.y"
- { (yyval.opval) = newBINOP((ps[(2) - (3)].val.ival), 0, scalar((ps[(1) - (3)].val.opval)), scalar((ps[(3) - (3)].val.opval))); ;}
+#line 796 "perly.y"
+ { (yyval.opval) = newBINOP((ps[(2) - (3)].val.ival), 0, scalar((ps[(1) - (3)].val.opval)), scalar((ps[(3) - (3)].val.opval))); }
break;
case 138:
-#line 804 "perly.y"
- { (yyval.opval) = newBINOP((ps[(2) - (3)].val.ival), 0, scalar((ps[(1) - (3)].val.opval)), scalar((ps[(3) - (3)].val.opval))); ;}
+#line 798 "perly.y"
+ { (yyval.opval) = newBINOP((ps[(2) - (3)].val.ival), 0, scalar((ps[(1) - (3)].val.opval)), scalar((ps[(3) - (3)].val.opval))); }
break;
case 139:
-#line 806 "perly.y"
- { (yyval.opval) = newBINOP((ps[(2) - (3)].val.ival), 0, scalar((ps[(1) - (3)].val.opval)), scalar((ps[(3) - (3)].val.opval))); ;}
+#line 800 "perly.y"
+ { (yyval.opval) = newBINOP((ps[(2) - (3)].val.ival), 0, scalar((ps[(1) - (3)].val.opval)), scalar((ps[(3) - (3)].val.opval))); }
break;
case 140:
-#line 808 "perly.y"
- { (yyval.opval) = newBINOP((ps[(2) - (3)].val.ival), 0, scalar((ps[(1) - (3)].val.opval)), scalar((ps[(3) - (3)].val.opval))); ;}
+#line 802 "perly.y"
+ { (yyval.opval) = newBINOP((ps[(2) - (3)].val.ival), 0, scalar((ps[(1) - (3)].val.opval)), scalar((ps[(3) - (3)].val.opval))); }
break;
case 141:
-#line 810 "perly.y"
- { (yyval.opval) = newBINOP((ps[(2) - (3)].val.ival), 0, scalar((ps[(1) - (3)].val.opval)), scalar((ps[(3) - (3)].val.opval))); ;}
+#line 804 "perly.y"
+ { (yyval.opval) = newBINOP((ps[(2) - (3)].val.ival), 0, scalar((ps[(1) - (3)].val.opval)), scalar((ps[(3) - (3)].val.opval))); }
break;
case 142:
-#line 812 "perly.y"
- { (yyval.opval) = newRANGE((ps[(2) - (3)].val.ival), scalar((ps[(1) - (3)].val.opval)), scalar((ps[(3) - (3)].val.opval))); ;}
+#line 806 "perly.y"
+ { (yyval.opval) = newRANGE((ps[(2) - (3)].val.ival), scalar((ps[(1) - (3)].val.opval)), scalar((ps[(3) - (3)].val.opval))); }
break;
case 143:
-#line 814 "perly.y"
- { (yyval.opval) = newLOGOP(OP_AND, 0, (ps[(1) - (3)].val.opval), (ps[(3) - (3)].val.opval)); ;}
+#line 808 "perly.y"
+ { (yyval.opval) = newLOGOP(OP_AND, 0, (ps[(1) - (3)].val.opval), (ps[(3) - (3)].val.opval)); }
break;
case 144:
-#line 816 "perly.y"
- { (yyval.opval) = newLOGOP(OP_OR, 0, (ps[(1) - (3)].val.opval), (ps[(3) - (3)].val.opval)); ;}
+#line 810 "perly.y"
+ { (yyval.opval) = newLOGOP(OP_OR, 0, (ps[(1) - (3)].val.opval), (ps[(3) - (3)].val.opval)); }
break;
case 145:
-#line 818 "perly.y"
- { (yyval.opval) = newLOGOP(OP_DOR, 0, (ps[(1) - (3)].val.opval), (ps[(3) - (3)].val.opval)); ;}
+#line 812 "perly.y"
+ { (yyval.opval) = newLOGOP(OP_DOR, 0, (ps[(1) - (3)].val.opval), (ps[(3) - (3)].val.opval)); }
break;
case 146:
-#line 820 "perly.y"
- { (yyval.opval) = bind_match((ps[(2) - (3)].val.ival), (ps[(1) - (3)].val.opval), (ps[(3) - (3)].val.opval)); ;}
+#line 814 "perly.y"
+ { (yyval.opval) = bind_match((ps[(2) - (3)].val.ival), (ps[(1) - (3)].val.opval), (ps[(3) - (3)].val.opval)); }
break;
case 147:
-#line 825 "perly.y"
- { (yyval.opval) = newUNOP(OP_NEGATE, 0, scalar((ps[(2) - (2)].val.opval))); ;}
+#line 819 "perly.y"
+ { (yyval.opval) = newUNOP(OP_NEGATE, 0, scalar((ps[(2) - (2)].val.opval))); }
break;
case 148:
-#line 827 "perly.y"
- { (yyval.opval) = (ps[(2) - (2)].val.opval); ;}
+#line 821 "perly.y"
+ { (yyval.opval) = (ps[(2) - (2)].val.opval); }
break;
case 149:
-#line 830 "perly.y"
- { (yyval.opval) = newUNOP(OP_NOT, 0, scalar((ps[(2) - (2)].val.opval))); ;}
+#line 824 "perly.y"
+ { (yyval.opval) = newUNOP(OP_NOT, 0, scalar((ps[(2) - (2)].val.opval))); }
break;
case 150:
-#line 832 "perly.y"
- { (yyval.opval) = newUNOP((ps[(1) - (2)].val.ival), 0, scalar((ps[(2) - (2)].val.opval))); ;}
+#line 826 "perly.y"
+ { (yyval.opval) = newUNOP((ps[(1) - (2)].val.ival), 0, scalar((ps[(2) - (2)].val.opval))); }
break;
case 151:
-#line 834 "perly.y"
+#line 828 "perly.y"
{ (yyval.opval) = newUNOP(OP_POSTINC, 0,
- op_lvalue(scalar((ps[(1) - (2)].val.opval)), OP_POSTINC)); ;}
+ op_lvalue(scalar((ps[(1) - (2)].val.opval)), OP_POSTINC)); }
break;
case 152:
-#line 837 "perly.y"
+#line 831 "perly.y"
{ (yyval.opval) = newUNOP(OP_POSTDEC, 0,
- op_lvalue(scalar((ps[(1) - (2)].val.opval)), OP_POSTDEC));;}
+ op_lvalue(scalar((ps[(1) - (2)].val.opval)), OP_POSTDEC));}
break;
case 153:
-#line 840 "perly.y"
+#line 834 "perly.y"
{ (yyval.opval) = op_convert_list(OP_JOIN, 0,
op_append_elem(
OP_LIST,
@@ -1045,49 +1039,49 @@ case 2:
)),
(ps[(1) - (2)].val.opval)
));
- ;}
+ }
break;
case 154:
-#line 851 "perly.y"
+#line 845 "perly.y"
{ (yyval.opval) = newUNOP(OP_PREINC, 0,
- op_lvalue(scalar((ps[(2) - (2)].val.opval)), OP_PREINC)); ;}
+ op_lvalue(scalar((ps[(2) - (2)].val.opval)), OP_PREINC)); }
break;
case 155:
-#line 854 "perly.y"
+#line 848 "perly.y"
{ (yyval.opval) = newUNOP(OP_PREDEC, 0,
- op_lvalue(scalar((ps[(2) - (2)].val.opval)), OP_PREDEC)); ;}
+ op_lvalue(scalar((ps[(2) - (2)].val.opval)), OP_PREDEC)); }
break;
case 156:
-#line 861 "perly.y"
- { (yyval.opval) = newANONLIST((ps[(2) - (3)].val.opval)); ;}
+#line 855 "perly.y"
+ { (yyval.opval) = newANONLIST((ps[(2) - (3)].val.opval)); }
break;
case 157:
-#line 863 "perly.y"
- { (yyval.opval) = newANONLIST((OP*)NULL);;}
+#line 857 "perly.y"
+ { (yyval.opval) = newANONLIST((OP*)NULL);}
break;
case 158:
-#line 865 "perly.y"
- { (yyval.opval) = newANONHASH((ps[(2) - (4)].val.opval)); ;}
+#line 859 "perly.y"
+ { (yyval.opval) = newANONHASH((ps[(2) - (4)].val.opval)); }
break;
case 159:
-#line 867 "perly.y"
- { (yyval.opval) = newANONHASH((OP*)NULL); ;}
+#line 861 "perly.y"
+ { (yyval.opval) = newANONHASH((OP*)NULL); }
break;
case 160:
-#line 869 "perly.y"
+#line 863 "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)); ;}
+ (yyval.opval) = newANONATTRSUB((ps[(2) - (5)].val.ival), (ps[(3) - (5)].val.opval), (ps[(4) - (5)].val.opval), (ps[(5) - (5)].val.opval)); }
break;
case 161:
-#line 872 "perly.y"
+#line 866 "perly.y"
{
OP *body;
if (parser->copline > (line_t)(ps[(6) - (8)].val.ival))
@@ -1096,86 +1090,86 @@ case 2:
op_append_list(OP_LINESEQ, (ps[(4) - (8)].val.opval), (ps[(7) - (8)].val.opval)));
SvREFCNT_inc_simple_void(PL_compcv);
(yyval.opval) = newANONATTRSUB((ps[(2) - (8)].val.ival), NULL, (ps[(5) - (8)].val.opval), body);
- ;}
+ }
break;
case 162:
-#line 886 "perly.y"
- { (yyval.opval) = dofile((ps[(2) - (2)].val.opval), (ps[(1) - (2)].val.ival));;}
+#line 880 "perly.y"
+ { (yyval.opval) = dofile((ps[(2) - (2)].val.opval), (ps[(1) - (2)].val.ival));}
break;
case 163:
-#line 888 "perly.y"
- { (yyval.opval) = newUNOP(OP_NULL, OPf_SPECIAL, op_scope((ps[(2) - (2)].val.opval)));;}
+#line 882 "perly.y"
+ { (yyval.opval) = newUNOP(OP_NULL, OPf_SPECIAL, op_scope((ps[(2) - (2)].val.opval)));}
break;
case 168:
-#line 896 "perly.y"
- { (yyval.opval) = newCONDOP(0, (ps[(1) - (5)].val.opval), (ps[(3) - (5)].val.opval), (ps[(5) - (5)].val.opval)); ;}
+#line 890 "perly.y"
+ { (yyval.opval) = newCONDOP(0, (ps[(1) - (5)].val.opval), (ps[(3) - (5)].val.opval), (ps[(5) - (5)].val.opval)); }
break;
case 169:
-#line 898 "perly.y"
- { (yyval.opval) = newUNOP(OP_REFGEN, 0, (ps[(2) - (2)].val.opval)); ;}
+#line 892 "perly.y"
+ { (yyval.opval) = newUNOP(OP_REFGEN, 0, (ps[(2) - (2)].val.opval)); }
break;
case 170:
-#line 900 "perly.y"
- { (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
+#line 894 "perly.y"
+ { (yyval.opval) = (ps[(1) - (1)].val.opval); }
break;
case 171:
-#line 902 "perly.y"
- { (yyval.opval) = localize((ps[(2) - (2)].val.opval),(ps[(1) - (2)].val.ival)); ;}
+#line 896 "perly.y"
+ { (yyval.opval) = localize((ps[(2) - (2)].val.opval),(ps[(1) - (2)].val.ival)); }
break;
case 172:
-#line 904 "perly.y"
- { (yyval.opval) = sawparens((ps[(2) - (3)].val.opval)); ;}
+#line 898 "perly.y"
+ { (yyval.opval) = sawparens((ps[(2) - (3)].val.opval)); }
break;
case 173:
-#line 906 "perly.y"
- { (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
+#line 900 "perly.y"
+ { (yyval.opval) = (ps[(1) - (1)].val.opval); }
break;
case 174:
-#line 908 "perly.y"
- { (yyval.opval) = sawparens(newNULLLIST()); ;}
+#line 902 "perly.y"
+ { (yyval.opval) = sawparens(newNULLLIST()); }
break;
case 175:
-#line 910 "perly.y"
- { (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
+#line 904 "perly.y"
+ { (yyval.opval) = (ps[(1) - (1)].val.opval); }
break;
case 176:
-#line 912 "perly.y"
- { (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
+#line 906 "perly.y"
+ { (yyval.opval) = (ps[(1) - (1)].val.opval); }
break;
case 177:
-#line 914 "perly.y"
- { (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
+#line 908 "perly.y"
+ { (yyval.opval) = (ps[(1) - (1)].val.opval); }
break;
case 178:
-#line 916 "perly.y"
- { (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
+#line 910 "perly.y"
+ { (yyval.opval) = (ps[(1) - (1)].val.opval); }
break;
case 179:
-#line 918 "perly.y"
- { (yyval.opval) = newUNOP(OP_AV2ARYLEN, 0, ref((ps[(1) - (1)].val.opval), OP_AV2ARYLEN));;}
+#line 912 "perly.y"
+ { (yyval.opval) = newUNOP(OP_AV2ARYLEN, 0, ref((ps[(1) - (1)].val.opval), OP_AV2ARYLEN));}
break;
case 180:
-#line 920 "perly.y"
- { (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
+#line 914 "perly.y"
+ { (yyval.opval) = (ps[(1) - (1)].val.opval); }
break;
case 181:
-#line 922 "perly.y"
+#line 916 "perly.y"
{ (yyval.opval) = op_prepend_elem(OP_ASLICE,
newOP(OP_PUSHMARK, 0),
newLISTOP(OP_ASLICE, 0,
@@ -1184,11 +1178,11 @@ case 2:
if ((yyval.opval) && (ps[(1) - (4)].val.opval))
(yyval.opval)->op_private |=
(ps[(1) - (4)].val.opval)->op_private & OPpSLICEWARNING;
- ;}
+ }
break;
case 182:
-#line 932 "perly.y"
+#line 926 "perly.y"
{ (yyval.opval) = op_prepend_elem(OP_KVASLICE,
newOP(OP_PUSHMARK, 0),
newLISTOP(OP_KVASLICE, 0,
@@ -1197,11 +1191,11 @@ case 2:
if ((yyval.opval) && (ps[(1) - (4)].val.opval))
(yyval.opval)->op_private |=
(ps[(1) - (4)].val.opval)->op_private & OPpSLICEWARNING;
- ;}
+ }
break;
case 183:
-#line 942 "perly.y"
+#line 936 "perly.y"
{ (yyval.opval) = op_prepend_elem(OP_HSLICE,
newOP(OP_PUSHMARK, 0),
newLISTOP(OP_HSLICE, 0,
@@ -1210,11 +1204,11 @@ case 2:
if ((yyval.opval) && (ps[(1) - (5)].val.opval))
(yyval.opval)->op_private |=
(ps[(1) - (5)].val.opval)->op_private & OPpSLICEWARNING;
- ;}
+ }
break;
case 184:
-#line 952 "perly.y"
+#line 946 "perly.y"
{ (yyval.opval) = op_prepend_elem(OP_KVHSLICE,
newOP(OP_PUSHMARK, 0),
newLISTOP(OP_KVHSLICE, 0,
@@ -1223,157 +1217,157 @@ case 2:
if ((yyval.opval) && (ps[(1) - (5)].val.opval))
(yyval.opval)->op_private |=
(ps[(1) - (5)].val.opval)->op_private & OPpSLICEWARNING;
- ;}
+ }
break;
case 185:
-#line 962 "perly.y"
- { (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
+#line 956 "perly.y"
+ { (yyval.opval) = (ps[(1) - (1)].val.opval); }
break;
case 186:
-#line 964 "perly.y"
- { (yyval.opval) = newUNOP(OP_ENTERSUB, 0, scalar((ps[(1) - (1)].val.opval))); ;}
+#line 958 "perly.y"
+ { (yyval.opval) = newUNOP(OP_ENTERSUB, 0, scalar((ps[(1) - (1)].val.opval))); }
break;
case 187:
-#line 966 "perly.y"
+#line 960 "perly.y"
{ (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, scalar((ps[(1) - (3)].val.opval)));
- ;}
+ }
break;
case 188:
-#line 969 "perly.y"
+#line 963 "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))));
- ;}
+ }
break;
case 189:
-#line 974 "perly.y"
+#line 968 "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))));
- ;}
+ }
break;
case 190:
-#line 978 "perly.y"
- { (yyval.opval) = newSVREF((ps[(1) - (4)].val.opval)); ;}
+#line 972 "perly.y"
+ { (yyval.opval) = newSVREF((ps[(1) - (4)].val.opval)); }
break;
case 191:
-#line 980 "perly.y"
- { (yyval.opval) = newAVREF((ps[(1) - (4)].val.opval)); ;}
+#line 974 "perly.y"
+ { (yyval.opval) = newAVREF((ps[(1) - (4)].val.opval)); }
break;
case 192:
-#line 982 "perly.y"
- { (yyval.opval) = newHVREF((ps[(1) - (4)].val.opval)); ;}
+#line 976 "perly.y"
+ { (yyval.opval) = newHVREF((ps[(1) - (4)].val.opval)); }
break;
case 193:
-#line 984 "perly.y"
+#line 978 "perly.y"
{ (yyval.opval) = newUNOP(OP_ENTERSUB, 0,
- scalar(newCVREF((ps[(3) - (4)].val.ival),(ps[(1) - (4)].val.opval)))); ;}
+ scalar(newCVREF((ps[(3) - (4)].val.ival),(ps[(1) - (4)].val.opval)))); }
break;
case 194:
-#line 987 "perly.y"
- { (yyval.opval) = newGVREF(0,(ps[(1) - (4)].val.opval)); ;}
+#line 981 "perly.y"
+ { (yyval.opval) = newGVREF(0,(ps[(1) - (4)].val.opval)); }
break;
case 195:
-#line 989 "perly.y"
+#line 983 "perly.y"
{ (yyval.opval) = newOP((ps[(1) - (1)].val.ival), OPf_SPECIAL);
- PL_hints |= HINT_BLOCK_SCOPE; ;}
+ PL_hints |= HINT_BLOCK_SCOPE; }
break;
case 196:
-#line 992 "perly.y"
- { (yyval.opval) = newLOOPEX((ps[(1) - (2)].val.ival),(ps[(2) - (2)].val.opval)); ;}
+#line 986 "perly.y"
+ { (yyval.opval) = newLOOPEX((ps[(1) - (2)].val.ival),(ps[(2) - (2)].val.opval)); }
break;
case 197:
-#line 994 "perly.y"
- { (yyval.opval) = newUNOP(OP_NOT, 0, scalar((ps[(2) - (2)].val.opval))); ;}
+#line 988 "perly.y"
+ { (yyval.opval) = newUNOP(OP_NOT, 0, scalar((ps[(2) - (2)].val.opval))); }
break;
case 198:
-#line 996 "perly.y"
- { (yyval.opval) = newOP((ps[(1) - (1)].val.ival), 0); ;}
+#line 990 "perly.y"
+ { (yyval.opval) = newOP((ps[(1) - (1)].val.ival), 0); }
break;
case 199:
-#line 998 "perly.y"
- { (yyval.opval) = newUNOP((ps[(1) - (2)].val.ival), 0, (ps[(2) - (2)].val.opval)); ;}
+#line 992 "perly.y"
+ { (yyval.opval) = newUNOP((ps[(1) - (2)].val.ival), 0, (ps[(2) - (2)].val.opval)); }
break;
case 200:
-#line 1000 "perly.y"
- { (yyval.opval) = newUNOP((ps[(1) - (2)].val.ival), 0, (ps[(2) - (2)].val.opval)); ;}
+#line 994 "perly.y"
+ { (yyval.opval) = newUNOP((ps[(1) - (2)].val.ival), 0, (ps[(2) - (2)].val.opval)); }
break;
case 201:
-#line 1002 "perly.y"
- { (yyval.opval) = newOP(OP_REQUIRE, (ps[(1) - (1)].val.ival) ? OPf_SPECIAL : 0); ;}
+#line 996 "perly.y"
+ { (yyval.opval) = newOP(OP_REQUIRE, (ps[(1) - (1)].val.ival) ? OPf_SPECIAL : 0); }
break;
case 202:
-#line 1004 "perly.y"
- { (yyval.opval) = newUNOP(OP_REQUIRE, (ps[(1) - (2)].val.ival) ? OPf_SPECIAL : 0, (ps[(2) - (2)].val.opval)); ;}
+#line 998 "perly.y"
+ { (yyval.opval) = newUNOP(OP_REQUIRE, (ps[(1) - (2)].val.ival) ? OPf_SPECIAL : 0, (ps[(2) - (2)].val.opval)); }
break;
case 203:
-#line 1006 "perly.y"
- { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, scalar((ps[(1) - (1)].val.opval))); ;}
+#line 1000 "perly.y"
+ { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, scalar((ps[(1) - (1)].val.opval))); }
break;
case 204:
-#line 1008 "perly.y"
+#line 1002 "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)))); ;}
+ op_append_elem(OP_LIST, (ps[(2) - (2)].val.opval), scalar((ps[(1) - (2)].val.opval)))); }
break;
case 205:
-#line 1011 "perly.y"
- { (yyval.opval) = newOP((ps[(1) - (1)].val.ival), 0); ;}
+#line 1005 "perly.y"
+ { (yyval.opval) = newOP((ps[(1) - (1)].val.ival), 0); }
break;
case 206:
-#line 1013 "perly.y"
- { (yyval.opval) = newOP((ps[(1) - (3)].val.ival), 0);;}
+#line 1007 "perly.y"
+ { (yyval.opval) = newOP((ps[(1) - (3)].val.ival), 0);}
break;
case 207:
-#line 1015 "perly.y"
- { (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
+#line 1009 "perly.y"
+ { (yyval.opval) = (ps[(1) - (1)].val.opval); }
break;
case 208:
-#line 1017 "perly.y"
- { (yyval.opval) = (ps[(1) - (3)].val.opval); ;}
+#line 1011 "perly.y"
+ { (yyval.opval) = (ps[(1) - (3)].val.opval); }
break;
case 209:
-#line 1019 "perly.y"
- { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, scalar((ps[(1) - (1)].val.opval))); ;}
+#line 1013 "perly.y"
+ { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, scalar((ps[(1) - (1)].val.opval))); }
break;
case 210:
-#line 1021 "perly.y"
+#line 1015 "perly.y"
{ (yyval.opval) = ((ps[(1) - (3)].val.ival) == OP_NOT)
? newUNOP((ps[(1) - (3)].val.ival), 0, newSVOP(OP_CONST, 0, newSViv(0)))
- : newOP((ps[(1) - (3)].val.ival), OPf_SPECIAL); ;}
+ : newOP((ps[(1) - (3)].val.ival), OPf_SPECIAL); }
break;
case 211:
-#line 1025 "perly.y"
- { (yyval.opval) = newUNOP((ps[(1) - (4)].val.ival), 0, (ps[(3) - (4)].val.opval)); ;}
+#line 1019 "perly.y"
+ { (yyval.opval) = newUNOP((ps[(1) - (4)].val.ival), 0, (ps[(3) - (4)].val.opval)); }
break;
case 212:
-#line 1027 "perly.y"
+#line 1021 "perly.y"
{
if ( (ps[(1) - (1)].val.opval)->op_type != OP_TRANS
&& (ps[(1) - (1)].val.opval)->op_type != OP_TRANSR
@@ -1383,173 +1377,170 @@ case 2:
SAVEFREESV(PL_compcv);
} else
(yyval.ival) = 0;
- ;}
+ }
break;
case 213:
-#line 1038 "perly.y"
- { (yyval.opval) = pmruntime((ps[(1) - (6)].val.opval), (ps[(4) - (6)].val.opval), (ps[(5) - (6)].val.opval), 1, (ps[(2) - (6)].val.ival)); ;}
+#line 1032 "perly.y"
+ { (yyval.opval) = pmruntime((ps[(1) - (6)].val.opval), (ps[(4) - (6)].val.opval), (ps[(5) - (6)].val.opval), 1, (ps[(2) - (6)].val.ival)); }
break;
case 216:
-#line 1042 "perly.y"
+#line 1036 "perly.y"
{
(yyval.opval) = newLISTOP(OP_DIE, 0, newOP(OP_PUSHMARK, 0),
newSVOP(OP_CONST, 0, newSVpvs("Unimplemented")));
- ;}
+ }
break;
case 218:
-#line 1051 "perly.y"
- { (yyval.opval) = my_attrs((ps[(2) - (3)].val.opval),(ps[(3) - (3)].val.opval)); ;}
+#line 1045 "perly.y"
+ { (yyval.opval) = my_attrs((ps[(2) - (3)].val.opval),(ps[(3) - (3)].val.opval)); }
break;
case 219:
-#line 1053 "perly.y"
- { (yyval.opval) = localize((ps[(2) - (2)].val.opval),(ps[(1) - (2)].val.ival)); ;}
+#line 1047 "perly.y"
+ { (yyval.opval) = localize((ps[(2) - (2)].val.opval),(ps[(1) - (2)].val.ival)); }
break;
case 220:
-#line 1058 "perly.y"
- { (yyval.opval) = sawparens((ps[(2) - (3)].val.opval)); ;}
+#line 1052 "perly.y"
+ { (yyval.opval) = sawparens((ps[(2) - (3)].val.opval)); }
break;
case 221:
-#line 1060 "perly.y"
- { (yyval.opval) = sawparens(newNULLLIST()); ;}
+#line 1054 "perly.y"
+ { (yyval.opval) = sawparens(newNULLLIST()); }
break;
case 222:
-#line 1063 "perly.y"
- { (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
+#line 1057 "perly.y"
+ { (yyval.opval) = (ps[(1) - (1)].val.opval); }
break;
case 223:
-#line 1065 "perly.y"
- { (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
+#line 1059 "perly.y"
+ { (yyval.opval) = (ps[(1) - (1)].val.opval); }
break;
case 224:
-#line 1067 "perly.y"
- { (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
+#line 1061 "perly.y"
+ { (yyval.opval) = (ps[(1) - (1)].val.opval); }
break;
case 225:
-#line 1072 "perly.y"
- { (yyval.opval) = (OP*)NULL; ;}
+#line 1066 "perly.y"
+ { (yyval.opval) = (OP*)NULL; }
break;
case 226:
-#line 1074 "perly.y"
- { (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
+#line 1068 "perly.y"
+ { (yyval.opval) = (ps[(1) - (1)].val.opval); }
break;
case 227:
-#line 1078 "perly.y"
- { (yyval.opval) = (OP*)NULL; ;}
+#line 1072 "perly.y"
+ { (yyval.opval) = (OP*)NULL; }
break;
case 228:
-#line 1080 "perly.y"
- { (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
+#line 1074 "perly.y"
+ { (yyval.opval) = (ps[(1) - (1)].val.opval); }
break;
case 229:
-#line 1084 "perly.y"
- { (yyval.opval) = (OP*)NULL; ;}
+#line 1078 "perly.y"
+ { (yyval.opval) = (OP*)NULL; }
break;
case 230:
-#line 1086 "perly.y"
- { (yyval.opval) = (ps[(2) - (2)].val.opval); ;}
+#line 1080 "perly.y"
+ { (yyval.opval) = (ps[(2) - (2)].val.opval); }
break;
case 231:
-#line 1092 "perly.y"
- { parser->in_my = 0; (yyval.opval) = my((ps[(1) - (1)].val.opval)); ;}
+#line 1086 "perly.y"
+ { parser->in_my = 0; (yyval.opval) = my((ps[(1) - (1)].val.opval)); }
break;
case 237:
-#line 1105 "perly.y"
- { (yyval.opval) = newCVREF((ps[(1) - (2)].val.ival),(ps[(2) - (2)].val.opval)); ;}
+#line 1099 "perly.y"
+ { (yyval.opval) = newCVREF((ps[(1) - (2)].val.ival),(ps[(2) - (2)].val.opval)); }
break;
case 238:
-#line 1109 "perly.y"
- { (yyval.opval) = newSVREF((ps[(2) - (2)].val.opval)); ;}
+#line 1103 "perly.y"
+ { (yyval.opval) = newSVREF((ps[(2) - (2)].val.opval)); }
break;
case 239:
-#line 1113 "perly.y"
+#line 1107 "perly.y"
{ (yyval.opval) = newAVREF((ps[(2) - (2)].val.opval));
if ((yyval.opval)) (yyval.opval)->op_private |= (ps[(1) - (2)].val.ival);
- ;}
+ }
break;
case 240:
-#line 1119 "perly.y"
+#line 1113 "perly.y"
{ (yyval.opval) = newHVREF((ps[(2) - (2)].val.opval));
if ((yyval.opval)) (yyval.opval)->op_private |= (ps[(1) - (2)].val.ival);
- ;}
+ }
break;
case 241:
-#line 1125 "perly.y"
- { (yyval.opval) = newAVREF((ps[(2) - (2)].val.opval)); ;}
+#line 1119 "perly.y"
+ { (yyval.opval) = newAVREF((ps[(2) - (2)].val.opval)); }
break;
case 242:
-#line 1127 "perly.y"
- { (yyval.opval) = newAVREF((ps[(1) - (4)].val.opval)); ;}
+#line 1121 "perly.y"
+ { (yyval.opval) = newAVREF((ps[(1) - (4)].val.opval)); }
break;
case 243:
-#line 1131 "perly.y"
- { (yyval.opval) = newGVREF(0,(ps[(2) - (2)].val.opval)); ;}
+#line 1125 "perly.y"
+ { (yyval.opval) = newGVREF(0,(ps[(2) - (2)].val.opval)); }
break;
case 245:
-#line 1136 "perly.y"
- { (yyval.opval) = newAVREF((ps[(1) - (3)].val.opval)); ;}
+#line 1130 "perly.y"
+ { (yyval.opval) = newAVREF((ps[(1) - (3)].val.opval)); }
break;
case 247:
-#line 1141 "perly.y"
- { (yyval.opval) = newHVREF((ps[(1) - (3)].val.opval)); ;}
+#line 1135 "perly.y"
+ { (yyval.opval) = newHVREF((ps[(1) - (3)].val.opval)); }
break;
case 249:
-#line 1146 "perly.y"
- { (yyval.opval) = newGVREF(0,(ps[(1) - (3)].val.opval)); ;}
+#line 1140 "perly.y"
+ { (yyval.opval) = newGVREF(0,(ps[(1) - (3)].val.opval)); }
break;
case 250:
-#line 1151 "perly.y"
- { (yyval.opval) = scalar((ps[(1) - (1)].val.opval)); ;}
+#line 1145 "perly.y"
+ { (yyval.opval) = scalar((ps[(1) - (1)].val.opval)); }
break;
case 251:
-#line 1153 "perly.y"
- { (yyval.opval) = scalar((ps[(1) - (1)].val.opval)); ;}
+#line 1147 "perly.y"
+ { (yyval.opval) = scalar((ps[(1) - (1)].val.opval)); }
break;
case 252:
-#line 1155 "perly.y"
- { (yyval.opval) = op_scope((ps[(1) - (1)].val.opval)); ;}
+#line 1149 "perly.y"
+ { (yyval.opval) = op_scope((ps[(1) - (1)].val.opval)); }
break;
case 253:
-#line 1158 "perly.y"
- { (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
+#line 1152 "perly.y"
+ { (yyval.opval) = (ps[(1) - (1)].val.opval); }
break;
-
-/* Line 1267 of yacc.c. */
-
default: break;
/* Generated from:
- * e2ef3626c25dd92c66987e4c2f707e7f194c2bd5df74da27c51df206d9809412 perly.y
+ * a0bc910627eeeffe8245b9a63dd97238e2e6b27b544be36b37d078cf6aba699b perly.y
* d1d4df7b8e30ac9dede664af9179e6e5e7ddc7f2ad9c4eff9e2e5b32c9e16a6e regen_perly.pl
* ex: set ro: */
diff --git a/perly.h b/perly.h
index db139d85f3..1170e9ce28 100644
--- a/perly.h
+++ b/perly.h
@@ -5,27 +5,24 @@
*/
#ifdef PERL_CORE
-/* A Bison parser, made by GNU Bison 2.3. */
+/* A Bison parser, made by GNU Bison 2.7. */
-/* Skeleton interface for Bison's Yacc-like parsers in C
-
- Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
- Free Software Foundation, Inc.
-
- This program is free software; you can redistribute it and/or modify
+/* Bison interface for Yacc-like parsers in C
+
+ Copyright (C) 1984, 1989-1990, 2000-2012 Free Software Foundation, Inc.
+
+ This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2, or (at your option)
- any later version.
-
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
+
You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA. */
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
@@ -36,10 +33,18 @@
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.
-
+
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
+/* Enabling traces. */
+#ifndef YYDEBUG
+# define YYDEBUG 0
+#endif
+#if YYDEBUG
+extern int yydebug;
+#endif
+
/* Tokens. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
@@ -128,6 +133,7 @@
ARROW = 337
};
#endif
+
/* Tokens. */
#define GRAMPROG 258
#define GRAMEXPR 259
@@ -211,8 +217,6 @@
#define ARROW 337
-
-
#ifdef PERL_IN_TOKE_C
static bool
S_is_opval_token(int type) {
@@ -239,23 +243,39 @@ S_is_opval_token(int type) {
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE
{
+/* Line 2058 of yacc.c */
+
I32 ival; /* __DEFAULT__ (marker for regen_perly.pl;
must always be 1st union member) */
char *pval;
OP *opval;
GV *gvval;
-}
-/* Line 1529 of yacc.c. */
- YYSTYPE;
+
+
+/* Line 2058 of yacc.c */
+} YYSTYPE;
+# define YYSTYPE_IS_TRIVIAL 1
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
-# define YYSTYPE_IS_TRIVIAL 1
#endif
+#ifdef YYPARSE_PARAM
+#if defined __STDC__ || defined __cplusplus
+int yyparse (void *YYPARSE_PARAM);
+#else
+int yyparse ();
+#endif
+#else /* ! YYPARSE_PARAM */
+#if defined __STDC__ || defined __cplusplus
+int yyparse (void);
+#else
+int yyparse ();
+#endif
+#endif /* ! YYPARSE_PARAM */
/* Generated from:
- * e2ef3626c25dd92c66987e4c2f707e7f194c2bd5df74da27c51df206d9809412 perly.y
+ * a0bc910627eeeffe8245b9a63dd97238e2e6b27b544be36b37d078cf6aba699b perly.y
* d1d4df7b8e30ac9dede664af9179e6e5e7ddc7f2ad9c4eff9e2e5b32c9e16a6e regen_perly.pl
* ex: set ro: */
diff --git a/perly.tab b/perly.tab
index 8ef9129f9b..9f569164b7 100644
--- a/perly.tab
+++ b/perly.tab
@@ -196,33 +196,33 @@ static const yytype_uint16 yyrline[] =
0, 115, 115, 114, 125, 124, 134, 133, 146, 145,
158, 157, 170, 169, 181, 189, 197, 201, 209, 215,
216, 226, 227, 236, 240, 244, 248, 255, 257, 268,
- 267, 301, 300, 339, 347, 346, 355, 361, 367, 378,
- 380, 382, 389, 397, 399, 396, 416, 421, 428, 427,
- 442, 450, 456, 463, 462, 477, 481, 489, 507, 508,
- 513, 515, 517, 519, 521, 523, 525, 528, 534, 535,
- 540, 551, 552, 558, 564, 565, 570, 573, 577, 582,
- 586, 590, 594, 595, 599, 605, 610, 615, 616, 621,
- 622, 627, 628, 630, 635, 637, 643, 642, 661, 662,
- 666, 668, 670, 672, 676, 678, 683, 687, 691, 695,
- 701, 706, 712, 718, 720, 723, 722, 733, 734, 738,
- 742, 745, 750, 755, 758, 762, 766, 769, 774, 778,
- 781, 783, 785, 790, 792, 794, 799, 801, 803, 805,
- 807, 809, 811, 813, 815, 817, 819, 824, 826, 829,
- 831, 833, 836, 839, 850, 853, 860, 862, 864, 866,
- 868, 871, 885, 887, 891, 892, 893, 894, 895, 897,
- 899, 901, 903, 905, 907, 909, 911, 913, 915, 917,
- 919, 921, 931, 941, 951, 961, 963, 965, 968, 973,
- 977, 979, 981, 983, 986, 988, 991, 993, 995, 997,
- 999, 1001, 1003, 1005, 1007, 1010, 1012, 1014, 1016, 1018,
- 1020, 1024, 1027, 1026, 1039, 1040, 1041, 1046, 1050, 1052,
- 1057, 1059, 1062, 1064, 1066, 1071, 1073, 1078, 1079, 1084,
- 1085, 1091, 1095, 1096, 1097, 1100, 1101, 1104, 1108, 1112,
- 1118, 1124, 1126, 1130, 1134, 1135, 1139, 1140, 1144, 1145,
- 1150, 1152, 1154, 1157
+ 267, 301, 300, 339, 347, 346, 355, 361, 367, 372,
+ 374, 376, 383, 391, 393, 390, 410, 415, 422, 421,
+ 436, 444, 450, 457, 456, 471, 475, 483, 501, 502,
+ 507, 509, 511, 513, 515, 517, 519, 522, 528, 529,
+ 534, 545, 546, 552, 558, 559, 564, 567, 571, 576,
+ 580, 584, 588, 589, 593, 599, 604, 609, 610, 615,
+ 616, 621, 622, 624, 629, 631, 637, 636, 655, 656,
+ 660, 662, 664, 666, 670, 672, 677, 681, 685, 689,
+ 695, 700, 706, 712, 714, 717, 716, 727, 728, 732,
+ 736, 739, 744, 749, 752, 756, 760, 763, 768, 772,
+ 775, 777, 779, 784, 786, 788, 793, 795, 797, 799,
+ 801, 803, 805, 807, 809, 811, 813, 818, 820, 823,
+ 825, 827, 830, 833, 844, 847, 854, 856, 858, 860,
+ 862, 865, 879, 881, 885, 886, 887, 888, 889, 891,
+ 893, 895, 897, 899, 901, 903, 905, 907, 909, 911,
+ 913, 915, 925, 935, 945, 955, 957, 959, 962, 967,
+ 971, 973, 975, 977, 980, 982, 985, 987, 989, 991,
+ 993, 995, 997, 999, 1001, 1004, 1006, 1008, 1010, 1012,
+ 1014, 1018, 1021, 1020, 1033, 1034, 1035, 1040, 1044, 1046,
+ 1051, 1053, 1056, 1058, 1060, 1065, 1067, 1072, 1073, 1078,
+ 1079, 1085, 1089, 1090, 1091, 1094, 1095, 1098, 1102, 1106,
+ 1112, 1118, 1120, 1124, 1128, 1129, 1133, 1134, 1138, 1139,
+ 1144, 1146, 1148, 1151
};
#endif
-#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
+#if YYDEBUG || YYERROR_VERBOSE || 0
/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
First, the terminals, then, starting at YYNTOKENS, nonterminals. */
static const char *const yytname[] =
@@ -242,18 +242,18 @@ static const char *const yytname[] =
"BITOROP", "BITANDOP", "SHIFTOP", "MATCHOP", "'!'", "'~'", "REFGEN",
"UMINUS", "POWOP", "POSTJOIN", "POSTDEC", "POSTINC", "PREDEC", "PREINC",
"ARROW", "')'", "'('", "';'", "'$'", "'*'", "'/'", "$accept", "grammar",
- "@1", "@2", "@3", "@4", "@5", "@6", "block", "formblock", "remember",
- "mblock", "mremember", "stmtseq", "formstmtseq", "fullstmt",
- "labfullstmt", "barestmt", "@7", "@8", "@9", "@10", "@11", "@12", "@13",
- "formline", "formarg", "sideff", "else", "cont", "mintro", "nexpr",
- "texpr", "iexpr", "mexpr", "mnexpr", "miexpr", "formname", "startsub",
- "startanonsub", "startformsub", "subname", "proto", "subattrlist",
- "myattrlist", "subsignature", "@14", "optsubbody", "expr", "listexpr",
- "listop", "@15", "method", "subscripted", "termbinop", "termunop",
- "anonymous", "termdo", "term", "@16", "myattrterm", "myterm",
+ "$@1", "$@2", "$@3", "$@4", "$@5", "$@6", "block", "formblock",
+ "remember", "mblock", "mremember", "stmtseq", "formstmtseq", "fullstmt",
+ "labfullstmt", "barestmt", "$@7", "$@8", "$@9", "$@10", "$@11", "@12",
+ "$@13", "formline", "formarg", "sideff", "else", "cont", "mintro",
+ "nexpr", "texpr", "iexpr", "mexpr", "mnexpr", "miexpr", "formname",
+ "startsub", "startanonsub", "startformsub", "subname", "proto",
+ "subattrlist", "myattrlist", "subsignature", "@14", "optsubbody", "expr",
+ "listexpr", "listop", "@15", "method", "subscripted", "termbinop",
+ "termunop", "anonymous", "termdo", "term", "@16", "myattrterm", "myterm",
"optlistexpr", "optexpr", "optrepl", "my_scalar", "my_var",
"refgen_topic", "amper", "scalar", "ary", "hsh", "arylen", "star",
- "sliceme", "kvslice", "gelem", "indirob", 0
+ "sliceme", "kvslice", "gelem", "indirob", YY_NULL
};
#endif
@@ -338,8 +338,8 @@ static const yytype_uint8 yyr2[] =
1, 1, 1, 1
};
-/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
- STATE-NUM when YYTABLE doesn't specify something else to do. Zero
+/* YYDEFACT[STATE-NAME] -- Default reduction number in state STATE-NUM.
+ Performed when YYTABLE doesn't specify something else to do. Zero
means the default is an error. */
static const yytype_uint8 yydefact[] =
{
@@ -482,8 +482,7 @@ static const yytype_int16 yypgoto[] =
/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
positive, shift that token. If negative, reduce the rule which
- number is the opposite. If zero, do what YYDEFACT says.
- If YYTABLE_NINF, syntax error. */
+ number is the opposite. If YYTABLE_NINF, syntax error. */
#define YYTABLE_NINF -249
static const yytype_int16 yytable[] =
{
@@ -783,6 +782,12 @@ static const yytype_int16 yytable[] =
184
};
+#define yypact_value_is_default(Yystate) \
+ (!!((Yystate) == (-402)))
+
+#define yytable_value_is_error(Yytable_value) \
+ (!!((Yytable_value) == (-249)))
+
static const yytype_int16 yycheck[] =
{
15, 308, 9, 325, 9, 40, 46, 46, 115, 9,
@@ -1160,21 +1165,21 @@ static const toketypes yy_type_tab[] =
toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival,
toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival,
toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival,
- toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_opval, toketype_opval, toketype_ival,
- toketype_opval, toketype_ival, toketype_opval, toketype_opval, toketype_opval,
- toketype_opval, toketype_opval, toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival,
- toketype_opval, toketype_opval, toketype_opval, toketype_opval, toketype_opval, toketype_ival, toketype_opval,
- toketype_opval, toketype_opval, toketype_opval, toketype_opval, toketype_opval, toketype_opval, toketype_ival,
- toketype_ival, toketype_ival, toketype_opval, toketype_opval, toketype_opval,
- toketype_opval, toketype_opval, toketype_ival, toketype_opval, toketype_opval, toketype_opval,
- toketype_opval, toketype_ival, toketype_opval, toketype_opval, toketype_opval, toketype_opval,
+ toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_opval, toketype_opval,
+ toketype_ival, toketype_opval, toketype_ival, toketype_opval, toketype_opval, toketype_opval,
+ toketype_opval, toketype_opval, toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival,
+ toketype_ival, toketype_opval, toketype_opval, toketype_opval, toketype_opval, toketype_opval, toketype_ival,
+ toketype_opval, toketype_opval, toketype_opval, toketype_opval, toketype_opval, toketype_opval, toketype_opval,
+ toketype_ival, toketype_ival, toketype_ival, toketype_opval, toketype_opval,
toketype_opval, toketype_opval, toketype_opval, toketype_ival, toketype_opval, toketype_opval,
+ toketype_opval, toketype_opval, toketype_ival, toketype_opval, toketype_opval, toketype_opval,
+ toketype_opval, toketype_opval, toketype_opval, toketype_opval, toketype_ival, toketype_opval, toketype_opval,
toketype_opval, toketype_opval, toketype_opval, toketype_opval, toketype_opval,
toketype_opval, toketype_opval, toketype_opval, toketype_opval, toketype_opval, toketype_opval, toketype_opval,
toketype_opval, toketype_opval, toketype_opval, toketype_opval
};
/* Generated from:
- * e2ef3626c25dd92c66987e4c2f707e7f194c2bd5df74da27c51df206d9809412 perly.y
+ * a0bc910627eeeffe8245b9a63dd97238e2e6b27b544be36b37d078cf6aba699b perly.y
* d1d4df7b8e30ac9dede664af9179e6e5e7ddc7f2ad9c4eff9e2e5b32c9e16a6e regen_perly.pl
* ex: set ro: */
diff --git a/perly.y b/perly.y
index 4b73977d9f..b3be67dda1 100644
--- a/perly.y
+++ b/perly.y
@@ -366,13 +366,7 @@ barestmt: PLUGSTMT
}
| GIVEN '(' remember mexpr ')' mblock
{
- const PADOFFSET offset = pad_findmy_pvs("$_", 0);
- $$ = block_end($3,
- newGIVENOP($4, op_scope($6),
- offset == NOT_IN_PAD
- || PAD_COMPNAME_FLAGS_isOUR(offset)
- ? 0
- : offset));
+ $$ = block_end($3, newGIVENOP($4, op_scope($6), 0));
parser->copline = (line_t)$1;
}
| WHEN '(' remember mexpr ')' mblock
diff --git a/pp_ctl.c b/pp_ctl.c
index bed637cb85..1333be891c 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -4340,15 +4340,9 @@ PP(pp_entergiven)
ENTER_with_name("given");
SAVETMPS;
- if (PL_op->op_targ) {
- SAVEPADSVANDMORTALIZE(PL_op->op_targ);
- SvREFCNT_dec(PAD_SVl(PL_op->op_targ));
- PAD_SVl(PL_op->op_targ) = SvREFCNT_inc_NN(POPs);
- }
- else {
- SAVE_DEFSV;
- DEFSV_set(POPs);
- }
+ assert(!PL_op->op_targ); /* used to be set for lexical $_ */
+ SAVE_DEFSV;
+ DEFSV_set(POPs);
PUSHBLOCK(cx, CXt_GIVEN, SP);
PUSHGIVEN(cx);