diff options
-rw-r--r-- | MANIFEST | 1 | ||||
-rw-r--r-- | perly.act | 573 | ||||
-rw-r--r-- | perly.h | 8 | ||||
-rw-r--r-- | perly.tab | 64 | ||||
-rw-r--r-- | perly.y | 3 | ||||
-rw-r--r-- | t/op/not.t | 13 |
6 files changed, 339 insertions, 323 deletions
@@ -2718,6 +2718,7 @@ t/op/mkdir.t See if mkdir works t/op/mydef.t See if "my $_" works t/op/my_stash.t See if my Package works t/op/my.t See if lexical scoping works +t/op/not.t See if not works t/op/numconvert.t See if accessing fields does not change numeric values t/op/oct.t See if oct and hex work t/op/ord.t See if ord works @@ -1,75 +1,75 @@ case 2: #line 97 "perly.y" - { yyval.ival = yyvsp[-1].ival; newPROG(block_end(yyvsp[-1].ival,yyvsp[0].opval)); ;} + { (yyval.ival) = (yyvsp[-1].ival); newPROG(block_end((yyvsp[-1].ival),(yyvsp[0].opval))); ;} break; case 3: #line 102 "perly.y" - { if (PL_copline > (line_t)yyvsp[-3].ival) - PL_copline = (line_t)yyvsp[-3].ival; - yyval.opval = block_end(yyvsp[-2].ival, yyvsp[-1].opval); ;} + { if (PL_copline > (line_t)(yyvsp[-3].ival)) + PL_copline = (line_t)(yyvsp[-3].ival); + (yyval.opval) = block_end((yyvsp[-2].ival), (yyvsp[-1].opval)); ;} break; case 4: #line 108 "perly.y" - { yyval.ival = block_start(TRUE); ;} + { (yyval.ival) = block_start(TRUE); ;} break; case 5: #line 112 "perly.y" { - PL_expect = XSTATE; yyval.ival = block_start(TRUE); + PL_expect = XSTATE; (yyval.ival) = block_start(TRUE); ;} break; case 6: #line 119 "perly.y" - { if (PL_copline > (line_t)yyvsp[-3].ival) - PL_copline = (line_t)yyvsp[-3].ival; - yyval.opval = block_end(yyvsp[-2].ival, yyvsp[-1].opval); ;} + { if (PL_copline > (line_t)(yyvsp[-3].ival)) + PL_copline = (line_t)(yyvsp[-3].ival); + (yyval.opval) = block_end((yyvsp[-2].ival), (yyvsp[-1].opval)); ;} break; case 7: #line 125 "perly.y" - { yyval.ival = block_start(FALSE); ;} + { (yyval.ival) = block_start(FALSE); ;} break; case 8: #line 129 "perly.y" - { yyval.ival = PL_savestack_ix; ;} + { (yyval.ival) = PL_savestack_ix; ;} break; case 9: #line 133 "perly.y" - { yyval.opval = Nullop; ;} + { (yyval.opval) = Nullop; ;} break; case 10: #line 135 "perly.y" - { yyval.opval = yyvsp[-1].opval; ;} + { (yyval.opval) = (yyvsp[-1].opval); ;} break; case 11: #line 137 "perly.y" - { LEAVE_SCOPE(yyvsp[-1].ival); - yyval.opval = append_list(OP_LINESEQ, - (LISTOP*)yyvsp[-2].opval, (LISTOP*)yyvsp[0].opval); + { LEAVE_SCOPE((yyvsp[-1].ival)); + (yyval.opval) = append_list(OP_LINESEQ, + (LISTOP*)(yyvsp[-2].opval), (LISTOP*)(yyvsp[0].opval)); PL_pad_reset_pending = TRUE; - if (yyvsp[-2].opval && yyvsp[0].opval) PL_hints |= HINT_BLOCK_SCOPE; ;} + if ((yyvsp[-2].opval) && (yyvsp[0].opval)) PL_hints |= HINT_BLOCK_SCOPE; ;} break; case 12: #line 146 "perly.y" - { yyval.opval = newSTATEOP(0, yyvsp[-1].pval, yyvsp[0].opval); ;} + { (yyval.opval) = newSTATEOP(0, (yyvsp[-1].pval), (yyvsp[0].opval)); ;} break; case 14: #line 149 "perly.y" - { if (yyvsp[-1].pval != Nullch) { - yyval.opval = newSTATEOP(0, yyvsp[-1].pval, newOP(OP_NULL, 0)); + { if ((yyvsp[-1].pval) != Nullch) { + (yyval.opval) = newSTATEOP(0, (yyvsp[-1].pval), newOP(OP_NULL, 0)); } else { - yyval.opval = Nullop; + (yyval.opval) = Nullop; PL_copline = NOLINE; } PL_expect = XSTATE; ;} @@ -77,306 +77,306 @@ case 2: case 15: #line 158 "perly.y" - { yyval.opval = newSTATEOP(0, yyvsp[-2].pval, yyvsp[-1].opval); + { (yyval.opval) = newSTATEOP(0, (yyvsp[-2].pval), (yyvsp[-1].opval)); PL_expect = XSTATE; ;} break; case 16: #line 164 "perly.y" - { yyval.opval = Nullop; ;} + { (yyval.opval) = Nullop; ;} break; case 17: #line 166 "perly.y" - { yyval.opval = yyvsp[0].opval; ;} + { (yyval.opval) = (yyvsp[0].opval); ;} break; case 18: #line 168 "perly.y" - { yyval.opval = newLOGOP(OP_AND, 0, yyvsp[0].opval, yyvsp[-2].opval); ;} + { (yyval.opval) = newLOGOP(OP_AND, 0, (yyvsp[0].opval), (yyvsp[-2].opval)); ;} break; case 19: #line 170 "perly.y" - { yyval.opval = newLOGOP(OP_OR, 0, yyvsp[0].opval, yyvsp[-2].opval); ;} + { (yyval.opval) = newLOGOP(OP_OR, 0, (yyvsp[0].opval), (yyvsp[-2].opval)); ;} break; case 20: #line 172 "perly.y" - { yyval.opval = newLOOPOP(OPf_PARENS, 1, scalar(yyvsp[0].opval), yyvsp[-2].opval); ;} + { (yyval.opval) = newLOOPOP(OPf_PARENS, 1, scalar((yyvsp[0].opval)), (yyvsp[-2].opval)); ;} break; case 21: #line 174 "perly.y" - { yyval.opval = newLOOPOP(OPf_PARENS, 1, yyvsp[0].opval, yyvsp[-2].opval);;} + { (yyval.opval) = newLOOPOP(OPf_PARENS, 1, (yyvsp[0].opval), (yyvsp[-2].opval));;} break; case 22: #line 176 "perly.y" - { yyval.opval = newFOROP(0, Nullch, (line_t)yyvsp[-1].ival, - Nullop, yyvsp[0].opval, yyvsp[-2].opval, Nullop); ;} + { (yyval.opval) = newFOROP(0, Nullch, (line_t)(yyvsp[-1].ival), + Nullop, (yyvsp[0].opval), (yyvsp[-2].opval), Nullop); ;} break; case 23: #line 182 "perly.y" - { yyval.opval = Nullop; ;} + { (yyval.opval) = Nullop; ;} break; case 24: #line 184 "perly.y" - { (yyvsp[0].opval)->op_flags |= OPf_PARENS; yyval.opval = scope(yyvsp[0].opval); ;} + { ((yyvsp[0].opval))->op_flags |= OPf_PARENS; (yyval.opval) = scope((yyvsp[0].opval)); ;} break; case 25: #line 186 "perly.y" - { PL_copline = (line_t)yyvsp[-5].ival; - yyval.opval = newCONDOP(0, yyvsp[-3].opval, scope(yyvsp[-1].opval), yyvsp[0].opval); + { PL_copline = (line_t)(yyvsp[-5].ival); + (yyval.opval) = newCONDOP(0, (yyvsp[-3].opval), scope((yyvsp[-1].opval)), (yyvsp[0].opval)); PL_hints |= HINT_BLOCK_SCOPE; ;} break; case 26: #line 193 "perly.y" - { PL_copline = (line_t)yyvsp[-6].ival; - yyval.opval = block_end(yyvsp[-4].ival, - newCONDOP(0, yyvsp[-3].opval, scope(yyvsp[-1].opval), yyvsp[0].opval)); ;} + { PL_copline = (line_t)(yyvsp[-6].ival); + (yyval.opval) = block_end((yyvsp[-4].ival), + newCONDOP(0, (yyvsp[-3].opval), scope((yyvsp[-1].opval)), (yyvsp[0].opval))); ;} break; case 27: #line 197 "perly.y" - { PL_copline = (line_t)yyvsp[-6].ival; - yyval.opval = block_end(yyvsp[-4].ival, - newCONDOP(0, yyvsp[-3].opval, scope(yyvsp[-1].opval), yyvsp[0].opval)); ;} + { PL_copline = (line_t)(yyvsp[-6].ival); + (yyval.opval) = block_end((yyvsp[-4].ival), + newCONDOP(0, (yyvsp[-3].opval), scope((yyvsp[-1].opval)), (yyvsp[0].opval))); ;} break; case 28: #line 204 "perly.y" - { yyval.opval = Nullop; ;} + { (yyval.opval) = Nullop; ;} break; case 29: #line 206 "perly.y" - { yyval.opval = scope(yyvsp[0].opval); ;} + { (yyval.opval) = scope((yyvsp[0].opval)); ;} break; case 30: #line 211 "perly.y" - { PL_copline = (line_t)yyvsp[-6].ival; - yyval.opval = block_end(yyvsp[-4].ival, - newSTATEOP(0, yyvsp[-7].pval, + { PL_copline = (line_t)(yyvsp[-6].ival); + (yyval.opval) = block_end((yyvsp[-4].ival), + newSTATEOP(0, (yyvsp[-7].pval), newWHILEOP(0, 1, (LOOP*)Nullop, - yyvsp[-6].ival, yyvsp[-3].opval, yyvsp[-1].opval, yyvsp[0].opval))); ;} + (yyvsp[-6].ival), (yyvsp[-3].opval), (yyvsp[-1].opval), (yyvsp[0].opval)))); ;} break; case 31: #line 217 "perly.y" - { PL_copline = (line_t)yyvsp[-6].ival; - yyval.opval = block_end(yyvsp[-4].ival, - newSTATEOP(0, yyvsp[-7].pval, + { PL_copline = (line_t)(yyvsp[-6].ival); + (yyval.opval) = block_end((yyvsp[-4].ival), + newSTATEOP(0, (yyvsp[-7].pval), newWHILEOP(0, 1, (LOOP*)Nullop, - yyvsp[-6].ival, yyvsp[-3].opval, yyvsp[-1].opval, yyvsp[0].opval))); ;} + (yyvsp[-6].ival), (yyvsp[-3].opval), (yyvsp[-1].opval), (yyvsp[0].opval)))); ;} break; case 32: #line 223 "perly.y" - { yyval.opval = block_end(yyvsp[-6].ival, - newFOROP(0, yyvsp[-9].pval, (line_t)yyvsp[-8].ival, yyvsp[-5].opval, yyvsp[-3].opval, yyvsp[-1].opval, yyvsp[0].opval)); ;} + { (yyval.opval) = block_end((yyvsp[-6].ival), + newFOROP(0, (yyvsp[-9].pval), (line_t)(yyvsp[-8].ival), (yyvsp[-5].opval), (yyvsp[-3].opval), (yyvsp[-1].opval), (yyvsp[0].opval))); ;} break; case 33: #line 226 "perly.y" - { yyval.opval = block_end(yyvsp[-4].ival, - newFOROP(0, yyvsp[-8].pval, (line_t)yyvsp[-7].ival, mod(yyvsp[-6].opval, OP_ENTERLOOP), - yyvsp[-3].opval, yyvsp[-1].opval, yyvsp[0].opval)); ;} + { (yyval.opval) = block_end((yyvsp[-4].ival), + newFOROP(0, (yyvsp[-8].pval), (line_t)(yyvsp[-7].ival), mod((yyvsp[-6].opval), OP_ENTERLOOP), + (yyvsp[-3].opval), (yyvsp[-1].opval), (yyvsp[0].opval))); ;} break; case 34: #line 230 "perly.y" - { yyval.opval = block_end(yyvsp[-4].ival, - newFOROP(0, yyvsp[-7].pval, (line_t)yyvsp[-6].ival, Nullop, yyvsp[-3].opval, yyvsp[-1].opval, yyvsp[0].opval)); ;} + { (yyval.opval) = block_end((yyvsp[-4].ival), + newFOROP(0, (yyvsp[-7].pval), (line_t)(yyvsp[-6].ival), Nullop, (yyvsp[-3].opval), (yyvsp[-1].opval), (yyvsp[0].opval))); ;} break; case 35: #line 234 "perly.y" { OP *forop; - PL_copline = (line_t)yyvsp[-9].ival; - forop = newSTATEOP(0, yyvsp[-10].pval, + PL_copline = (line_t)(yyvsp[-9].ival); + forop = newSTATEOP(0, (yyvsp[-10].pval), newWHILEOP(0, 1, (LOOP*)Nullop, - yyvsp[-9].ival, scalar(yyvsp[-4].opval), - yyvsp[0].opval, yyvsp[-2].opval)); - if (yyvsp[-6].opval) { + (yyvsp[-9].ival), scalar((yyvsp[-4].opval)), + (yyvsp[0].opval), (yyvsp[-2].opval))); + if ((yyvsp[-6].opval)) { forop = append_elem(OP_LINESEQ, - newSTATEOP(0, (yyvsp[-10].pval?savepv(yyvsp[-10].pval):Nullch), - yyvsp[-6].opval), + newSTATEOP(0, ((yyvsp[-10].pval)?savepv((yyvsp[-10].pval)):Nullch), + (yyvsp[-6].opval)), forop); } - yyval.opval = block_end(yyvsp[-7].ival, forop); ;} + (yyval.opval) = block_end((yyvsp[-7].ival), forop); ;} break; case 36: #line 249 "perly.y" - { yyval.opval = newSTATEOP(0, yyvsp[-2].pval, + { (yyval.opval) = newSTATEOP(0, (yyvsp[-2].pval), newWHILEOP(0, 1, (LOOP*)Nullop, - NOLINE, Nullop, yyvsp[-1].opval, yyvsp[0].opval)); ;} + NOLINE, Nullop, (yyvsp[-1].opval), (yyvsp[0].opval))); ;} break; case 37: #line 256 "perly.y" - { yyval.opval = Nullop; ;} + { (yyval.opval) = Nullop; ;} break; case 39: #line 262 "perly.y" - { (void)scan_num("1", &yylval); yyval.opval = yylval.opval; ;} + { (void)scan_num("1", &yylval); (yyval.opval) = yylval.opval; ;} break; case 41: #line 268 "perly.y" - { yyval.opval = invert(scalar(yyvsp[0].opval)); ;} + { (yyval.opval) = invert(scalar((yyvsp[0].opval))); ;} break; case 42: #line 273 "perly.y" - { yyval.opval = yyvsp[0].opval; intro_my(); ;} + { (yyval.opval) = (yyvsp[0].opval); intro_my(); ;} break; case 43: #line 277 "perly.y" - { yyval.opval = yyvsp[0].opval; intro_my(); ;} + { (yyval.opval) = (yyvsp[0].opval); intro_my(); ;} break; case 44: #line 281 "perly.y" - { yyval.opval = yyvsp[0].opval; intro_my(); ;} + { (yyval.opval) = (yyvsp[0].opval); intro_my(); ;} break; case 45: #line 285 "perly.y" - { yyval.opval = yyvsp[0].opval; intro_my(); ;} + { (yyval.opval) = (yyvsp[0].opval); intro_my(); ;} break; case 46: #line 290 "perly.y" - { yyval.pval = Nullch; ;} + { (yyval.pval) = Nullch; ;} break; case 48: #line 296 "perly.y" - { yyval.ival = 0; ;} + { (yyval.ival) = 0; ;} break; case 49: #line 298 "perly.y" - { yyval.ival = 0; ;} + { (yyval.ival) = 0; ;} break; case 50: #line 300 "perly.y" - { yyval.ival = 0; ;} + { (yyval.ival) = 0; ;} break; case 51: #line 302 "perly.y" - { yyval.ival = 0; ;} + { (yyval.ival) = 0; ;} break; case 52: #line 304 "perly.y" - { yyval.ival = 0; ;} + { (yyval.ival) = 0; ;} break; case 53: #line 308 "perly.y" - { newFORM(yyvsp[-2].ival, yyvsp[-1].opval, yyvsp[0].opval); ;} + { newFORM((yyvsp[-2].ival), (yyvsp[-1].opval), (yyvsp[0].opval)); ;} break; case 54: #line 311 "perly.y" - { yyval.opval = yyvsp[0].opval; ;} + { (yyval.opval) = (yyvsp[0].opval); ;} break; case 55: #line 312 "perly.y" - { yyval.opval = Nullop; ;} + { (yyval.opval) = Nullop; ;} break; case 56: #line 317 "perly.y" - { newMYSUB(yyvsp[-4].ival, yyvsp[-3].opval, yyvsp[-2].opval, yyvsp[-1].opval, yyvsp[0].opval); ;} + { newMYSUB((yyvsp[-4].ival), (yyvsp[-3].opval), (yyvsp[-2].opval), (yyvsp[-1].opval), (yyvsp[0].opval)); ;} break; case 57: #line 322 "perly.y" - { newATTRSUB(yyvsp[-4].ival, yyvsp[-3].opval, yyvsp[-2].opval, yyvsp[-1].opval, yyvsp[0].opval); ;} + { newATTRSUB((yyvsp[-4].ival), (yyvsp[-3].opval), (yyvsp[-2].opval), (yyvsp[-1].opval), (yyvsp[0].opval)); ;} break; case 58: #line 326 "perly.y" - { yyval.ival = start_subparse(FALSE, 0); ;} + { (yyval.ival) = start_subparse(FALSE, 0); ;} break; case 59: #line 330 "perly.y" - { yyval.ival = start_subparse(FALSE, CVf_ANON); ;} + { (yyval.ival) = start_subparse(FALSE, CVf_ANON); ;} break; case 60: #line 334 "perly.y" - { yyval.ival = start_subparse(TRUE, 0); ;} + { (yyval.ival) = start_subparse(TRUE, 0); ;} break; case 61: #line 338 "perly.y" - { STRLEN n_a; char *name = SvPV(((SVOP*)yyvsp[0].opval)->op_sv,n_a); + { STRLEN n_a; char *name = SvPV(((SVOP*)(yyvsp[0].opval))->op_sv,n_a); if (strEQ(name, "BEGIN") || strEQ(name, "END") || strEQ(name, "INIT") || strEQ(name, "CHECK")) CvSPECIAL_on(PL_compcv); - yyval.opval = yyvsp[0].opval; ;} + (yyval.opval) = (yyvsp[0].opval); ;} break; case 62: #line 347 "perly.y" - { yyval.opval = Nullop; ;} + { (yyval.opval) = Nullop; ;} break; case 64: #line 353 "perly.y" - { yyval.opval = Nullop; ;} + { (yyval.opval) = Nullop; ;} break; case 65: #line 355 "perly.y" - { yyval.opval = yyvsp[0].opval; ;} + { (yyval.opval) = (yyvsp[0].opval); ;} break; case 66: #line 357 "perly.y" - { yyval.opval = Nullop; ;} + { (yyval.opval) = Nullop; ;} break; case 67: #line 362 "perly.y" - { yyval.opval = yyvsp[0].opval; ;} + { (yyval.opval) = (yyvsp[0].opval); ;} break; case 68: #line 364 "perly.y" - { yyval.opval = Nullop; ;} + { (yyval.opval) = Nullop; ;} break; case 69: #line 368 "perly.y" - { yyval.opval = yyvsp[0].opval; ;} + { (yyval.opval) = (yyvsp[0].opval); ;} break; case 70: #line 369 "perly.y" - { yyval.opval = Nullop; PL_expect = XSTATE; ;} + { (yyval.opval) = Nullop; PL_expect = XSTATE; ;} break; case 71: #line 373 "perly.y" - { package(yyvsp[-1].opval); ;} + { package((yyvsp[-1].opval)); ;} break; case 72: @@ -386,658 +386,659 @@ case 2: case 73: #line 379 "perly.y" - { utilize(yyvsp[-6].ival, yyvsp[-5].ival, yyvsp[-3].opval, yyvsp[-2].opval, yyvsp[-1].opval); ;} + { utilize((yyvsp[-6].ival), (yyvsp[-5].ival), (yyvsp[-3].opval), (yyvsp[-2].opval), (yyvsp[-1].opval)); ;} break; case 74: #line 384 "perly.y" - { yyval.opval = newLOGOP(OP_AND, 0, yyvsp[-2].opval, yyvsp[0].opval); ;} + { (yyval.opval) = newLOGOP(OP_AND, 0, (yyvsp[-2].opval), (yyvsp[0].opval)); ;} break; case 75: #line 386 "perly.y" - { yyval.opval = newLOGOP(yyvsp[-1].ival, 0, yyvsp[-2].opval, yyvsp[0].opval); ;} + { (yyval.opval) = newLOGOP((yyvsp[-1].ival), 0, (yyvsp[-2].opval), (yyvsp[0].opval)); ;} break; case 76: #line 388 "perly.y" - { yyval.opval = newLOGOP(OP_DOR, 0, yyvsp[-2].opval, yyvsp[0].opval); ;} + { (yyval.opval) = newLOGOP(OP_DOR, 0, (yyvsp[-2].opval), (yyvsp[0].opval)); ;} break; case 78: #line 394 "perly.y" - { yyval.opval = yyvsp[-1].opval; ;} + { (yyval.opval) = (yyvsp[-1].opval); ;} break; case 79: #line 396 "perly.y" - { yyval.opval = append_elem(OP_LIST, yyvsp[-2].opval, yyvsp[0].opval); ;} + { (yyval.opval) = append_elem(OP_LIST, (yyvsp[-2].opval), (yyvsp[0].opval)); ;} break; case 81: #line 402 "perly.y" - { yyval.opval = convert(yyvsp[-2].ival, OPf_STACKED, - prepend_elem(OP_LIST, newGVREF(yyvsp[-2].ival,yyvsp[-1].opval), yyvsp[0].opval) ); ;} + { (yyval.opval) = convert((yyvsp[-2].ival), OPf_STACKED, + prepend_elem(OP_LIST, newGVREF((yyvsp[-2].ival),(yyvsp[-1].opval)), (yyvsp[0].opval)) ); ;} break; case 82: #line 405 "perly.y" - { yyval.opval = convert(yyvsp[-4].ival, OPf_STACKED, - prepend_elem(OP_LIST, newGVREF(yyvsp[-4].ival,yyvsp[-2].opval), yyvsp[-1].opval) ); ;} + { (yyval.opval) = convert((yyvsp[-4].ival), OPf_STACKED, + prepend_elem(OP_LIST, newGVREF((yyvsp[-4].ival),(yyvsp[-2].opval)), (yyvsp[-1].opval)) ); ;} break; case 83: #line 408 "perly.y" - { yyval.opval = convert(OP_ENTERSUB, OPf_STACKED, + { (yyval.opval) = convert(OP_ENTERSUB, OPf_STACKED, append_elem(OP_LIST, - prepend_elem(OP_LIST, scalar(yyvsp[-5].opval), yyvsp[-1].opval), - newUNOP(OP_METHOD, 0, yyvsp[-3].opval))); ;} + prepend_elem(OP_LIST, scalar((yyvsp[-5].opval)), (yyvsp[-1].opval)), + newUNOP(OP_METHOD, 0, (yyvsp[-3].opval)))); ;} break; case 84: #line 413 "perly.y" - { yyval.opval = convert(OP_ENTERSUB, OPf_STACKED, - append_elem(OP_LIST, scalar(yyvsp[-2].opval), - newUNOP(OP_METHOD, 0, yyvsp[0].opval))); ;} + { (yyval.opval) = convert(OP_ENTERSUB, OPf_STACKED, + append_elem(OP_LIST, scalar((yyvsp[-2].opval)), + newUNOP(OP_METHOD, 0, (yyvsp[0].opval)))); ;} break; case 85: #line 417 "perly.y" - { yyval.opval = convert(OP_ENTERSUB, OPf_STACKED, + { (yyval.opval) = convert(OP_ENTERSUB, OPf_STACKED, append_elem(OP_LIST, - prepend_elem(OP_LIST, yyvsp[-1].opval, yyvsp[0].opval), - newUNOP(OP_METHOD, 0, yyvsp[-2].opval))); ;} + prepend_elem(OP_LIST, (yyvsp[-1].opval), (yyvsp[0].opval)), + newUNOP(OP_METHOD, 0, (yyvsp[-2].opval)))); ;} break; case 86: #line 422 "perly.y" - { yyval.opval = convert(OP_ENTERSUB, OPf_STACKED, + { (yyval.opval) = convert(OP_ENTERSUB, OPf_STACKED, append_elem(OP_LIST, - prepend_elem(OP_LIST, yyvsp[-3].opval, yyvsp[-1].opval), - newUNOP(OP_METHOD, 0, yyvsp[-4].opval))); ;} + prepend_elem(OP_LIST, (yyvsp[-3].opval), (yyvsp[-1].opval)), + newUNOP(OP_METHOD, 0, (yyvsp[-4].opval)))); ;} break; case 87: #line 427 "perly.y" - { yyval.opval = convert(yyvsp[-1].ival, 0, yyvsp[0].opval); ;} + { (yyval.opval) = convert((yyvsp[-1].ival), 0, (yyvsp[0].opval)); ;} break; case 88: #line 429 "perly.y" - { yyval.opval = convert(yyvsp[-3].ival, 0, yyvsp[-1].opval); ;} + { (yyval.opval) = convert((yyvsp[-3].ival), 0, (yyvsp[-1].opval)); ;} break; case 89: #line 431 "perly.y" - { yyvsp[0].opval = newANONATTRSUB(yyvsp[-1].ival, 0, Nullop, yyvsp[0].opval); ;} + { (yyvsp[0].opval) = newANONATTRSUB((yyvsp[-1].ival), 0, Nullop, (yyvsp[0].opval)); ;} break; case 90: #line 433 "perly.y" - { yyval.opval = newUNOP(OP_ENTERSUB, OPf_STACKED, + { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, append_elem(OP_LIST, - prepend_elem(OP_LIST, yyvsp[-2].opval, yyvsp[0].opval), yyvsp[-4].opval)); ;} + prepend_elem(OP_LIST, (yyvsp[-2].opval), (yyvsp[0].opval)), (yyvsp[-4].opval))); ;} break; case 93: #line 447 "perly.y" - { yyval.opval = newBINOP(OP_GELEM, 0, yyvsp[-4].opval, scalar(yyvsp[-2].opval)); + { (yyval.opval) = newBINOP(OP_GELEM, 0, (yyvsp[-4].opval), scalar((yyvsp[-2].opval))); PL_expect = XOPERATOR; ;} break; case 94: #line 450 "perly.y" - { yyval.opval = newBINOP(OP_AELEM, 0, oopsAV(yyvsp[-3].opval), scalar(yyvsp[-1].opval)); ;} + { (yyval.opval) = newBINOP(OP_AELEM, 0, oopsAV((yyvsp[-3].opval)), scalar((yyvsp[-1].opval))); ;} break; case 95: #line 452 "perly.y" - { yyval.opval = newBINOP(OP_AELEM, 0, - ref(newAVREF(yyvsp[-4].opval),OP_RV2AV), - scalar(yyvsp[-1].opval));;} + { (yyval.opval) = newBINOP(OP_AELEM, 0, + ref(newAVREF((yyvsp[-4].opval)),OP_RV2AV), + scalar((yyvsp[-1].opval)));;} break; case 96: #line 456 "perly.y" - { yyval.opval = newBINOP(OP_AELEM, 0, - ref(newAVREF(yyvsp[-3].opval),OP_RV2AV), - scalar(yyvsp[-1].opval));;} + { (yyval.opval) = newBINOP(OP_AELEM, 0, + ref(newAVREF((yyvsp[-3].opval)),OP_RV2AV), + scalar((yyvsp[-1].opval)));;} break; case 97: #line 460 "perly.y" - { yyval.opval = newBINOP(OP_HELEM, 0, oopsHV(yyvsp[-4].opval), jmaybe(yyvsp[-2].opval)); + { (yyval.opval) = newBINOP(OP_HELEM, 0, oopsHV((yyvsp[-4].opval)), jmaybe((yyvsp[-2].opval))); PL_expect = XOPERATOR; ;} break; case 98: #line 463 "perly.y" - { yyval.opval = newBINOP(OP_HELEM, 0, - ref(newHVREF(yyvsp[-5].opval),OP_RV2HV), - jmaybe(yyvsp[-2].opval)); + { (yyval.opval) = newBINOP(OP_HELEM, 0, + ref(newHVREF((yyvsp[-5].opval)),OP_RV2HV), + jmaybe((yyvsp[-2].opval))); PL_expect = XOPERATOR; ;} break; case 99: #line 468 "perly.y" - { yyval.opval = newBINOP(OP_HELEM, 0, - ref(newHVREF(yyvsp[-4].opval),OP_RV2HV), - jmaybe(yyvsp[-2].opval)); + { (yyval.opval) = newBINOP(OP_HELEM, 0, + ref(newHVREF((yyvsp[-4].opval)),OP_RV2HV), + jmaybe((yyvsp[-2].opval))); PL_expect = XOPERATOR; ;} break; case 100: #line 473 "perly.y" - { yyval.opval = newUNOP(OP_ENTERSUB, OPf_STACKED, - newCVREF(0, scalar(yyvsp[-3].opval))); ;} + { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, + newCVREF(0, scalar((yyvsp[-3].opval)))); ;} break; case 101: #line 476 "perly.y" - { yyval.opval = newUNOP(OP_ENTERSUB, OPf_STACKED, - append_elem(OP_LIST, yyvsp[-1].opval, - newCVREF(0, scalar(yyvsp[-4].opval)))); ;} + { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, + append_elem(OP_LIST, (yyvsp[-1].opval), + newCVREF(0, scalar((yyvsp[-4].opval))))); ;} break; case 102: #line 481 "perly.y" - { yyval.opval = newUNOP(OP_ENTERSUB, OPf_STACKED, - append_elem(OP_LIST, yyvsp[-1].opval, - newCVREF(0, scalar(yyvsp[-3].opval)))); ;} + { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, + append_elem(OP_LIST, (yyvsp[-1].opval), + newCVREF(0, scalar((yyvsp[-3].opval))))); ;} break; case 103: #line 485 "perly.y" - { yyval.opval = newUNOP(OP_ENTERSUB, OPf_STACKED, - newCVREF(0, scalar(yyvsp[-2].opval))); ;} + { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, + newCVREF(0, scalar((yyvsp[-2].opval)))); ;} break; case 104: #line 491 "perly.y" - { yyval.opval = newASSIGNOP(OPf_STACKED, yyvsp[-2].opval, yyvsp[-1].ival, yyvsp[0].opval); ;} + { (yyval.opval) = newASSIGNOP(OPf_STACKED, (yyvsp[-2].opval), (yyvsp[-1].ival), (yyvsp[0].opval)); ;} break; case 105: #line 493 "perly.y" - { yyval.opval = newBINOP(yyvsp[-1].ival, 0, scalar(yyvsp[-2].opval), scalar(yyvsp[0].opval)); ;} + { (yyval.opval) = newBINOP((yyvsp[-1].ival), 0, scalar((yyvsp[-2].opval)), scalar((yyvsp[0].opval))); ;} break; case 106: #line 495 "perly.y" - { if (yyvsp[-1].ival != OP_REPEAT) - scalar(yyvsp[-2].opval); - yyval.opval = newBINOP(yyvsp[-1].ival, 0, yyvsp[-2].opval, scalar(yyvsp[0].opval)); ;} + { if ((yyvsp[-1].ival) != OP_REPEAT) + scalar((yyvsp[-2].opval)); + (yyval.opval) = newBINOP((yyvsp[-1].ival), 0, (yyvsp[-2].opval), scalar((yyvsp[0].opval))); ;} break; case 107: #line 499 "perly.y" - { yyval.opval = newBINOP(yyvsp[-1].ival, 0, scalar(yyvsp[-2].opval), scalar(yyvsp[0].opval)); ;} + { (yyval.opval) = newBINOP((yyvsp[-1].ival), 0, scalar((yyvsp[-2].opval)), scalar((yyvsp[0].opval))); ;} break; case 108: #line 501 "perly.y" - { yyval.opval = newBINOP(yyvsp[-1].ival, 0, scalar(yyvsp[-2].opval), scalar(yyvsp[0].opval)); ;} + { (yyval.opval) = newBINOP((yyvsp[-1].ival), 0, scalar((yyvsp[-2].opval)), scalar((yyvsp[0].opval))); ;} break; case 109: #line 503 "perly.y" - { yyval.opval = newBINOP(yyvsp[-1].ival, 0, scalar(yyvsp[-2].opval), scalar(yyvsp[0].opval)); ;} + { (yyval.opval) = newBINOP((yyvsp[-1].ival), 0, scalar((yyvsp[-2].opval)), scalar((yyvsp[0].opval))); ;} break; case 110: #line 505 "perly.y" - { yyval.opval = newBINOP(yyvsp[-1].ival, 0, scalar(yyvsp[-2].opval), scalar(yyvsp[0].opval)); ;} + { (yyval.opval) = newBINOP((yyvsp[-1].ival), 0, scalar((yyvsp[-2].opval)), scalar((yyvsp[0].opval))); ;} break; case 111: #line 507 "perly.y" - { yyval.opval = newBINOP(yyvsp[-1].ival, 0, scalar(yyvsp[-2].opval), scalar(yyvsp[0].opval)); ;} + { (yyval.opval) = newBINOP((yyvsp[-1].ival), 0, scalar((yyvsp[-2].opval)), scalar((yyvsp[0].opval))); ;} break; case 112: #line 509 "perly.y" - { yyval.opval = newBINOP(yyvsp[-1].ival, 0, scalar(yyvsp[-2].opval), scalar(yyvsp[0].opval)); ;} + { (yyval.opval) = newBINOP((yyvsp[-1].ival), 0, scalar((yyvsp[-2].opval)), scalar((yyvsp[0].opval))); ;} break; case 113: #line 511 "perly.y" - { yyval.opval = newRANGE(yyvsp[-1].ival, scalar(yyvsp[-2].opval), scalar(yyvsp[0].opval));;} + { (yyval.opval) = newRANGE((yyvsp[-1].ival), scalar((yyvsp[-2].opval)), scalar((yyvsp[0].opval)));;} break; case 114: #line 513 "perly.y" - { yyval.opval = newLOGOP(OP_AND, 0, yyvsp[-2].opval, yyvsp[0].opval); ;} + { (yyval.opval) = newLOGOP(OP_AND, 0, (yyvsp[-2].opval), (yyvsp[0].opval)); ;} break; case 115: #line 515 "perly.y" - { yyval.opval = newLOGOP(OP_OR, 0, yyvsp[-2].opval, yyvsp[0].opval); ;} + { (yyval.opval) = newLOGOP(OP_OR, 0, (yyvsp[-2].opval), (yyvsp[0].opval)); ;} break; case 116: #line 517 "perly.y" - { yyval.opval = newLOGOP(OP_DOR, 0, yyvsp[-2].opval, yyvsp[0].opval); ;} + { (yyval.opval) = newLOGOP(OP_DOR, 0, (yyvsp[-2].opval), (yyvsp[0].opval)); ;} break; case 117: #line 519 "perly.y" - { yyval.opval = bind_match(yyvsp[-1].ival, yyvsp[-2].opval, yyvsp[0].opval); ;} + { (yyval.opval) = bind_match((yyvsp[-1].ival), (yyvsp[-2].opval), (yyvsp[0].opval)); ;} break; case 118: #line 524 "perly.y" - { yyval.opval = newUNOP(OP_NEGATE, 0, scalar(yyvsp[0].opval)); ;} + { (yyval.opval) = newUNOP(OP_NEGATE, 0, scalar((yyvsp[0].opval))); ;} break; case 119: #line 526 "perly.y" - { yyval.opval = yyvsp[0].opval; ;} + { (yyval.opval) = (yyvsp[0].opval); ;} break; case 120: #line 528 "perly.y" - { yyval.opval = newUNOP(OP_NOT, 0, scalar(yyvsp[0].opval)); ;} + { (yyval.opval) = newUNOP(OP_NOT, 0, scalar((yyvsp[0].opval))); ;} break; case 121: #line 530 "perly.y" - { yyval.opval = newUNOP(OP_COMPLEMENT, 0, scalar(yyvsp[0].opval));;} + { (yyval.opval) = newUNOP(OP_COMPLEMENT, 0, scalar((yyvsp[0].opval)));;} break; case 122: #line 532 "perly.y" - { yyval.opval = newUNOP(OP_POSTINC, 0, - mod(scalar(yyvsp[-1].opval), OP_POSTINC)); ;} + { (yyval.opval) = newUNOP(OP_POSTINC, 0, + mod(scalar((yyvsp[-1].opval)), OP_POSTINC)); ;} break; case 123: #line 535 "perly.y" - { yyval.opval = newUNOP(OP_POSTDEC, 0, - mod(scalar(yyvsp[-1].opval), OP_POSTDEC)); ;} + { (yyval.opval) = newUNOP(OP_POSTDEC, 0, + mod(scalar((yyvsp[-1].opval)), OP_POSTDEC)); ;} break; case 124: #line 538 "perly.y" - { yyval.opval = newUNOP(OP_PREINC, 0, - mod(scalar(yyvsp[0].opval), OP_PREINC)); ;} + { (yyval.opval) = newUNOP(OP_PREINC, 0, + mod(scalar((yyvsp[0].opval)), OP_PREINC)); ;} break; case 125: #line 541 "perly.y" - { yyval.opval = newUNOP(OP_PREDEC, 0, - mod(scalar(yyvsp[0].opval), OP_PREDEC)); ;} + { (yyval.opval) = newUNOP(OP_PREDEC, 0, + mod(scalar((yyvsp[0].opval)), OP_PREDEC)); ;} break; case 126: #line 548 "perly.y" - { yyval.opval = newANONLIST(yyvsp[-1].opval); ;} + { (yyval.opval) = newANONLIST((yyvsp[-1].opval)); ;} break; case 127: #line 550 "perly.y" - { yyval.opval = newANONLIST(Nullop); ;} + { (yyval.opval) = newANONLIST(Nullop); ;} break; case 128: #line 552 "perly.y" - { yyval.opval = newANONHASH(yyvsp[-2].opval); ;} + { (yyval.opval) = newANONHASH((yyvsp[-2].opval)); ;} break; case 129: #line 554 "perly.y" - { yyval.opval = newANONHASH(Nullop); ;} + { (yyval.opval) = newANONHASH(Nullop); ;} break; case 130: #line 556 "perly.y" - { yyval.opval = newANONATTRSUB(yyvsp[-3].ival, yyvsp[-2].opval, yyvsp[-1].opval, yyvsp[0].opval); ;} + { (yyval.opval) = newANONATTRSUB((yyvsp[-3].ival), (yyvsp[-2].opval), (yyvsp[-1].opval), (yyvsp[0].opval)); ;} break; case 131: #line 562 "perly.y" - { yyval.opval = dofile(yyvsp[0].opval); ;} + { (yyval.opval) = dofile((yyvsp[0].opval)); ;} break; case 132: #line 564 "perly.y" - { yyval.opval = newUNOP(OP_NULL, OPf_SPECIAL, scope(yyvsp[0].opval)); ;} + { (yyval.opval) = newUNOP(OP_NULL, OPf_SPECIAL, scope((yyvsp[0].opval))); ;} break; case 133: #line 566 "perly.y" - { yyval.opval = newUNOP(OP_ENTERSUB, + { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_SPECIAL|OPf_STACKED, prepend_elem(OP_LIST, scalar(newCVREF( (OPpENTERSUB_AMPER<<8), - scalar(yyvsp[-2].opval) + scalar((yyvsp[-2].opval)) )),Nullop)); dep();;} break; case 134: #line 574 "perly.y" - { yyval.opval = newUNOP(OP_ENTERSUB, + { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_SPECIAL|OPf_STACKED, append_elem(OP_LIST, - yyvsp[-1].opval, + (yyvsp[-1].opval), scalar(newCVREF( (OPpENTERSUB_AMPER<<8), - scalar(yyvsp[-3].opval) + scalar((yyvsp[-3].opval)) )))); dep();;} break; case 135: #line 583 "perly.y" - { yyval.opval = newUNOP(OP_ENTERSUB, OPf_SPECIAL|OPf_STACKED, + { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_SPECIAL|OPf_STACKED, prepend_elem(OP_LIST, - scalar(newCVREF(0,scalar(yyvsp[-2].opval))), Nullop)); dep();;} + scalar(newCVREF(0,scalar((yyvsp[-2].opval)))), Nullop)); dep();;} break; case 136: #line 587 "perly.y" - { yyval.opval = newUNOP(OP_ENTERSUB, OPf_SPECIAL|OPf_STACKED, + { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_SPECIAL|OPf_STACKED, prepend_elem(OP_LIST, - yyvsp[-1].opval, - scalar(newCVREF(0,scalar(yyvsp[-3].opval))))); dep();;} + (yyvsp[-1].opval), + scalar(newCVREF(0,scalar((yyvsp[-3].opval)))))); dep();;} break; case 141: #line 599 "perly.y" - { yyval.opval = newCONDOP(0, yyvsp[-4].opval, yyvsp[-2].opval, yyvsp[0].opval); ;} + { (yyval.opval) = newCONDOP(0, (yyvsp[-4].opval), (yyvsp[-2].opval), (yyvsp[0].opval)); ;} break; case 142: #line 601 "perly.y" - { yyval.opval = newUNOP(OP_REFGEN, 0, mod(yyvsp[0].opval,OP_REFGEN)); ;} + { (yyval.opval) = newUNOP(OP_REFGEN, 0, mod((yyvsp[0].opval),OP_REFGEN)); ;} break; case 143: #line 603 "perly.y" - { yyval.opval = yyvsp[0].opval; ;} + { (yyval.opval) = (yyvsp[0].opval); ;} break; case 144: #line 605 "perly.y" - { yyval.opval = localize(yyvsp[0].opval,yyvsp[-1].ival); ;} + { (yyval.opval) = localize((yyvsp[0].opval),(yyvsp[-1].ival)); ;} break; case 145: #line 607 "perly.y" - { yyval.opval = sawparens(yyvsp[-1].opval); ;} + { (yyval.opval) = sawparens((yyvsp[-1].opval)); ;} break; case 146: #line 609 "perly.y" - { yyval.opval = sawparens(newNULLLIST()); ;} + { (yyval.opval) = sawparens(newNULLLIST()); ;} break; case 147: #line 611 "perly.y" - { yyval.opval = yyvsp[0].opval; ;} + { (yyval.opval) = (yyvsp[0].opval); ;} break; case 148: #line 613 "perly.y" - { yyval.opval = yyvsp[0].opval; ;} + { (yyval.opval) = (yyvsp[0].opval); ;} break; case 149: #line 615 "perly.y" - { yyval.opval = yyvsp[0].opval; ;} + { (yyval.opval) = (yyvsp[0].opval); ;} break; case 150: #line 617 "perly.y" - { yyval.opval = yyvsp[0].opval; ;} + { (yyval.opval) = (yyvsp[0].opval); ;} break; case 151: #line 619 "perly.y" - { yyval.opval = newUNOP(OP_AV2ARYLEN, 0, ref(yyvsp[0].opval, OP_AV2ARYLEN));;} + { (yyval.opval) = newUNOP(OP_AV2ARYLEN, 0, ref((yyvsp[0].opval), OP_AV2ARYLEN));;} break; case 152: #line 621 "perly.y" - { yyval.opval = yyvsp[0].opval; ;} + { (yyval.opval) = (yyvsp[0].opval); ;} break; case 153: #line 623 "perly.y" - { yyval.opval = newSLICEOP(0, yyvsp[-1].opval, yyvsp[-4].opval); ;} + { (yyval.opval) = newSLICEOP(0, (yyvsp[-1].opval), (yyvsp[-4].opval)); ;} break; case 154: #line 625 "perly.y" - { yyval.opval = newSLICEOP(0, yyvsp[-1].opval, Nullop); ;} + { (yyval.opval) = newSLICEOP(0, (yyvsp[-1].opval), Nullop); ;} break; case 155: #line 627 "perly.y" - { yyval.opval = prepend_elem(OP_ASLICE, + { (yyval.opval) = prepend_elem(OP_ASLICE, newOP(OP_PUSHMARK, 0), newLISTOP(OP_ASLICE, 0, - list(yyvsp[-1].opval), - ref(yyvsp[-3].opval, OP_ASLICE))); ;} + list((yyvsp[-1].opval)), + ref((yyvsp[-3].opval), OP_ASLICE))); ;} break; case 156: #line 633 "perly.y" - { yyval.opval = prepend_elem(OP_HSLICE, + { (yyval.opval) = prepend_elem(OP_HSLICE, newOP(OP_PUSHMARK, 0), newLISTOP(OP_HSLICE, 0, - list(yyvsp[-2].opval), - ref(oopsHV(yyvsp[-4].opval), OP_HSLICE))); + list((yyvsp[-2].opval)), + ref(oopsHV((yyvsp[-4].opval)), OP_HSLICE))); PL_expect = XOPERATOR; ;} break; case 157: #line 640 "perly.y" - { yyval.opval = yyvsp[0].opval; ;} + { (yyval.opval) = (yyvsp[0].opval); ;} break; case 158: #line 642 "perly.y" - { yyval.opval = newUNOP(OP_ENTERSUB, 0, scalar(yyvsp[0].opval)); ;} + { (yyval.opval) = newUNOP(OP_ENTERSUB, 0, scalar((yyvsp[0].opval))); ;} break; case 159: #line 644 "perly.y" - { yyval.opval = newUNOP(OP_ENTERSUB, OPf_STACKED, scalar(yyvsp[-2].opval)); ;} + { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, scalar((yyvsp[-2].opval))); ;} break; case 160: #line 646 "perly.y" - { yyval.opval = newUNOP(OP_ENTERSUB, OPf_STACKED, - append_elem(OP_LIST, yyvsp[-1].opval, scalar(yyvsp[-3].opval))); ;} + { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, + append_elem(OP_LIST, (yyvsp[-1].opval), scalar((yyvsp[-3].opval)))); ;} break; case 161: #line 649 "perly.y" - { yyval.opval = newUNOP(OP_ENTERSUB, OPf_STACKED, - append_elem(OP_LIST, yyvsp[0].opval, scalar(yyvsp[-1].opval))); ;} + { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, + append_elem(OP_LIST, (yyvsp[0].opval), scalar((yyvsp[-1].opval)))); ;} break; case 162: #line 652 "perly.y" - { yyval.opval = newOP(yyvsp[0].ival, OPf_SPECIAL); + { (yyval.opval) = newOP((yyvsp[0].ival), OPf_SPECIAL); PL_hints |= HINT_BLOCK_SCOPE; ;} break; case 163: #line 655 "perly.y" - { yyval.opval = newLOOPEX(yyvsp[-1].ival,yyvsp[0].opval); ;} + { (yyval.opval) = newLOOPEX((yyvsp[-1].ival),(yyvsp[0].opval)); ;} break; case 164: #line 657 "perly.y" - { yyval.opval = newUNOP(OP_NOT, 0, scalar(yyvsp[0].opval)); ;} + { (yyval.opval) = newUNOP(OP_NOT, 0, scalar((yyvsp[0].opval))); ;} break; case 165: #line 659 "perly.y" - { yyval.opval = newOP(yyvsp[0].ival, 0); ;} + { (yyval.opval) = newOP((yyvsp[0].ival), 0); ;} break; case 166: #line 661 "perly.y" - { yyval.opval = newUNOP(yyvsp[-1].ival, 0, yyvsp[0].opval); ;} + { (yyval.opval) = newUNOP((yyvsp[-1].ival), 0, (yyvsp[0].opval)); ;} break; case 167: #line 663 "perly.y" - { yyval.opval = newUNOP(yyvsp[-1].ival, 0, yyvsp[0].opval); ;} + { (yyval.opval) = newUNOP((yyvsp[-1].ival), 0, (yyvsp[0].opval)); ;} break; case 168: #line 665 "perly.y" - { yyval.opval = newUNOP(OP_ENTERSUB, OPf_STACKED, - append_elem(OP_LIST, yyvsp[0].opval, scalar(yyvsp[-1].opval))); ;} + { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, + append_elem(OP_LIST, (yyvsp[0].opval), scalar((yyvsp[-1].opval)))); ;} break; case 169: #line 668 "perly.y" - { yyval.opval = newOP(yyvsp[0].ival, 0); ;} + { (yyval.opval) = newOP((yyvsp[0].ival), 0); ;} break; case 170: #line 670 "perly.y" - { yyval.opval = newOP(yyvsp[-2].ival, 0); ;} + { (yyval.opval) = newOP((yyvsp[-2].ival), 0); ;} break; case 171: #line 672 "perly.y" - { yyval.opval = newUNOP(OP_ENTERSUB, OPf_STACKED, - scalar(yyvsp[0].opval)); ;} + { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, + scalar((yyvsp[0].opval))); ;} break; case 172: #line 675 "perly.y" - { yyval.opval = newOP(yyvsp[-2].ival, OPf_SPECIAL); ;} + { (yyval.opval) = (yyvsp[-2].ival) == OP_NOT ? newUNOP((yyvsp[-2].ival), 0, newSVOP(OP_CONST, 0, newSViv(0))) + : newOP((yyvsp[-2].ival), OPf_SPECIAL); ;} break; case 173: -#line 677 "perly.y" - { yyval.opval = newUNOP(yyvsp[-3].ival, 0, yyvsp[-1].opval); ;} +#line 678 "perly.y" + { (yyval.opval) = newUNOP((yyvsp[-3].ival), 0, (yyvsp[-1].opval)); ;} break; case 174: -#line 679 "perly.y" - { yyval.opval = pmruntime(yyvsp[-3].opval, yyvsp[-1].opval, 1); ;} +#line 680 "perly.y" + { (yyval.opval) = pmruntime((yyvsp[-3].opval), (yyvsp[-1].opval), 1); ;} break; case 177: -#line 686 "perly.y" - { yyval.opval = my_attrs(yyvsp[-1].opval,yyvsp[0].opval); ;} +#line 687 "perly.y" + { (yyval.opval) = my_attrs((yyvsp[-1].opval),(yyvsp[0].opval)); ;} break; case 178: -#line 688 "perly.y" - { yyval.opval = localize(yyvsp[0].opval,yyvsp[-1].ival); ;} +#line 689 "perly.y" + { (yyval.opval) = localize((yyvsp[0].opval),(yyvsp[-1].ival)); ;} break; case 179: -#line 693 "perly.y" - { yyval.opval = sawparens(yyvsp[-1].opval); ;} +#line 694 "perly.y" + { (yyval.opval) = sawparens((yyvsp[-1].opval)); ;} break; case 180: -#line 695 "perly.y" - { yyval.opval = sawparens(newNULLLIST()); ;} +#line 696 "perly.y" + { (yyval.opval) = sawparens(newNULLLIST()); ;} break; case 181: -#line 697 "perly.y" - { yyval.opval = yyvsp[0].opval; ;} +#line 698 "perly.y" + { (yyval.opval) = (yyvsp[0].opval); ;} break; case 182: -#line 699 "perly.y" - { yyval.opval = yyvsp[0].opval; ;} +#line 700 "perly.y" + { (yyval.opval) = (yyvsp[0].opval); ;} break; case 183: -#line 701 "perly.y" - { yyval.opval = yyvsp[0].opval; ;} +#line 702 "perly.y" + { (yyval.opval) = (yyvsp[0].opval); ;} break; case 184: -#line 706 "perly.y" - { yyval.opval = Nullop; ;} +#line 707 "perly.y" + { (yyval.opval) = Nullop; ;} break; case 185: -#line 708 "perly.y" - { yyval.opval = yyvsp[0].opval; ;} +#line 709 "perly.y" + { (yyval.opval) = (yyvsp[0].opval); ;} break; case 186: -#line 712 "perly.y" - { yyval.opval = Nullop; ;} +#line 713 "perly.y" + { (yyval.opval) = Nullop; ;} break; case 187: -#line 714 "perly.y" - { yyval.opval = yyvsp[0].opval; ;} +#line 715 "perly.y" + { (yyval.opval) = (yyvsp[0].opval); ;} break; case 188: -#line 716 "perly.y" - { yyval.opval = yyvsp[-1].opval; ;} +#line 717 "perly.y" + { (yyval.opval) = (yyvsp[-1].opval); ;} break; case 189: -#line 722 "perly.y" - { PL_in_my = 0; yyval.opval = my(yyvsp[0].opval); ;} +#line 723 "perly.y" + { PL_in_my = 0; (yyval.opval) = my((yyvsp[0].opval)); ;} break; case 190: -#line 726 "perly.y" - { yyval.opval = newCVREF(yyvsp[-1].ival,yyvsp[0].opval); ;} +#line 727 "perly.y" + { (yyval.opval) = newCVREF((yyvsp[-1].ival),(yyvsp[0].opval)); ;} break; case 191: -#line 730 "perly.y" - { yyval.opval = newSVREF(yyvsp[0].opval); ;} +#line 731 "perly.y" + { (yyval.opval) = newSVREF((yyvsp[0].opval)); ;} break; case 192: -#line 734 "perly.y" - { yyval.opval = newAVREF(yyvsp[0].opval); ;} +#line 735 "perly.y" + { (yyval.opval) = newAVREF((yyvsp[0].opval)); ;} break; case 193: -#line 738 "perly.y" - { yyval.opval = newHVREF(yyvsp[0].opval); ;} +#line 739 "perly.y" + { (yyval.opval) = newHVREF((yyvsp[0].opval)); ;} break; case 194: -#line 742 "perly.y" - { yyval.opval = newAVREF(yyvsp[0].opval); ;} +#line 743 "perly.y" + { (yyval.opval) = newAVREF((yyvsp[0].opval)); ;} break; case 195: -#line 746 "perly.y" - { yyval.opval = newGVREF(0,yyvsp[0].opval); ;} +#line 747 "perly.y" + { (yyval.opval) = newGVREF(0,(yyvsp[0].opval)); ;} break; case 196: -#line 751 "perly.y" - { yyval.opval = scalar(yyvsp[0].opval); ;} +#line 752 "perly.y" + { (yyval.opval) = scalar((yyvsp[0].opval)); ;} break; case 197: -#line 753 "perly.y" - { yyval.opval = scalar(yyvsp[0].opval); ;} +#line 754 "perly.y" + { (yyval.opval) = scalar((yyvsp[0].opval)); ;} break; case 198: -#line 755 "perly.y" - { yyval.opval = scope(yyvsp[0].opval); ;} +#line 756 "perly.y" + { (yyval.opval) = scope((yyvsp[0].opval)); ;} break; case 199: -#line 758 "perly.y" - { yyval.opval = yyvsp[0].opval; ;} +#line 759 "perly.y" + { (yyval.opval) = (yyvsp[0].opval); ;} break; @@ -1,8 +1,8 @@ #ifdef PERL_CORE -/* A Bison parser, made by GNU Bison 1.875. */ +/* A Bison parser, made by GNU Bison 2.0. */ /* Skeleton parser for Yacc-like parsing with Bison, - Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software Foundation, Inc. + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 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 @@ -171,8 +171,8 @@ typedef union YYSTYPE { OP *opval; GV *gvval; } YYSTYPE; -/* Line 1248 of yacc.c. */ -#line 173 "perly.h" +/* Line 1318 of yacc.c. */ +#line 174 "perly.h" # define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 # define YYSTYPE_IS_TRIVIAL 1 @@ -59,7 +59,7 @@ static const unsigned char yytranslate[] = #if YYDEBUG /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in YYRHS. */ -static const unsigned short yyprhs[] = +static const unsigned short int yyprhs[] = { 0, 0, 3, 6, 11, 12, 13, 18, 19, 20, 21, 24, 28, 31, 33, 36, 40, 42, 44, 48, @@ -84,7 +84,7 @@ static const unsigned short yyprhs[] = }; /* YYRHS -- A `-1'-separated list of the rules' RHS. */ -static const short yyrhs[] = +static const short int yyrhs[] = { 86, 0, -1, 89, 93, -1, 3, 88, 93, 76, -1, -1, -1, 3, 91, 93, 76, -1, -1, -1, @@ -159,7 +159,7 @@ static const short yyrhs[] = }; /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ -static const unsigned short yyrline[] = +static const unsigned short int yyrline[] = { 0, 95, 95, 101, 108, 112, 118, 125, 129, 133, 134, 136, 145, 147, 148, 157, 163, 165, 167, 169, @@ -178,9 +178,9 @@ static const unsigned short yyrline[] = 597, 598, 600, 602, 604, 606, 608, 610, 612, 614, 616, 618, 620, 622, 624, 626, 632, 639, 641, 643, 645, 648, 651, 654, 656, 658, 660, 662, 664, 667, - 669, 671, 674, 676, 678, 680, 681, 685, 687, 692, - 694, 696, 698, 700, 705, 707, 712, 713, 715, 721, - 725, 729, 733, 737, 741, 745, 750, 752, 754, 757 + 669, 671, 674, 677, 679, 681, 682, 686, 688, 693, + 695, 697, 699, 701, 706, 708, 713, 714, 716, 722, + 726, 730, 734, 738, 742, 746, 751, 753, 755, 758 }; #endif @@ -189,26 +189,26 @@ static const unsigned short yyrline[] = First, the terminals, then, starting at YYNTOKENS, nonterminals. */ static const char *const yytname[] = { - "$end", "error", "$undefined", "'{'", "WORD", "METHOD", "FUNCMETH", - "THING", "PMFUNC", "PRIVATEREF", "FUNC0SUB", "UNIOPSUB", "LSTOPSUB", - "LABEL", "FORMAT", "SUB", "ANONSUB", "PACKAGE", "USE", "WHILE", "UNTIL", - "IF", "UNLESS", "ELSE", "ELSIF", "CONTINUE", "FOR", "LOOPEX", "DOTDOT", - "FUNC0", "FUNC1", "FUNC", "UNIOP", "LSTOP", "RELOP", "EQOP", "MULOP", - "ADDOP", "DOLSHARP", "DO", "HASHBRACK", "NOAMP", "LOCAL", "MY", "MYSUB", - "COLONATTR", "'&'", "PREC_LOW", "DOROP", "OROP", "ANDOP", "NOTOP", - "','", "ASSIGNOP", "'?'", "':'", "DORDOR", "OROR", "ANDAND", "BITOROP", - "BITANDOP", "SHIFTOP", "MATCHOP", "'!'", "'~'", "REFGEN", "UMINUS", - "POWOP", "POSTDEC", "POSTINC", "PREDEC", "PREINC", "ARROW", "')'", - "'('", "'['", "'}'", "';'", "']'", "'-'", "'+'", "'$'", "'@'", "'%'", - "'*'", "$accept", "prog", "block", "remember", "progstart", "mblock", - "mremember", "savescope", "lineseq", "line", "sideff", "else", "cond", - "cont", "loop", "nexpr", "texpr", "iexpr", "mexpr", "mnexpr", "mtexpr", - "miexpr", "label", "decl", "format", "formname", "mysubrout", "subrout", - "startsub", "startanonsub", "startformsub", "subname", "proto", - "subattrlist", "myattrlist", "subbody", "package", "use", "@1", "expr", - "argexpr", "listop", "@2", "method", "subscripted", "termbinop", - "termunop", "anonymous", "termdo", "term", "myattrterm", "myterm", - "listexpr", "listexprcom", "my_scalar", "amper", "scalar", "ary", "hsh", + "$end", "error", "$undefined", "'{'", "WORD", "METHOD", "FUNCMETH", + "THING", "PMFUNC", "PRIVATEREF", "FUNC0SUB", "UNIOPSUB", "LSTOPSUB", + "LABEL", "FORMAT", "SUB", "ANONSUB", "PACKAGE", "USE", "WHILE", "UNTIL", + "IF", "UNLESS", "ELSE", "ELSIF", "CONTINUE", "FOR", "LOOPEX", "DOTDOT", + "FUNC0", "FUNC1", "FUNC", "UNIOP", "LSTOP", "RELOP", "EQOP", "MULOP", + "ADDOP", "DOLSHARP", "DO", "HASHBRACK", "NOAMP", "LOCAL", "MY", "MYSUB", + "COLONATTR", "'&'", "PREC_LOW", "DOROP", "OROP", "ANDOP", "NOTOP", "','", + "ASSIGNOP", "'?'", "':'", "DORDOR", "OROR", "ANDAND", "BITOROP", + "BITANDOP", "SHIFTOP", "MATCHOP", "'!'", "'~'", "REFGEN", "UMINUS", + "POWOP", "POSTDEC", "POSTINC", "PREDEC", "PREINC", "ARROW", "')'", "'('", + "'['", "'}'", "';'", "']'", "'-'", "'+'", "'$'", "'@'", "'%'", "'*'", + "$accept", "prog", "block", "remember", "progstart", "mblock", + "mremember", "savescope", "lineseq", "line", "sideff", "else", "cond", + "cont", "loop", "nexpr", "texpr", "iexpr", "mexpr", "mnexpr", "mtexpr", + "miexpr", "label", "decl", "format", "formname", "mysubrout", "subrout", + "startsub", "startanonsub", "startformsub", "subname", "proto", + "subattrlist", "myattrlist", "subbody", "package", "use", "@1", "expr", + "argexpr", "listop", "@2", "method", "subscripted", "termbinop", + "termunop", "anonymous", "termdo", "term", "myattrterm", "myterm", + "listexpr", "listexprcom", "my_scalar", "amper", "scalar", "ary", "hsh", "arylen", "star", "indirob", 0 }; #endif @@ -216,7 +216,7 @@ static const char *const yytname[] = # ifdef YYPRINT /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to token YYLEX-NUM. */ -static const unsigned short yytoknum[] = +static const unsigned short int yytoknum[] = { 0, 256, 257, 123, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, @@ -328,7 +328,7 @@ static const unsigned char yydefact[] = }; /* YYDEFGOTO[NTERM-NUM]. */ -static const short yydefgoto[] = +static const short int yydefgoto[] = { -1, 1, 104, 101, 2, 361, 372, 10, 4, 23, 300, 377, 79, 162, 24, 301, 290, 293, 295, 303, @@ -342,7 +342,7 @@ static const short yydefgoto[] = /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing STATE-NUM. */ #define YYPACT_NINF -343 -static const short yypact[] = +static const short int yypact[] = { -343, 9, -343, -343, 147, -343, -343, 8, -343, -343, 7, -343, -343, -343, -343, -343, -343, 19, 52, -8, @@ -387,7 +387,7 @@ static const short yypact[] = }; /* YYPGOTO[NTERM-NUM]. */ -static const short yypgoto[] = +static const short int yypgoto[] = { -343, -343, -23, -98, -343, 22, -343, -343, -100, -343, 305, -342, -343, -112, -343, -343, -343, 194, -210, -36, @@ -403,7 +403,7 @@ static const short yypgoto[] = number is the opposite. If zero, do what YYDEFACT says. If YYTABLE_NINF, syntax error. */ #define YYTABLE_NINF -176 -static const short yytable[] = +static const short int yytable[] = { 80, 204, 77, 126, 96, 302, 286, 205, 203, 3, 100, 145, 19, 195, 210, 211, 212, 213, 214, 215, @@ -602,7 +602,7 @@ static const short yytable[] = 0, 0, 0, 190, 191, 192, 0, 0, 193 }; -static const short yycheck[] = +static const short int yycheck[] = { 25, 101, 25, 54, 27, 215, 206, 106, 100, 0, 32, 62, 4, 3, 112, 113, 114, 115, 116, 117, @@ -672,7 +672,8 @@ term : termbinop { $$ = newUNOP(OP_ENTERSUB, OPf_STACKED, scalar($1)); } | FUNC1 '(' ')' /* not () */ - { $$ = newOP($1, OPf_SPECIAL); } + { $$ = $1 == OP_NOT ? newUNOP($1, 0, newSVOP(OP_CONST, 0, newSViv(0))) + : newOP($1, OPf_SPECIAL); } | FUNC1 '(' expr ')' /* not($foo) */ { $$ = newUNOP($1, 0, $3); } | PMFUNC '(' argexpr ')' /* m//, s///, tr/// */ diff --git a/t/op/not.t b/t/op/not.t new file mode 100644 index 0000000000..5ff65beaa1 --- /dev/null +++ b/t/op/not.t @@ -0,0 +1,13 @@ +#!./perl -w + +BEGIN { + chdir 't' if -d 't'; + @INC = '../lib'; + require './test.pl'; +} + +plan tests => 3; + +pass() if not(); +is(not(), 1); +is(not(), not(0)); |