This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Distinguish C- and perly- literals - PERLY_SLASH
[perl5.git] / perly.act
CommitLineData
e8fb9efb
NC
1/* -*- buffer-read-only: t -*-
2 !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
3f5e9543 3 This file is built by regen_perly.pl from perly.y.
e8fb9efb
NC
4 Any changes made here will be lost!
5 */
6
0de566d7 7case 2:
77b0379f 8#line 136 "perly.y"
53443c95 9 {
624fa8bd 10 parser->expect = XSTATE;
5a2060e2 11 (yyval.ival) = 0;
a9f5ab8d
LM
12 }
13
0de566d7
DM
14 break;
15
16 case 3:
77b0379f 17#line 141 "perly.y"
53443c95 18 {
a9f5ab8d 19 newPROG(block_end((ps[-1].val.ival),(ps[0].val.opval)));
8635e3c2 20 PL_compiling.cop_seq = 0;
727a8fe5 21 (yyval.ival) = 0;
a9f5ab8d
LM
22 }
23
9eb5c532
Z
24 break;
25
26 case 4:
77b0379f 27#line 147 "perly.y"
53443c95 28 {
78cdf107 29 parser->expect = XTERM;
5a2060e2 30 (yyval.ival) = 0;
a9f5ab8d
LM
31 }
32
727a8fe5
Z
33 break;
34
35 case 5:
77b0379f 36#line 152 "perly.y"
53443c95 37 {
a9f5ab8d 38 PL_eval_root = (ps[0].val.opval);
636def1f 39 (yyval.ival) = 0;
a9f5ab8d
LM
40 }
41
636def1f
RGS
42 break;
43
727a8fe5 44 case 6:
77b0379f 45#line 157 "perly.y"
53443c95 46 {
78cdf107 47 parser->expect = XBLOCK;
5a2060e2 48 (yyval.ival) = 0;
a9f5ab8d
LM
49 }
50
07ffcb73
Z
51 break;
52
727a8fe5 53 case 7:
77b0379f 54#line 162 "perly.y"
53443c95 55 {
5f211341 56 PL_pad_reset_pending = TRUE;
a9f5ab8d 57 PL_eval_root = (ps[0].val.opval);
07ffcb73 58 (yyval.ival) = 0;
e53d8f76 59 yyunlex();
0f8490d1 60 parser->yychar = yytoken = YYEOF;
a9f5ab8d
LM
61 }
62
07ffcb73
Z
63 break;
64
727a8fe5 65 case 8:
77b0379f 66#line 170 "perly.y"
53443c95 67 {
e53d8f76 68 parser->expect = XSTATE;
5a2060e2 69 (yyval.ival) = 0;
a9f5ab8d
LM
70 }
71
636def1f
RGS
72 break;
73
727a8fe5 74 case 9:
77b0379f 75#line 175 "perly.y"
53443c95 76 {
8359b381 77 PL_pad_reset_pending = TRUE;
a9f5ab8d 78 PL_eval_root = (ps[0].val.opval);
e53d8f76 79 (yyval.ival) = 0;
8359b381 80 yyunlex();
0f8490d1 81 parser->yychar = yytoken = YYEOF;
a9f5ab8d
LM
82 }
83
e53d8f76
Z
84 break;
85
727a8fe5 86 case 10:
77b0379f 87#line 183 "perly.y"
53443c95 88 {
8359b381 89 parser->expect = XSTATE;
5a2060e2 90 (yyval.ival) = 0;
a9f5ab8d
LM
91 }
92
e53d8f76
Z
93 break;
94
727a8fe5 95 case 11:
77b0379f 96#line 188 "perly.y"
53443c95 97 {
78cdf107 98 PL_pad_reset_pending = TRUE;
a9f5ab8d 99 PL_eval_root = (ps[0].val.opval);
8359b381 100 (yyval.ival) = 0;
78cdf107 101 yyunlex();
0f8490d1 102 parser->yychar = yytoken = YYEOF;
a9f5ab8d
LM
103 }
104
8359b381
Z
105 break;
106
8359b381 107 case 12:
77b0379f 108#line 196 "perly.y"
53443c95 109 {
78cdf107 110 parser->expect = XSTATE;
5a2060e2 111 (yyval.ival) = 0;
a9f5ab8d
LM
112 }
113
78cdf107
Z
114 break;
115
116 case 13:
77b0379f 117#line 201 "perly.y"
53443c95 118 {
a9f5ab8d 119 PL_eval_root = (ps[0].val.opval);
78cdf107 120 (yyval.ival) = 0;
a9f5ab8d
LM
121 }
122
78cdf107
Z
123 break;
124
125 case 14:
77b0379f 126#line 206 "perly.y"
53443c95 127 {
996b0cb8
PLE
128 parser->expect = XSTATE;
129 (yyval.ival) = 0;
130 }
131
132 break;
133
134 case 15:
77b0379f 135#line 211 "perly.y"
53443c95 136 {
996b0cb8
PLE
137 PL_eval_root = (ps[0].val.opval);
138 (yyval.ival) = 0;
139 }
140
141 break;
142
143 case 16:
77b0379f 144#line 219 "perly.y"
53443c95 145 { if (parser->copline > (line_t)(ps[-3].val.ival))
a9f5ab8d
LM
146 parser->copline = (line_t)(ps[-3].val.ival);
147 (yyval.opval) = block_end((ps[-2].val.ival), (ps[-1].val.opval));
148 }
149
0de566d7
DM
150 break;
151
996b0cb8 152 case 17:
77b0379f 153#line 227 "perly.y"
53443c95 154 { if (parser->copline > (line_t)(ps[-6].val.ival))
a9f5ab8d
LM
155 parser->copline = (line_t)(ps[-6].val.ival);
156 (yyval.opval) = block_end((ps[-5].val.ival), (ps[-2].val.opval));
157 }
158
0d863452
RH
159 break;
160
996b0cb8 161 case 18:
77b0379f 162#line 234 "perly.y"
53443c95 163 { (yyval.ival) = block_start(TRUE);
a9f5ab8d
LM
164 parser->parsed_sub = 0; }
165
7c70caa5
FC
166 break;
167
996b0cb8 168 case 19:
77b0379f 169#line 239 "perly.y"
53443c95 170 { if (parser->copline > (line_t)(ps[-3].val.ival))
a9f5ab8d
LM
171 parser->copline = (line_t)(ps[-3].val.ival);
172 (yyval.opval) = block_end((ps[-2].val.ival), (ps[-1].val.opval));
173 }
174
0de566d7
DM
175 break;
176
996b0cb8 177 case 20:
77b0379f 178#line 246 "perly.y"
53443c95 179 { (yyval.ival) = block_start(FALSE);
a9f5ab8d
LM
180 parser->parsed_sub = 0; }
181
0de566d7
DM
182 break;
183
996b0cb8 184 case 21:
77b0379f 185#line 252 "perly.y"
53443c95 186 { (yyval.opval) = NULL; }
a9f5ab8d 187
0de566d7
DM
188 break;
189
996b0cb8 190 case 22:
77b0379f 191#line 254 "perly.y"
53443c95 192 { (yyval.opval) = op_append_list(OP_LINESEQ, (ps[-1].val.opval), (ps[0].val.opval));
500bedb6 193 PL_pad_reset_pending = TRUE;
a9f5ab8d 194 if ((ps[-1].val.opval) && (ps[0].val.opval))
503de470 195 PL_hints |= HINT_BLOCK_SCOPE;
a9f5ab8d
LM
196 }
197
500bedb6
DM
198 break;
199
996b0cb8 200 case 23:
77b0379f 201#line 263 "perly.y"
53443c95 202 { (yyval.opval) = NULL; }
a9f5ab8d 203
705fe0e5
FC
204 break;
205
996b0cb8 206 case 24:
77b0379f 207#line 265 "perly.y"
53443c95 208 { (yyval.opval) = op_append_list(OP_LINESEQ, (ps[-1].val.opval), (ps[0].val.opval));
705fe0e5 209 PL_pad_reset_pending = TRUE;
a9f5ab8d 210 if ((ps[-1].val.opval) && (ps[0].val.opval))
705fe0e5 211 PL_hints |= HINT_BLOCK_SCOPE;
a9f5ab8d
LM
212 }
213
705fe0e5
FC
214 break;
215
996b0cb8 216 case 25:
77b0379f 217#line 274 "perly.y"
53443c95 218 {
a9f5ab8d
LM
219 (yyval.opval) = (ps[0].val.opval) ? newSTATEOP(0, NULL, (ps[0].val.opval)) : NULL;
220 }
221
0d863452
RH
222 break;
223
996b0cb8 224 case 26:
77b0379f 225#line 278 "perly.y"
53443c95 226 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 227
0d863452
RH
228 break;
229
996b0cb8 230 case 27:
77b0379f 231#line 282 "perly.y"
53443c95 232 {
01719201
DM
233 SV *label = cSVOPx_sv((ps[-1].val.opval));
234 (yyval.opval) = newSTATEOP(SvFLAGS(label) & SVf_UTF8,
235 savepv(SvPVX_const(label)), (ps[0].val.opval));
236 op_free((ps[-1].val.opval));
a9f5ab8d
LM
237 }
238
8e720305
Z
239 break;
240
996b0cb8 241 case 28:
77b0379f 242#line 289 "perly.y"
53443c95 243 {
01719201
DM
244 SV *label = cSVOPx_sv((ps[-1].val.opval));
245 (yyval.opval) = newSTATEOP(SvFLAGS(label) & SVf_UTF8,
246 savepv(SvPVX_const(label)), (ps[0].val.opval));
247 op_free((ps[-1].val.opval));
a9f5ab8d
LM
248 }
249
8e720305
Z
250 break;
251
996b0cb8 252 case 29:
77b0379f 253#line 299 "perly.y"
53443c95 254 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 255
8e720305
Z
256 break;
257
996b0cb8 258 case 30:
77b0379f 259#line 301 "perly.y"
53443c95 260 {
eae48c89 261 CV *fmtcv = PL_compcv;
a9f5ab8d
LM
262 newFORM((ps[-2].val.ival), (ps[-1].val.opval), (ps[0].val.opval));
263 (yyval.opval) = NULL;
4a273b91 264 if (CvOUTSIDE(fmtcv) && !CvEVAL(CvOUTSIDE(fmtcv))) {
74a9453a 265 pad_add_weakref(fmtcv);
eae48c89 266 }
8b9fb2f9 267 parser->parsed_sub = 1;
a9f5ab8d
LM
268 }
269
0de566d7
DM
270 break;
271
996b0cb8 272 case 31:
77b0379f 273#line 313 "perly.y"
53443c95 274 {
50333c97 275 init_named_cv(PL_compcv, (ps[-1].val.opval));
624fa8bd
FC
276 parser->in_my = 0;
277 parser->in_my_stash = NULL;
a9f5ab8d
LM
278 }
279
764212cf
FC
280 break;
281
996b0cb8 282 case 32:
77b0379f 283#line 319 "perly.y"
53443c95 284 {
eae48c89 285 SvREFCNT_inc_simple_void(PL_compcv);
a9f5ab8d
LM
286 (ps[-5].val.opval)->op_type == OP_CONST
287 ? newATTRSUB((ps[-4].val.ival), (ps[-5].val.opval), (ps[-2].val.opval), (ps[-1].val.opval), (ps[0].val.opval))
288 : newMYSUB((ps[-4].val.ival), (ps[-5].val.opval), (ps[-2].val.opval), (ps[-1].val.opval), (ps[0].val.opval))
50278755 289 ;
a9f5ab8d 290 (yyval.opval) = NULL;
764212cf 291 intro_my();
34b54951 292 parser->parsed_sub = 1;
a9f5ab8d
LM
293 }
294
0de566d7
DM
295 break;
296
996b0cb8 297 case 33:
77b0379f 298#line 334 "perly.y"
53443c95 299 {
436ddf68
DM
300 init_named_cv(PL_compcv, (ps[-1].val.opval));
301 parser->in_my = 0;
302 parser->in_my_stash = NULL;
303 }
304
305 break;
306
996b0cb8 307 case 34:
77b0379f 308#line 340 "perly.y"
53443c95 309 {
436ddf68 310 SvREFCNT_inc_simple_void(PL_compcv);
75230cc1
DM
311 (ps[-4].val.opval)->op_type == OP_CONST
312 ? newATTRSUB((ps[-3].val.ival), (ps[-4].val.opval), NULL, (ps[-1].val.opval), (ps[0].val.opval))
313 : newMYSUB( (ps[-3].val.ival), (ps[-4].val.opval), NULL, (ps[-1].val.opval), (ps[0].val.opval))
436ddf68
DM
314 ;
315 (yyval.opval) = NULL;
316 intro_my();
317 parser->parsed_sub = 1;
318 }
319
320 break;
321
996b0cb8 322 case 35:
77b0379f 323#line 351 "perly.y"
53443c95 324 {
a9f5ab8d
LM
325 package((ps[-1].val.opval));
326 if ((ps[-2].val.opval))
327 package_version((ps[-2].val.opval));
328 (yyval.opval) = NULL;
329 }
330
0de566d7
DM
331 break;
332
996b0cb8 333 case 36:
77b0379f 334#line 358 "perly.y"
53443c95 335 { CvSPECIAL_on(PL_compcv); /* It's a BEGIN {} */ }
a9f5ab8d 336
0de566d7
DM
337 break;
338
996b0cb8 339 case 37:
77b0379f 340#line 360 "perly.y"
53443c95 341 {
eae48c89 342 SvREFCNT_inc_simple_void(PL_compcv);
a9f5ab8d 343 utilize((ps[-6].val.ival), (ps[-5].val.ival), (ps[-3].val.opval), (ps[-2].val.opval), (ps[-1].val.opval));
34b54951 344 parser->parsed_sub = 1;
a9f5ab8d
LM
345 (yyval.opval) = NULL;
346 }
347
5f211341
Z
348 break;
349
996b0cb8 350 case 38:
77b0379f 351#line 367 "perly.y"
53443c95 352 {
a9f5ab8d
LM
353 (yyval.opval) = block_end((ps[-4].val.ival),
354 newCONDOP(0, (ps[-3].val.opval), op_scope((ps[-1].val.opval)), (ps[0].val.opval)));
355 parser->copline = (line_t)(ps[-6].val.ival);
356 }
357
4098b6bb
JV
358 break;
359
996b0cb8 360 case 39:
77b0379f 361#line 373 "perly.y"
53443c95 362 {
a9f5ab8d
LM
363 (yyval.opval) = block_end((ps[-4].val.ival),
364 newCONDOP(0, (ps[-3].val.opval), (ps[0].val.opval), op_scope((ps[-1].val.opval))));
365 parser->copline = (line_t)(ps[-6].val.ival);
366 }
367
4e4da3ac
Z
368 break;
369
996b0cb8 370 case 40:
77b0379f 371#line 379 "perly.y"
53443c95 372 {
a9f5ab8d
LM
373 (yyval.opval) = block_end((ps[-3].val.ival), newGIVENOP((ps[-2].val.opval), op_scope((ps[0].val.opval)), 0));
374 parser->copline = (line_t)(ps[-5].val.ival);
375 }
376
0de566d7
DM
377 break;
378
996b0cb8 379 case 41:
77b0379f 380#line 384 "perly.y"
53443c95 381 { (yyval.opval) = block_end((ps[-3].val.ival), newWHENOP((ps[-2].val.opval), op_scope((ps[0].val.opval)))); }
a9f5ab8d 382
0de566d7
DM
383 break;
384
996b0cb8 385 case 42:
77b0379f 386#line 386 "perly.y"
53443c95 387 { (yyval.opval) = newWHENOP(0, op_scope((ps[0].val.opval))); }
7896dde7
Z
388
389 break;
390
996b0cb8 391 case 43:
77b0379f 392#line 388 "perly.y"
53443c95 393 {
a9f5ab8d
LM
394 (yyval.opval) = block_end((ps[-5].val.ival),
395 newWHILEOP(0, 1, NULL,
396 (ps[-4].val.opval), (ps[-1].val.opval), (ps[0].val.opval), (ps[-2].val.ival)));
397 parser->copline = (line_t)(ps[-7].val.ival);
398 }
399
0de566d7
DM
400 break;
401
996b0cb8 402 case 44:
77b0379f 403#line 395 "perly.y"
53443c95 404 {
a9f5ab8d
LM
405 (yyval.opval) = block_end((ps[-5].val.ival),
406 newWHILEOP(0, 1, NULL,
407 (ps[-4].val.opval), (ps[-1].val.opval), (ps[0].val.opval), (ps[-2].val.ival)));
408 parser->copline = (line_t)(ps[-7].val.ival);
409 }
410
0de566d7
DM
411 break;
412
996b0cb8 413 case 45:
77b0379f 414#line 402 "perly.y"
53443c95 415 { parser->expect = XTERM; }
a9f5ab8d 416
2d0e3c96
FC
417 break;
418
996b0cb8 419 case 46:
77b0379f 420#line 404 "perly.y"
53443c95 421 { parser->expect = XTERM; }
a9f5ab8d 422
2d0e3c96
FC
423 break;
424
996b0cb8 425 case 47:
77b0379f 426#line 407 "perly.y"
53443c95 427 {
a9f5ab8d
LM
428 OP *initop = (ps[-9].val.opval);
429 OP *forop = newWHILEOP(0, 1, NULL,
430 scalar((ps[-6].val.opval)), (ps[0].val.opval), (ps[-2].val.opval), (ps[-3].val.ival));
eae48c89
Z
431 if (initop) {
432 forop = op_prepend_elem(OP_LINESEQ, initop,
433 op_append_elem(OP_LINESEQ,
434 newOP(OP_UNSTACK, OPf_SPECIAL),
435 forop));
436 }
0f602692 437 PL_hints |= HINT_BLOCK_SCOPE;
a9f5ab8d
LM
438 (yyval.opval) = block_end((ps[-10].val.ival), forop);
439 parser->copline = (line_t)(ps[-12].val.ival);
440 }
441
0de566d7
DM
442 break;
443
996b0cb8 444 case 48:
77b0379f 445#line 422 "perly.y"
53443c95 446 {
a9f5ab8d
LM
447 (yyval.opval) = block_end((ps[-6].val.ival), newFOROP(0, (ps[-5].val.opval), (ps[-3].val.opval), (ps[-1].val.opval), (ps[0].val.opval)));
448 parser->copline = (line_t)(ps[-8].val.ival);
449 }
450
f20dcd76
VP
451 break;
452
996b0cb8 453 case 49:
77b0379f 454#line 427 "perly.y"
53443c95 455 {
a9f5ab8d
LM
456 (yyval.opval) = block_end((ps[-4].val.ival), newFOROP(0,
457 op_lvalue((ps[-6].val.opval), OP_ENTERLOOP), (ps[-3].val.opval), (ps[-1].val.opval), (ps[0].val.opval)));
458 parser->copline = (line_t)(ps[-7].val.ival);
459 }
460
0de566d7
DM
461 break;
462
996b0cb8 463 case 50:
77b0379f 464#line 433 "perly.y"
53443c95 465 { parser->in_my = 0; (yyval.opval) = my((ps[0].val.opval)); }
a9f5ab8d 466
d39c26a6
FC
467 break;
468
996b0cb8 469 case 51:
77b0379f 470#line 435 "perly.y"
53443c95 471 {
d39c26a6 472 (yyval.opval) = block_end(
a9f5ab8d 473 (ps[-7].val.ival),
d39c26a6
FC
474 newFOROP(0,
475 op_lvalue(
476 newUNOP(OP_REFGEN, 0,
a9f5ab8d 477 (ps[-5].val.opval)),
d39c26a6 478 OP_ENTERLOOP),
a9f5ab8d 479 (ps[-3].val.opval), (ps[-1].val.opval), (ps[0].val.opval))
d39c26a6 480 );
a9f5ab8d
LM
481 parser->copline = (line_t)(ps[-9].val.ival);
482 }
483
d39c26a6
FC
484 break;
485
996b0cb8 486 case 52:
77b0379f 487#line 448 "perly.y"
53443c95 488 {
a9f5ab8d 489 (yyval.opval) = block_end((ps[-4].val.ival), newFOROP(
d39c26a6 490 0, op_lvalue(newUNOP(OP_REFGEN, 0,
a9f5ab8d
LM
491 (ps[-6].val.opval)),
492 OP_ENTERLOOP), (ps[-3].val.opval), (ps[-1].val.opval), (ps[0].val.opval)));
493 parser->copline = (line_t)(ps[-8].val.ival);
494 }
495
d39c26a6
FC
496 break;
497
996b0cb8 498 case 53:
77b0379f 499#line 456 "perly.y"
53443c95 500 {
a9f5ab8d
LM
501 (yyval.opval) = block_end((ps[-4].val.ival),
502 newFOROP(0, NULL, (ps[-3].val.opval), (ps[-1].val.opval), (ps[0].val.opval)));
503 parser->copline = (line_t)(ps[-6].val.ival);
504 }
505
0de566d7
DM
506 break;
507
996b0cb8 508 case 54:
77b0379f 509#line 462 "perly.y"
53443c95 510 {
eae48c89 511 /* a block is a loop that happens once */
a9f5ab8d
LM
512 (yyval.opval) = newWHILEOP(0, 1, NULL,
513 NULL, (ps[-1].val.opval), (ps[0].val.opval), 0);
514 }
515
0de566d7
DM
516 break;
517
996b0cb8 518 case 55:
77b0379f 519#line 468 "perly.y"
53443c95 520 {
a9f5ab8d
LM
521 package((ps[-2].val.opval));
522 if ((ps[-3].val.opval)) {
523 package_version((ps[-3].val.opval));
eae48c89 524 }
a9f5ab8d
LM
525 }
526
0de566d7
DM
527 break;
528
996b0cb8 529 case 56:
77b0379f 530#line 475 "perly.y"
53443c95 531 {
eae48c89 532 /* a block is a loop that happens once */
a9f5ab8d
LM
533 (yyval.opval) = newWHILEOP(0, 1, NULL,
534 NULL, block_end((ps[-3].val.ival), (ps[-1].val.opval)), NULL, 0);
535 if (parser->copline > (line_t)(ps[-4].val.ival))
536 parser->copline = (line_t)(ps[-4].val.ival);
537 }
538
0d863452
RH
539 break;
540
996b0cb8 541 case 57:
77b0379f 542#line 483 "perly.y"
53443c95 543 {
a9f5ab8d
LM
544 (yyval.opval) = (ps[-1].val.opval);
545 }
546
0d863452
RH
547 break;
548
996b0cb8 549 case 58:
77b0379f 550#line 487 "perly.y"
53443c95 551 {
29d69c3c
Z
552 (yyval.opval) = newLISTOP(OP_DIE, 0, newOP(OP_PUSHMARK, 0),
553 newSVOP(OP_CONST, 0, newSVpvs("Unimplemented")));
554 }
555
556 break;
557
996b0cb8 558 case 59:
77b0379f 559#line 492 "perly.y"
53443c95 560 {
a9f5ab8d 561 (yyval.opval) = NULL;
624fa8bd 562 parser->copline = NOLINE;
a9f5ab8d
LM
563 }
564
0de566d7
DM
565 break;
566
996b0cb8 567 case 60:
77b0379f 568#line 500 "perly.y"
53443c95 569 { OP *list;
a9f5ab8d
LM
570 if ((ps[0].val.opval)) {
571 OP *term = (ps[0].val.opval);
572 list = op_append_elem(OP_LIST, (ps[-1].val.opval), term);
705fe0e5
FC
573 }
574 else {
a9f5ab8d 575 list = (ps[-1].val.opval);
705fe0e5 576 }
624fa8bd
FC
577 if (parser->copline == NOLINE)
578 parser->copline = CopLINE(PL_curcop)-1;
579 else parser->copline--;
705fe0e5 580 (yyval.opval) = newSTATEOP(0, NULL,
03d05f6e 581 op_convert_list(OP_FORMLINE, 0, list));
a9f5ab8d
LM
582 }
583
0de566d7
DM
584 break;
585
996b0cb8 586 case 61:
77b0379f 587#line 517 "perly.y"
53443c95 588 { (yyval.opval) = NULL; }
869b8c11
Z
589
590 break;
591
996b0cb8 592 case 62:
77b0379f 593#line 519 "perly.y"
53443c95 594 { (yyval.opval) = op_unscope((ps[-1].val.opval)); }
a9f5ab8d 595
0de566d7
DM
596 break;
597
996b0cb8 598 case 64:
77b0379f 599#line 527 "perly.y"
53443c95 600 { (yyval.opval) = NULL; }
a9f5ab8d 601
0de566d7
DM
602 break;
603
996b0cb8 604 case 65:
77b0379f 605#line 529 "perly.y"
53443c95 606 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 607
0d863452
RH
608 break;
609
996b0cb8 610 case 66:
77b0379f 611#line 531 "perly.y"
53443c95 612 { (yyval.opval) = newLOGOP(OP_AND, 0, (ps[0].val.opval), (ps[-2].val.opval)); }
a9f5ab8d 613
2d0e3c96
FC
614 break;
615
996b0cb8 616 case 67:
77b0379f 617#line 533 "perly.y"
53443c95 618 { (yyval.opval) = newLOGOP(OP_OR, 0, (ps[0].val.opval), (ps[-2].val.opval)); }
a9f5ab8d 619
2d0e3c96
FC
620 break;
621
996b0cb8 622 case 68:
77b0379f 623#line 535 "perly.y"
53443c95 624 { (yyval.opval) = newLOOPOP(OPf_PARENS, 1, scalar((ps[0].val.opval)), (ps[-2].val.opval)); }
a9f5ab8d 625
d39c26a6
FC
626 break;
627
996b0cb8 628 case 69:
77b0379f 629#line 537 "perly.y"
53443c95 630 { (yyval.opval) = newLOOPOP(OPf_PARENS, 1, (ps[0].val.opval), (ps[-2].val.opval)); }
a9f5ab8d 631
d39c26a6
FC
632 break;
633
996b0cb8 634 case 70:
77b0379f 635#line 539 "perly.y"
53443c95
BZ
636 { (yyval.opval) = newFOROP(0, NULL, (ps[0].val.opval), (ps[-2].val.opval), NULL);
637 parser->copline = (line_t)(ps[-1].val.ival); }
a9f5ab8d 638
abcf453d
PM
639 break;
640
996b0cb8 641 case 71:
77b0379f 642#line 542 "perly.y"
53443c95 643 { (yyval.opval) = newWHENOP((ps[0].val.opval), op_scope((ps[-2].val.opval))); }
a9f5ab8d 644
abcf453d
PM
645 break;
646
996b0cb8 647 case 72:
77b0379f 648#line 547 "perly.y"
53443c95
BZ
649 { (yyval.opval) = NULL; }
650
651 break;
652
653 case 73:
77b0379f 654#line 549 "perly.y"
53443c95 655 {
a9f5ab8d
LM
656 ((ps[0].val.opval))->op_flags |= OPf_PARENS;
657 (yyval.opval) = op_scope((ps[0].val.opval));
658 }
659
eae48c89
Z
660 break;
661
53443c95 662 case 74:
77b0379f 663#line 554 "perly.y"
53443c95 664 { parser->copline = (line_t)(ps[-5].val.ival);
3ad73efd 665 (yyval.opval) = newCONDOP(0,
a9f5ab8d
LM
666 newSTATEOP(OPf_SPECIAL,NULL,(ps[-3].val.opval)),
667 op_scope((ps[-1].val.opval)), (ps[0].val.opval));
3ad73efd 668 PL_hints |= HINT_BLOCK_SCOPE;
a9f5ab8d
LM
669 }
670
eae48c89
Z
671 break;
672
53443c95 673 case 75:
77b0379f 674#line 564 "perly.y"
53443c95 675 { (yyval.opval) = NULL; }
a9f5ab8d 676
eae48c89
Z
677 break;
678
53443c95 679 case 76:
77b0379f 680#line 566 "perly.y"
53443c95 681 { (yyval.opval) = op_scope((ps[0].val.opval)); }
a9f5ab8d 682
eae48c89
Z
683 break;
684
53443c95 685 case 77:
77b0379f 686#line 571 "perly.y"
53443c95 687 { (yyval.ival) = (PL_min_intro_pending &&
a034e688 688 PL_max_intro_pending >= PL_min_intro_pending);
a9f5ab8d
LM
689 intro_my(); }
690
0de566d7
DM
691 break;
692
53443c95 693 case 78:
77b0379f 694#line 577 "perly.y"
53443c95 695 { (yyval.opval) = NULL; }
a9f5ab8d 696
7c70caa5
FC
697 break;
698
53443c95 699 case 80:
77b0379f 700#line 583 "perly.y"
53443c95 701 { YYSTYPE tmplval;
abcf453d 702 (void)scan_num("1", &tmplval);
a9f5ab8d
LM
703 (yyval.opval) = tmplval.opval; }
704
0de566d7
DM
705 break;
706
996b0cb8 707 case 82:
77b0379f 708#line 591 "perly.y"
53443c95 709 { (yyval.opval) = invert(scalar((ps[0].val.opval))); }
a9f5ab8d 710
0de566d7
DM
711 break;
712
996b0cb8 713 case 83:
77b0379f 714#line 596 "perly.y"
53443c95 715 { (yyval.opval) = (ps[0].val.opval); intro_my(); }
a9f5ab8d 716
0de566d7
DM
717 break;
718
996b0cb8 719 case 84:
77b0379f 720#line 600 "perly.y"
53443c95 721 { (yyval.opval) = (ps[0].val.opval); intro_my(); }
a9f5ab8d 722
b5bbe64a
JH
723 break;
724
996b0cb8 725 case 85:
77b0379f 726#line 603 "perly.y"
53443c95 727 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 728
0de566d7
DM
729 break;
730
996b0cb8 731 case 86:
77b0379f 732#line 604 "perly.y"
53443c95 733 { (yyval.opval) = NULL; }
a9f5ab8d 734
0de566d7
DM
735 break;
736
996b0cb8 737 case 87:
77b0379f 738#line 608 "perly.y"
53443c95 739 { (yyval.ival) = start_subparse(FALSE, 0);
a9f5ab8d
LM
740 SAVEFREESV(PL_compcv); }
741
0de566d7
DM
742 break;
743
996b0cb8 744 case 88:
77b0379f 745#line 614 "perly.y"
53443c95 746 { (yyval.ival) = start_subparse(FALSE, CVf_ANON);
29d69c3c 747 SAVEFREESV(PL_compcv); }
a9f5ab8d 748
2d0e3c96
FC
749 break;
750
53443c95 751 case 89:
77b0379f 752#line 619 "perly.y"
53443c95
BZ
753 { (yyval.ival) = start_subparse(TRUE, 0);
754 SAVEFREESV(PL_compcv); }
869b8c11
Z
755
756 break;
757
53443c95 758 case 92:
77b0379f 759#line 630 "perly.y"
53443c95 760 { (yyval.opval) = NULL; }
a9f5ab8d 761
2d0e3c96
FC
762 break;
763
996b0cb8 764 case 94:
77b0379f 765#line 636 "perly.y"
53443c95 766 { (yyval.opval) = NULL; }
a9f5ab8d 767
d39c26a6
FC
768 break;
769
996b0cb8 770 case 95:
77b0379f 771#line 638 "perly.y"
53443c95 772 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 773
d39c26a6
FC
774 break;
775
996b0cb8 776 case 96:
77b0379f 777#line 640 "perly.y"
53443c95 778 { (yyval.opval) = NULL; }
a9f5ab8d 779
d39c26a6
FC
780 break;
781
996b0cb8 782 case 97:
77b0379f 783#line 645 "perly.y"
53443c95 784 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 785
abcf453d
PM
786 break;
787
996b0cb8 788 case 98:
77b0379f 789#line 647 "perly.y"
53443c95 790 { (yyval.opval) = NULL; }
a9f5ab8d 791
d3d9da4a
DM
792 break;
793
996b0cb8 794 case 99:
77b0379f 795#line 658 "perly.y"
53443c95 796 { parser->in_my = 0; (yyval.opval) = NULL; }
a9f5ab8d 797
d3d9da4a
DM
798 break;
799
996b0cb8 800 case 100:
77b0379f 801#line 660 "perly.y"
53443c95 802 { parser->in_my = 0; (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 803
d3d9da4a
DM
804 break;
805
996b0cb8 806 case 101:
77b0379f 807#line 665 "perly.y"
53443c95 808 { (yyval.ival) = '@'; }
29d69c3c
Z
809
810 break;
811
996b0cb8 812 case 102:
77b0379f 813#line 667 "perly.y"
53443c95
BZ
814 { (yyval.ival) = '%'; }
815
816 break;
817
818 case 103:
77b0379f 819#line 671 "perly.y"
53443c95 820 {
a9f5ab8d
LM
821 I32 sigil = (ps[-2].val.ival);
822 OP *var = (ps[-1].val.opval);
823 OP *defexpr = (ps[0].val.opval);
d3d9da4a 824
036bbc13 825 if (parser->sig_slurpy)
d3d9da4a 826 yyerror("Multiple slurpy parameters not allowed");
036bbc13 827 parser->sig_slurpy = (char)sigil;
d3d9da4a
DM
828
829 if (defexpr)
bb6b75cd 830 yyerror("A slurpy parameter may not have "
d3d9da4a
DM
831 "a default value");
832
a9f5ab8d
LM
833 (yyval.opval) = var ? newSTATEOP(0, NULL, var) : NULL;
834 }
835
d3d9da4a
DM
836 break;
837
996b0cb8 838 case 104:
77b0379f 839#line 690 "perly.y"
53443c95 840 { (yyval.opval) = NULL; }
a9f5ab8d 841
d3d9da4a
DM
842 break;
843
996b0cb8 844 case 105:
77b0379f 845#line 692 "perly.y"
53443c95 846 { (yyval.opval) = newOP(OP_NULL, 0); }
a9f5ab8d 847
d3d9da4a
DM
848 break;
849
996b0cb8 850 case 106:
77b0379f 851#line 694 "perly.y"
53443c95
BZ
852 { (yyval.opval) = (ps[0].val.opval); }
853
854 break;
855
856 case 107:
77b0379f 857#line 700 "perly.y"
53443c95 858 {
a9f5ab8d
LM
859 OP *var = (ps[-1].val.opval);
860 OP *defexpr = (ps[0].val.opval);
d3d9da4a 861
036bbc13 862 if (parser->sig_slurpy)
d3d9da4a
DM
863 yyerror("Slurpy parameter not last");
864
036bbc13 865 parser->sig_elems++;
d3d9da4a 866
d3d9da4a 867 if (defexpr) {
036bbc13 868 parser->sig_optelems++;
4fa06845
DM
869
870 if ( defexpr->op_type == OP_NULL
d3d9da4a
DM
871 && !(defexpr->op_flags & OPf_KIDS))
872 {
4fa06845
DM
873 /* handle '$=' special case */
874 if (var)
875 yyerror("Optional parameter "
876 "lacks default expression");
d3d9da4a
DM
877 op_free(defexpr);
878 }
4fa06845
DM
879 else {
880 /* a normal '=default' expression */
881 OP *defop = (OP*)alloc_LOGOP(OP_ARGDEFELEM,
882 defexpr,
883 LINKLIST(defexpr));
884 /* re-purpose op_targ to hold @_ index */
6daeaaa3 885 defop->op_targ =
036bbc13 886 (PADOFFSET)(parser->sig_elems - 1);
4fa06845
DM
887
888 if (var) {
889 var->op_flags |= OPf_STACKED;
890 (void)op_sibling_splice(var,
891 NULL, 0, defop);
892 scalar(defop);
893 }
894 else
895 var = newUNOP(OP_NULL, 0, defop);
896
897 LINKLIST(var);
898 /* NB: normally the first child of a
899 * logop is executed before the logop,
900 * and it pushes a boolean result
901 * ready for the logop. For ARGDEFELEM,
902 * the op itself does the boolean
903 * calculation, so set the first op to
904 * it instead.
905 */
906 var->op_next = defop;
907 defexpr->op_next = var;
d3d9da4a
DM
908 }
909 }
910 else {
036bbc13 911 if (parser->sig_optelems)
d3d9da4a
DM
912 yyerror("Mandatory parameter "
913 "follows optional parameter");
d3d9da4a
DM
914 }
915
a9f5ab8d
LM
916 (yyval.opval) = var ? newSTATEOP(0, NULL, var) : NULL;
917 }
918
d3d9da4a
DM
919 break;
920
996b0cb8 921 case 108:
77b0379f 922#line 765 "perly.y"
53443c95 923 { parser->in_my = KEY_sigvar; (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 924
d3d9da4a
DM
925 break;
926
996b0cb8 927 case 109:
77b0379f 928#line 767 "perly.y"
53443c95 929 { parser->in_my = KEY_sigvar; (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 930
d3d9da4a
DM
931 break;
932
996b0cb8 933 case 110:
77b0379f 934#line 773 "perly.y"
53443c95 935 { (yyval.opval) = (ps[-1].val.opval); }
a9f5ab8d 936
30d9c59b
Z
937 break;
938
996b0cb8 939 case 111:
77b0379f 940#line 775 "perly.y"
53443c95
BZ
941 {
942 (yyval.opval) = op_append_list(OP_LINESEQ, (ps[-2].val.opval), (ps[0].val.opval));
943 }
a9f5ab8d 944
d3d9da4a
DM
945 break;
946
996b0cb8 947 case 112:
77b0379f 948#line 779 "perly.y"
53443c95 949 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 950
d3d9da4a
DM
951 break;
952
996b0cb8 953 case 113:
77b0379f 954#line 784 "perly.y"
53443c95 955 { (yyval.opval) = NULL; }
a9f5ab8d 956
d3d9da4a
DM
957 break;
958
996b0cb8 959 case 114:
77b0379f 960#line 786 "perly.y"
53443c95 961 { (yyval.opval) = (ps[0].val.opval); }
894f226e
DM
962
963 break;
964
996b0cb8 965 case 115:
77b0379f 966#line 790 "perly.y"
53443c95 967 { (yyval.opval) = NULL; }
75230cc1
DM
968
969 break;
970
996b0cb8 971 case 116:
77b0379f 972#line 792 "perly.y"
53443c95 973 { (yyval.opval) = (ps[0].val.opval); }
996b0cb8
PLE
974
975 break;
976
977 case 117:
77b0379f 978#line 796 "perly.y"
53443c95
BZ
979 { (yyval.opval) = (ps[-1].val.opval); }
980
981 break;
982
983 case 118:
77b0379f 984#line 799 "perly.y"
53443c95 985 {
d3d9da4a 986 ENTER;
036bbc13
FC
987 SAVEIV(parser->sig_elems);
988 SAVEIV(parser->sig_optelems);
989 SAVEI8(parser->sig_slurpy);
990 parser->sig_elems = 0;
991 parser->sig_optelems = 0;
992 parser->sig_slurpy = 0;
49fb8620 993 parser->in_my = KEY_sigvar;
a9f5ab8d
LM
994 }
995
d3d9da4a
DM
996 break;
997
53443c95 998 case 119:
77b0379f 999#line 810 "perly.y"
53443c95 1000 {
996b0cb8 1001 OP *sigops = (ps[0].val.opval);
f417cfa9 1002 struct op_argcheck_aux *aux;
4fa06845 1003 OP *check;
d3d9da4a 1004
894f226e
DM
1005 if (!FEATURE_SIGNATURES_IS_ENABLED)
1006 Perl_croak(aTHX_ "Experimental "
1007 "subroutine signatures not enabled");
d3d9da4a
DM
1008
1009 /* We shouldn't get here otherwise */
1010 Perl_ck_warner_d(aTHX_
1011 packWARN(WARN_EXPERIMENTAL__SIGNATURES),
1012 "The signatures feature is experimental");
1013
f417cfa9
DM
1014 aux = (struct op_argcheck_aux*)
1015 PerlMemShared_malloc(
1016 sizeof(struct op_argcheck_aux));
1017 aux->params = parser->sig_elems;
1018 aux->opt_params = parser->sig_optelems;
1019 aux->slurpy = parser->sig_slurpy;
1020 check = newUNOP_AUX(OP_ARGCHECK, 0, NULL,
1021 (UNOP_AUX_item *)aux);
4fa06845
DM
1022 sigops = op_prepend_elem(OP_LINESEQ, check, sigops);
1023 sigops = op_prepend_elem(OP_LINESEQ,
1024 newSTATEOP(0, NULL, NULL),
1025 sigops);
1026 /* a nextstate at the end handles context
1027 * correctly for an empty sub body */
4df85778 1028 sigops = op_append_elem(OP_LINESEQ,
4fa06845
DM
1029 sigops,
1030 newSTATEOP(0, NULL, NULL));
4df85778
DM
1031 /* wrap the list of arg ops in a NULL aux op.
1032 This serves two purposes. First, it makes
1033 the arg list a separate subtree from the
1034 body of the sub, and secondly the null op
1035 may in future be upgraded to an OP_SIGNATURE
1036 when implemented. For now leave it as
1037 ex-argcheck */
1038 (yyval.opval) = newUNOP_AUX(OP_ARGCHECK, 0, sigops, NULL);
1039 op_null((yyval.opval));
d3d9da4a 1040
49fb8620 1041 parser->in_my = 0;
a8c56356
DM
1042 /* tell the toker that attrributes can follow
1043 * this sig, but only so that the toker
1044 * can skip through any (illegal) trailing
1045 * attribute text then give a useful error
1046 * message about "attributes before sig",
1047 * rather than falling over ina mess at
1048 * unrecognised syntax.
1049 */
1050 parser->expect = XATTRBLOCK;
1051 parser->sig_seen = TRUE;
d3d9da4a 1052 LEAVE;
a9f5ab8d
LM
1053 }
1054
30d9c59b
Z
1055 break;
1056
53443c95 1057 case 120:
77b0379f 1058#line 867 "perly.y"
53443c95 1059 { (yyval.opval) = (ps[0].val.opval); }
75230cc1
DM
1060
1061 break;
1062
53443c95 1063 case 121:
77b0379f 1064#line 868 "perly.y"
5adeeefb 1065 { (yyval.opval) = NULL; }
75230cc1
DM
1066
1067 break;
1068
53443c95 1069 case 122:
77b0379f 1070#line 874 "perly.y"
53443c95 1071 {
894f226e
DM
1072 if (parser->copline > (line_t)(ps[-2].val.ival))
1073 parser->copline = (line_t)(ps[-2].val.ival);
75230cc1
DM
1074 (yyval.opval) = block_end((ps[-3].val.ival), (ps[-1].val.opval));
1075 }
894f226e
DM
1076
1077 break;
1078
996b0cb8 1079 case 123:
77b0379f 1080#line 884 "perly.y"
53443c95 1081 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 1082
0de566d7
DM
1083 break;
1084
996b0cb8 1085 case 124:
77b0379f 1086#line 885 "perly.y"
5adeeefb 1087 { (yyval.opval) = NULL; }
53443c95
BZ
1088
1089 break;
1090
1091 case 125:
77b0379f 1092#line 889 "perly.y"
53443c95 1093 {
75230cc1
DM
1094 if (parser->copline > (line_t)(ps[-2].val.ival))
1095 parser->copline = (line_t)(ps[-2].val.ival);
1096 (yyval.opval) = block_end((ps[-4].val.ival),
1097 op_append_list(OP_LINESEQ, (ps[-3].val.opval), (ps[-1].val.opval)));
1098 }
1099
1100 break;
1101
996b0cb8 1102 case 126:
77b0379f 1103#line 900 "perly.y"
53443c95 1104 { (yyval.opval) = newLOGOP(OP_AND, 0, (ps[-2].val.opval), (ps[0].val.opval)); }
a9f5ab8d 1105
0de566d7
DM
1106 break;
1107
996b0cb8 1108 case 127:
77b0379f 1109#line 902 "perly.y"
53443c95 1110 { (yyval.opval) = newLOGOP((ps[-1].val.ival), 0, (ps[-2].val.opval), (ps[0].val.opval)); }
a9f5ab8d 1111
0de566d7
DM
1112 break;
1113
53443c95 1114 case 128:
77b0379f 1115#line 904 "perly.y"
53443c95 1116 { (yyval.opval) = newLOGOP(OP_DOR, 0, (ps[-2].val.opval), (ps[0].val.opval)); }
a9f5ab8d 1117
0de566d7
DM
1118 break;
1119
996b0cb8 1120 case 130:
77b0379f 1121#line 910 "perly.y"
53443c95
BZ
1122 { (yyval.opval) = (ps[-1].val.opval); }
1123
1124 break;
1125
1126 case 131:
77b0379f 1127#line 912 "perly.y"
53443c95 1128 {
a9f5ab8d
LM
1129 OP* term = (ps[0].val.opval);
1130 (yyval.opval) = op_append_elem(OP_LIST, (ps[-2].val.opval), term);
1131 }
1132
0de566d7
DM
1133 break;
1134
53443c95 1135 case 133:
77b0379f 1136#line 921 "perly.y"
53443c95 1137 { (yyval.opval) = op_convert_list((ps[-2].val.ival), OPf_STACKED,
a9f5ab8d
LM
1138 op_prepend_elem(OP_LIST, newGVREF((ps[-2].val.ival),(ps[-1].val.opval)), (ps[0].val.opval)) );
1139 }
1140
0de566d7
DM
1141 break;
1142
53443c95 1143 case 134:
77b0379f 1144#line 925 "perly.y"
53443c95 1145 { (yyval.opval) = op_convert_list((ps[-4].val.ival), OPf_STACKED,
a9f5ab8d
LM
1146 op_prepend_elem(OP_LIST, newGVREF((ps[-4].val.ival),(ps[-2].val.opval)), (ps[-1].val.opval)) );
1147 }
1148
0de566d7
DM
1149 break;
1150
53443c95 1151 case 135:
77b0379f 1152#line 929 "perly.y"
53443c95 1153 { (yyval.opval) = op_convert_list(OP_ENTERSUB, OPf_STACKED,
2fcb4757 1154 op_append_elem(OP_LIST,
a9f5ab8d
LM
1155 op_prepend_elem(OP_LIST, scalar((ps[-5].val.opval)), (ps[-1].val.opval)),
1156 newMETHOP(OP_METHOD, 0, (ps[-3].val.opval))));
1157 }
1158
0de566d7
DM
1159 break;
1160
53443c95 1161 case 136:
77b0379f 1162#line 935 "perly.y"
53443c95 1163 { (yyval.opval) = op_convert_list(OP_ENTERSUB, OPf_STACKED,
a9f5ab8d
LM
1164 op_append_elem(OP_LIST, scalar((ps[-2].val.opval)),
1165 newMETHOP(OP_METHOD, 0, (ps[0].val.opval))));
1166 }
1167
0de566d7
DM
1168 break;
1169
53443c95 1170 case 137:
77b0379f 1171#line 940 "perly.y"
53443c95 1172 { (yyval.opval) = op_convert_list(OP_ENTERSUB, OPf_STACKED,
2fcb4757 1173 op_append_elem(OP_LIST,
a9f5ab8d
LM
1174 op_prepend_elem(OP_LIST, (ps[-1].val.opval), (ps[0].val.opval)),
1175 newMETHOP(OP_METHOD, 0, (ps[-2].val.opval))));
1176 }
1177
0de566d7
DM
1178 break;
1179
53443c95 1180 case 138:
77b0379f 1181#line 946 "perly.y"
53443c95 1182 { (yyval.opval) = op_convert_list(OP_ENTERSUB, OPf_STACKED,
2fcb4757 1183 op_append_elem(OP_LIST,
a9f5ab8d
LM
1184 op_prepend_elem(OP_LIST, (ps[-3].val.opval), (ps[-1].val.opval)),
1185 newMETHOP(OP_METHOD, 0, (ps[-4].val.opval))));
1186 }
1187
0de566d7
DM
1188 break;
1189
996b0cb8 1190 case 139:
77b0379f 1191#line 952 "perly.y"
53443c95 1192 { (yyval.opval) = op_convert_list((ps[-1].val.ival), 0, (ps[0].val.opval)); }
a9f5ab8d 1193
0de566d7
DM
1194 break;
1195
996b0cb8 1196 case 140:
77b0379f 1197#line 954 "perly.y"
53443c95 1198 { (yyval.opval) = op_convert_list((ps[-3].val.ival), 0, (ps[-1].val.opval)); }
69afcc21
TC
1199
1200 break;
1201
996b0cb8 1202 case 141:
77b0379f 1203#line 956 "perly.y"
53443c95 1204 { (yyval.opval) = op_convert_list((ps[-3].val.ival), 0, (ps[-1].val.opval)); }
a9f5ab8d 1205
0de566d7
DM
1206 break;
1207
996b0cb8 1208 case 142:
77b0379f 1209#line 958 "perly.y"
53443c95
BZ
1210 { SvREFCNT_inc_simple_void(PL_compcv);
1211 (yyval.opval) = newANONATTRSUB((ps[-1].val.ival), 0, NULL, (ps[0].val.opval)); }
1212
1213 break;
1214
1215 case 143:
77b0379f 1216#line 961 "perly.y"
53443c95 1217 { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED,
2fcb4757 1218 op_append_elem(OP_LIST,
a9f5ab8d
LM
1219 op_prepend_elem(OP_LIST, (ps[-1].val.opval), (ps[0].val.opval)), (ps[-4].val.opval)));
1220 }
1221
0de566d7
DM
1222 break;
1223
53443c95 1224 case 146:
77b0379f 1225#line 976 "perly.y"
53443c95 1226 { (yyval.opval) = newBINOP(OP_GELEM, 0, (ps[-4].val.opval), scalar((ps[-2].val.opval))); }
a9f5ab8d 1227
0de566d7
DM
1228 break;
1229
53443c95 1230 case 147:
77b0379f 1231#line 978 "perly.y"
53443c95 1232 { (yyval.opval) = newBINOP(OP_AELEM, 0, oopsAV((ps[-3].val.opval)), scalar((ps[-1].val.opval)));
a9f5ab8d
LM
1233 }
1234
0de566d7
DM
1235 break;
1236
53443c95 1237 case 148:
77b0379f 1238#line 981 "perly.y"
53443c95 1239 { (yyval.opval) = newBINOP(OP_AELEM, 0,
a9f5ab8d
LM
1240 ref(newAVREF((ps[-4].val.opval)),OP_RV2AV),
1241 scalar((ps[-1].val.opval)));
1242 }
1243
0de566d7
DM
1244 break;
1245
53443c95 1246 case 149:
77b0379f 1247#line 986 "perly.y"
53443c95 1248 { (yyval.opval) = newBINOP(OP_AELEM, 0,
a9f5ab8d
LM
1249 ref(newAVREF((ps[-3].val.opval)),OP_RV2AV),
1250 scalar((ps[-1].val.opval)));
1251 }
1252
0de566d7
DM
1253 break;
1254
53443c95 1255 case 150:
77b0379f 1256#line 991 "perly.y"
53443c95 1257 { (yyval.opval) = newBINOP(OP_HELEM, 0, oopsHV((ps[-4].val.opval)), jmaybe((ps[-2].val.opval)));
a9f5ab8d
LM
1258 }
1259
0de566d7
DM
1260 break;
1261
53443c95 1262 case 151:
77b0379f 1263#line 994 "perly.y"
53443c95 1264 { (yyval.opval) = newBINOP(OP_HELEM, 0,
a9f5ab8d
LM
1265 ref(newHVREF((ps[-5].val.opval)),OP_RV2HV),
1266 jmaybe((ps[-2].val.opval))); }
1267
0de566d7
DM
1268 break;
1269
53443c95 1270 case 152:
77b0379f 1271#line 998 "perly.y"
53443c95 1272 { (yyval.opval) = newBINOP(OP_HELEM, 0,
a9f5ab8d
LM
1273 ref(newHVREF((ps[-4].val.opval)),OP_RV2HV),
1274 jmaybe((ps[-2].val.opval))); }
1275
0de566d7
DM
1276 break;
1277
53443c95 1278 case 153:
77b0379f 1279#line 1002 "perly.y"
53443c95 1280 { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED,
097ff42c
Z
1281 newCVREF(0, scalar((ps[-3].val.opval))));
1282 if (parser->expect == XBLOCK)
1283 parser->expect = XOPERATOR;
1284 }
a9f5ab8d 1285
b5bbe64a
JH
1286 break;
1287
53443c95 1288 case 154:
77b0379f 1289#line 1008 "perly.y"
53443c95 1290 { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED,
a9f5ab8d 1291 op_append_elem(OP_LIST, (ps[-1].val.opval),
097ff42c
Z
1292 newCVREF(0, scalar((ps[-4].val.opval)))));
1293 if (parser->expect == XBLOCK)
1294 parser->expect = XOPERATOR;
1295 }
a9f5ab8d 1296
0de566d7
DM
1297 break;
1298
53443c95 1299 case 155:
77b0379f 1300#line 1016 "perly.y"
53443c95 1301 { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED,
a9f5ab8d 1302 op_append_elem(OP_LIST, (ps[-1].val.opval),
097ff42c
Z
1303 newCVREF(0, scalar((ps[-3].val.opval)))));
1304 if (parser->expect == XBLOCK)
1305 parser->expect = XOPERATOR;
1306 }
a9f5ab8d 1307
0de566d7
DM
1308 break;
1309
53443c95 1310 case 156:
77b0379f 1311#line 1023 "perly.y"
53443c95 1312 { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED,
097ff42c
Z
1313 newCVREF(0, scalar((ps[-2].val.opval))));
1314 if (parser->expect == XBLOCK)
1315 parser->expect = XOPERATOR;
1316 }
a9f5ab8d 1317
ea25a9b2
Z
1318 break;
1319
996b0cb8 1320 case 157:
77b0379f 1321#line 1029 "perly.y"
53443c95 1322 { (yyval.opval) = newSLICEOP(0, (ps[-1].val.opval), (ps[-4].val.opval)); }
a9f5ab8d 1323
0de566d7
DM
1324 break;
1325
996b0cb8 1326 case 158:
77b0379f 1327#line 1031 "perly.y"
53443c95 1328 { (yyval.opval) = newSLICEOP(0, (ps[-1].val.opval), (ps[-3].val.opval)); }
a9f5ab8d 1329
0de566d7
DM
1330 break;
1331
996b0cb8 1332 case 159:
77b0379f 1333#line 1033 "perly.y"
53443c95 1334 { (yyval.opval) = newSLICEOP(0, (ps[-1].val.opval), NULL); }
a9f5ab8d 1335
0de566d7
DM
1336 break;
1337
996b0cb8 1338 case 160:
77b0379f 1339#line 1038 "perly.y"
53443c95 1340 { (yyval.opval) = newASSIGNOP(OPf_STACKED, (ps[-2].val.opval), (ps[-1].val.ival), (ps[0].val.opval)); }
a9f5ab8d 1341
0de566d7
DM
1342 break;
1343
996b0cb8 1344 case 161:
77b0379f 1345#line 1040 "perly.y"
53443c95 1346 { (yyval.opval) = newBINOP((ps[-1].val.ival), 0, scalar((ps[-2].val.opval)), scalar((ps[0].val.opval))); }
a9f5ab8d 1347
0de566d7
DM
1348 break;
1349
996b0cb8 1350 case 162:
77b0379f 1351#line 1042 "perly.y"
53443c95
BZ
1352 { if ((ps[-1].val.ival) != OP_REPEAT)
1353 scalar((ps[-2].val.opval));
1354 (yyval.opval) = newBINOP((ps[-1].val.ival), 0, (ps[-2].val.opval), scalar((ps[0].val.opval)));
1355 }
a9f5ab8d 1356
4098b6bb
JV
1357 break;
1358
996b0cb8 1359 case 163:
77b0379f 1360#line 1047 "perly.y"
53443c95 1361 { (yyval.opval) = newBINOP((ps[-1].val.ival), 0, scalar((ps[-2].val.opval)), scalar((ps[0].val.opval))); }
a9f5ab8d 1362
7c70caa5
FC
1363 break;
1364
996b0cb8 1365 case 164:
77b0379f 1366#line 1049 "perly.y"
53443c95 1367 { (yyval.opval) = newBINOP((ps[-1].val.ival), 0, scalar((ps[-2].val.opval)), scalar((ps[0].val.opval))); }
a9f5ab8d 1368
764212cf
FC
1369 break;
1370
996b0cb8 1371 case 165:
77b0379f 1372#line 1051 "perly.y"
53443c95 1373 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 1374
0de566d7
DM
1375 break;
1376
996b0cb8 1377 case 166:
77b0379f 1378#line 1053 "perly.y"
53443c95 1379 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 1380
0de566d7
DM
1381 break;
1382
996b0cb8 1383 case 167:
77b0379f 1384#line 1055 "perly.y"
53443c95 1385 { (yyval.opval) = newBINOP((ps[-1].val.ival), 0, scalar((ps[-2].val.opval)), scalar((ps[0].val.opval))); }
a9f5ab8d 1386
0de566d7
DM
1387 break;
1388
996b0cb8 1389 case 168:
77b0379f 1390#line 1057 "perly.y"
53443c95 1391 { (yyval.opval) = newBINOP((ps[-1].val.ival), 0, scalar((ps[-2].val.opval)), scalar((ps[0].val.opval))); }
a9f5ab8d 1392
500bedb6
DM
1393 break;
1394
996b0cb8 1395 case 169:
77b0379f 1396#line 1059 "perly.y"
53443c95 1397 { (yyval.opval) = newRANGE((ps[-1].val.ival), scalar((ps[-2].val.opval)), scalar((ps[0].val.opval))); }
a9f5ab8d 1398
0de566d7
DM
1399 break;
1400
996b0cb8 1401 case 170:
77b0379f 1402#line 1061 "perly.y"
53443c95 1403 { (yyval.opval) = newLOGOP(OP_AND, 0, (ps[-2].val.opval), (ps[0].val.opval)); }
a9f5ab8d 1404
0de566d7
DM
1405 break;
1406
996b0cb8 1407 case 171:
77b0379f 1408#line 1063 "perly.y"
53443c95 1409 { (yyval.opval) = newLOGOP(OP_OR, 0, (ps[-2].val.opval), (ps[0].val.opval)); }
a9f5ab8d 1410
0de566d7
DM
1411 break;
1412
996b0cb8 1413 case 172:
77b0379f 1414#line 1065 "perly.y"
53443c95 1415 { (yyval.opval) = newLOGOP(OP_DOR, 0, (ps[-2].val.opval), (ps[0].val.opval)); }
a9f5ab8d 1416
0de566d7
DM
1417 break;
1418
996b0cb8 1419 case 173:
77b0379f 1420#line 1067 "perly.y"
53443c95 1421 { (yyval.opval) = bind_match((ps[-1].val.ival), (ps[-2].val.opval), (ps[0].val.opval)); }
a9f5ab8d 1422
0de566d7
DM
1423 break;
1424
996b0cb8 1425 case 174:
77b0379f 1426#line 1071 "perly.y"
53443c95 1427 { (yyval.opval) = cmpchain_finish((ps[0].val.opval)); }
a9f5ab8d 1428
cc624add
FC
1429 break;
1430
996b0cb8 1431 case 175:
77b0379f 1432#line 1073 "perly.y"
53443c95 1433 { (yyval.opval) = newBINOP((ps[-1].val.ival), 0, scalar((ps[-2].val.opval)), scalar((ps[0].val.opval))); }
7896dde7
Z
1434
1435 break;
1436
996b0cb8 1437 case 176:
77b0379f 1438#line 1075 "perly.y"
53443c95 1439 { yyerror("syntax error"); YYERROR; }
69afcc21
TC
1440
1441 break;
1442
996b0cb8 1443 case 177:
77b0379f 1444#line 1077 "perly.y"
53443c95 1445 { yyerror("syntax error"); YYERROR; }
02b85d3d
Z
1446
1447 break;
1448
1449 case 178:
77b0379f 1450#line 1081 "perly.y"
53443c95 1451 { (yyval.opval) = cmpchain_start((ps[-1].val.ival), (ps[-2].val.opval), (ps[0].val.opval)); }
02b85d3d
Z
1452
1453 break;
1454
1455 case 179:
77b0379f 1456#line 1083 "perly.y"
53443c95 1457 { (yyval.opval) = cmpchain_extend((ps[-1].val.ival), (ps[-2].val.opval), (ps[0].val.opval)); }
02b85d3d
Z
1458
1459 break;
1460
1461 case 180:
77b0379f 1462#line 1087 "perly.y"
53443c95 1463 { (yyval.opval) = cmpchain_finish((ps[0].val.opval)); }
02b85d3d
Z
1464
1465 break;
1466
1467 case 181:
77b0379f 1468#line 1089 "perly.y"
53443c95 1469 { (yyval.opval) = newBINOP((ps[-1].val.ival), 0, scalar((ps[-2].val.opval)), scalar((ps[0].val.opval))); }
02b85d3d
Z
1470
1471 break;
1472
1473 case 182:
77b0379f 1474#line 1091 "perly.y"
53443c95 1475 { yyerror("syntax error"); YYERROR; }
02b85d3d
Z
1476
1477 break;
1478
1479 case 183:
77b0379f 1480#line 1093 "perly.y"
53443c95 1481 { yyerror("syntax error"); YYERROR; }
02b85d3d
Z
1482
1483 break;
1484
1485 case 184:
77b0379f 1486#line 1097 "perly.y"
53443c95 1487 { (yyval.opval) = cmpchain_start((ps[-1].val.ival), (ps[-2].val.opval), (ps[0].val.opval)); }
02b85d3d
Z
1488
1489 break;
1490
1491 case 185:
77b0379f 1492#line 1099 "perly.y"
53443c95 1493 { (yyval.opval) = cmpchain_extend((ps[-1].val.ival), (ps[-2].val.opval), (ps[0].val.opval)); }
02b85d3d
Z
1494
1495 break;
1496
1497 case 186:
77b0379f 1498#line 1104 "perly.y"
53443c95 1499 { (yyval.opval) = newUNOP(OP_NEGATE, 0, scalar((ps[0].val.opval))); }
02b85d3d
Z
1500
1501 break;
1502
1503 case 187:
77b0379f 1504#line 1106 "perly.y"
53443c95 1505 { (yyval.opval) = (ps[0].val.opval); }
02b85d3d
Z
1506
1507 break;
1508
1509 case 188:
77b0379f 1510#line 1109 "perly.y"
53443c95 1511 { (yyval.opval) = newUNOP(OP_NOT, 0, scalar((ps[0].val.opval))); }
02b85d3d
Z
1512
1513 break;
1514
1515 case 189:
77b0379f 1516#line 1111 "perly.y"
53443c95 1517 { (yyval.opval) = newUNOP((ps[-1].val.ival), 0, scalar((ps[0].val.opval))); }
a9f5ab8d 1518
0de566d7
DM
1519 break;
1520
02b85d3d 1521 case 190:
77b0379f 1522#line 1113 "perly.y"
53443c95
BZ
1523 { (yyval.opval) = newUNOP(OP_POSTINC, 0,
1524 op_lvalue(scalar((ps[-1].val.opval)), OP_POSTINC)); }
a9f5ab8d 1525
b5bbe64a
JH
1526 break;
1527
02b85d3d 1528 case 191:
77b0379f 1529#line 1116 "perly.y"
53443c95
BZ
1530 { (yyval.opval) = newUNOP(OP_POSTDEC, 0,
1531 op_lvalue(scalar((ps[-1].val.opval)), OP_POSTDEC));}
1532
1533 break;
1534
1535 case 192:
77b0379f 1536#line 1119 "perly.y"
53443c95 1537 { (yyval.opval) = op_convert_list(OP_JOIN, 0,
d39c26a6
FC
1538 op_append_elem(
1539 OP_LIST,
1540 newSVREF(scalar(
1541 newSVOP(OP_CONST,0,
1542 newSVpvs("\""))
1543 )),
a9f5ab8d 1544 (ps[-1].val.opval)
d39c26a6 1545 ));
a9f5ab8d
LM
1546 }
1547
0de566d7
DM
1548 break;
1549
02b85d3d 1550 case 193:
77b0379f 1551#line 1130 "perly.y"
53443c95
BZ
1552 { (yyval.opval) = newUNOP(OP_PREINC, 0,
1553 op_lvalue(scalar((ps[0].val.opval)), OP_PREINC)); }
a9f5ab8d 1554
0de566d7
DM
1555 break;
1556
02b85d3d 1557 case 194:
77b0379f 1558#line 1133 "perly.y"
53443c95
BZ
1559 { (yyval.opval) = newUNOP(OP_PREDEC, 0,
1560 op_lvalue(scalar((ps[0].val.opval)), OP_PREDEC)); }
869b8c11
Z
1561
1562 break;
1563
02b85d3d 1564 case 195:
77b0379f 1565#line 1140 "perly.y"
53443c95 1566 { (yyval.opval) = newANONLIST((ps[-1].val.opval)); }
a9f5ab8d 1567
0de566d7
DM
1568 break;
1569
02b85d3d 1570 case 196:
77b0379f 1571#line 1142 "perly.y"
53443c95 1572 { (yyval.opval) = newANONLIST(NULL);}
a9f5ab8d 1573
9a9798c2
YST
1574 break;
1575
02b85d3d 1576 case 197:
77b0379f 1577#line 1144 "perly.y"
53443c95 1578 { (yyval.opval) = newANONHASH((ps[-2].val.opval)); }
a9f5ab8d 1579
9a9798c2
YST
1580 break;
1581
02b85d3d 1582 case 198:
77b0379f 1583#line 1146 "perly.y"
53443c95 1584 { (yyval.opval) = newANONHASH(NULL); }
a9f5ab8d 1585
0de566d7
DM
1586 break;
1587
02b85d3d 1588 case 199:
77b0379f 1589#line 1148 "perly.y"
53443c95
BZ
1590 { SvREFCNT_inc_simple_void(PL_compcv);
1591 (yyval.opval) = newANONATTRSUB((ps[-3].val.ival), (ps[-2].val.opval), (ps[-1].val.opval), (ps[0].val.opval)); }
436ddf68
DM
1592
1593 break;
1594
02b85d3d 1595 case 200:
77b0379f 1596#line 1151 "perly.y"
53443c95
BZ
1597 { SvREFCNT_inc_simple_void(PL_compcv);
1598 (yyval.opval) = newANONATTRSUB((ps[-2].val.ival), NULL, (ps[-1].val.opval), (ps[0].val.opval)); }
a9f5ab8d 1599
0de566d7
DM
1600 break;
1601
02b85d3d 1602 case 201:
77b0379f 1603#line 1157 "perly.y"
53443c95 1604 { (yyval.opval) = dofile((ps[0].val.opval), (ps[-1].val.ival));}
a9f5ab8d 1605
0de566d7
DM
1606 break;
1607
53443c95 1608 case 202:
77b0379f 1609#line 1159 "perly.y"
53443c95 1610 { (yyval.opval) = newUNOP(OP_NULL, OPf_SPECIAL, op_scope((ps[0].val.opval)));}
a9f5ab8d 1611
0de566d7
DM
1612 break;
1613
02b85d3d 1614 case 207:
77b0379f 1615#line 1167 "perly.y"
53443c95 1616 { (yyval.opval) = newCONDOP(0, (ps[-4].val.opval), (ps[-2].val.opval), (ps[0].val.opval)); }
a9f5ab8d 1617
ea25a9b2
Z
1618 break;
1619
02b85d3d 1620 case 208:
77b0379f 1621#line 1169 "perly.y"
53443c95 1622 { (yyval.opval) = newUNOP(OP_REFGEN, 0, (ps[0].val.opval)); }
a9f5ab8d 1623
0de566d7
DM
1624 break;
1625
02b85d3d 1626 case 209:
77b0379f 1627#line 1171 "perly.y"
53443c95 1628 { (yyval.opval) = newUNOP(OP_REFGEN, 0, localize((ps[0].val.opval),1)); }
a9f5ab8d 1629
0de566d7
DM
1630 break;
1631
02b85d3d 1632 case 210:
77b0379f 1633#line 1173 "perly.y"
53443c95 1634 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 1635
f20dcd76
VP
1636 break;
1637
02b85d3d 1638 case 211:
77b0379f 1639#line 1175 "perly.y"
53443c95 1640 { (yyval.opval) = localize((ps[0].val.opval),0); }
a9f5ab8d 1641
8e720305
Z
1642 break;
1643
02b85d3d 1644 case 212:
77b0379f 1645#line 1177 "perly.y"
53443c95 1646 { (yyval.opval) = sawparens((ps[-1].val.opval)); }
a9f5ab8d 1647
08b3e84f
TC
1648 break;
1649
02b85d3d 1650 case 213:
77b0379f 1651#line 1179 "perly.y"
53443c95 1652 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 1653
4210d3f1
FC
1654 break;
1655
02b85d3d 1656 case 214:
77b0379f 1657#line 1181 "perly.y"
53443c95 1658 { (yyval.opval) = sawparens(newNULLLIST()); }
a9f5ab8d 1659
cc624add
FC
1660 break;
1661
02b85d3d 1662 case 215:
77b0379f 1663#line 1183 "perly.y"
53443c95 1664 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 1665
d39c26a6
FC
1666 break;
1667
02b85d3d 1668 case 216:
77b0379f 1669#line 1185 "perly.y"
53443c95 1670 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 1671
d39c26a6
FC
1672 break;
1673
02b85d3d 1674 case 217:
77b0379f 1675#line 1187 "perly.y"
53443c95 1676 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 1677
e118fea3
FC
1678 break;
1679
02b85d3d 1680 case 218:
77b0379f 1681#line 1189 "perly.y"
53443c95 1682 { (yyval.opval) = (ps[0].val.opval); }
7896dde7
Z
1683
1684 break;
1685
02b85d3d 1686 case 219:
77b0379f 1687#line 1191 "perly.y"
53443c95 1688 { (yyval.opval) = newUNOP(OP_AV2ARYLEN, 0, ref((ps[0].val.opval), OP_AV2ARYLEN));}
69afcc21
TC
1689
1690 break;
1691
02b85d3d 1692 case 220:
77b0379f 1693#line 1193 "perly.y"
53443c95
BZ
1694 { (yyval.opval) = (ps[0].val.opval); }
1695
1696 break;
1697
1698 case 221:
77b0379f 1699#line 1195 "perly.y"
53443c95 1700 { (yyval.opval) = op_prepend_elem(OP_ASLICE,
f05e27e5
DM
1701 newOP(OP_PUSHMARK, 0),
1702 newLISTOP(OP_ASLICE, 0,
a9f5ab8d
LM
1703 list((ps[-1].val.opval)),
1704 ref((ps[-3].val.opval), OP_ASLICE)));
1705 if ((yyval.opval) && (ps[-3].val.opval))
429a2555 1706 (yyval.opval)->op_private |=
a9f5ab8d
LM
1707 (ps[-3].val.opval)->op_private & OPpSLICEWARNING;
1708 }
1709
0de566d7
DM
1710 break;
1711
53443c95 1712 case 222:
77b0379f 1713#line 1205 "perly.y"
53443c95 1714 { (yyval.opval) = op_prepend_elem(OP_KVASLICE,
6dd3e0f2
RZ
1715 newOP(OP_PUSHMARK, 0),
1716 newLISTOP(OP_KVASLICE, 0,
a9f5ab8d
LM
1717 list((ps[-1].val.opval)),
1718 ref(oopsAV((ps[-3].val.opval)), OP_KVASLICE)));
1719 if ((yyval.opval) && (ps[-3].val.opval))
95a31aad 1720 (yyval.opval)->op_private |=
a9f5ab8d
LM
1721 (ps[-3].val.opval)->op_private & OPpSLICEWARNING;
1722 }
1723
6dd3e0f2
RZ
1724 break;
1725
53443c95 1726 case 223:
77b0379f 1727#line 1215 "perly.y"
53443c95 1728 { (yyval.opval) = op_prepend_elem(OP_HSLICE,
f05e27e5
DM
1729 newOP(OP_PUSHMARK, 0),
1730 newLISTOP(OP_HSLICE, 0,
a9f5ab8d
LM
1731 list((ps[-2].val.opval)),
1732 ref(oopsHV((ps[-4].val.opval)), OP_HSLICE)));
1733 if ((yyval.opval) && (ps[-4].val.opval))
429a2555 1734 (yyval.opval)->op_private |=
a9f5ab8d
LM
1735 (ps[-4].val.opval)->op_private & OPpSLICEWARNING;
1736 }
1737
0de566d7
DM
1738 break;
1739
53443c95 1740 case 224:
77b0379f 1741#line 1225 "perly.y"
53443c95 1742 { (yyval.opval) = op_prepend_elem(OP_KVHSLICE,
5cae3edb
RZ
1743 newOP(OP_PUSHMARK, 0),
1744 newLISTOP(OP_KVHSLICE, 0,
a9f5ab8d
LM
1745 list((ps[-2].val.opval)),
1746 ref((ps[-4].val.opval), OP_KVHSLICE)));
1747 if ((yyval.opval) && (ps[-4].val.opval))
95a31aad 1748 (yyval.opval)->op_private |=
a9f5ab8d
LM
1749 (ps[-4].val.opval)->op_private & OPpSLICEWARNING;
1750 }
1751
0de566d7
DM
1752 break;
1753
02b85d3d 1754 case 225:
77b0379f 1755#line 1235 "perly.y"
53443c95 1756 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 1757
e118fea3
FC
1758 break;
1759
02b85d3d 1760 case 226:
77b0379f 1761#line 1237 "perly.y"
53443c95 1762 { (yyval.opval) = newUNOP(OP_ENTERSUB, 0, scalar((ps[0].val.opval))); }
a9f5ab8d 1763
abcf453d
PM
1764 break;
1765
02b85d3d 1766 case 227:
77b0379f 1767#line 1239 "perly.y"
53443c95 1768 { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, scalar((ps[-2].val.opval)));
a9f5ab8d
LM
1769 }
1770
0de566d7
DM
1771 break;
1772
02b85d3d 1773 case 228:
77b0379f 1774#line 1242 "perly.y"
53443c95
BZ
1775 {
1776 (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED,
1777 op_append_elem(OP_LIST, (ps[-1].val.opval), scalar((ps[-3].val.opval))));
a9f5ab8d
LM
1778 }
1779
89f35911
FC
1780 break;
1781
02b85d3d 1782 case 229:
77b0379f 1783#line 1247 "perly.y"
53443c95
BZ
1784 { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED,
1785 op_append_elem(OP_LIST, (ps[0].val.opval), scalar((ps[-1].val.opval))));
1786 }
869b8c11
Z
1787
1788 break;
1789
02b85d3d 1790 case 230:
77b0379f 1791#line 1251 "perly.y"
53443c95 1792 { (yyval.opval) = newSVREF((ps[-3].val.opval)); }
a9f5ab8d 1793
89f35911
FC
1794 break;
1795
02b85d3d 1796 case 231:
77b0379f 1797#line 1253 "perly.y"
53443c95 1798 { (yyval.opval) = newAVREF((ps[-3].val.opval)); }
a9f5ab8d 1799
0de566d7
DM
1800 break;
1801
02b85d3d 1802 case 232:
77b0379f 1803#line 1255 "perly.y"
53443c95 1804 { (yyval.opval) = newHVREF((ps[-3].val.opval)); }
a9f5ab8d 1805
0de566d7
DM
1806 break;
1807
02b85d3d 1808 case 233:
77b0379f 1809#line 1257 "perly.y"
53443c95
BZ
1810 { (yyval.opval) = newUNOP(OP_ENTERSUB, 0,
1811 scalar(newCVREF((ps[-1].val.ival),(ps[-3].val.opval)))); }
a9f5ab8d 1812
0de566d7
DM
1813 break;
1814
02b85d3d 1815 case 234:
77b0379f 1816#line 1260 "perly.y"
53443c95 1817 { (yyval.opval) = newGVREF(0,(ps[-3].val.opval)); }
a9f5ab8d 1818
0de566d7
DM
1819 break;
1820
02b85d3d 1821 case 235:
77b0379f 1822#line 1262 "perly.y"
53443c95
BZ
1823 { (yyval.opval) = newOP((ps[0].val.ival), OPf_SPECIAL);
1824 PL_hints |= HINT_BLOCK_SCOPE; }
a9f5ab8d 1825
0de566d7
DM
1826 break;
1827
02b85d3d 1828 case 236:
77b0379f 1829#line 1265 "perly.y"
53443c95 1830 { (yyval.opval) = newLOOPEX((ps[-1].val.ival),(ps[0].val.opval)); }
a9f5ab8d 1831
0de566d7
DM
1832 break;
1833
02b85d3d 1834 case 237:
77b0379f 1835#line 1267 "perly.y"
53443c95 1836 { (yyval.opval) = newUNOP(OP_NOT, 0, scalar((ps[0].val.opval))); }
a9f5ab8d 1837
0de566d7
DM
1838 break;
1839
02b85d3d 1840 case 238:
77b0379f 1841#line 1269 "perly.y"
53443c95 1842 { (yyval.opval) = newOP((ps[0].val.ival), 0); }
a9f5ab8d 1843
0de566d7
DM
1844 break;
1845
02b85d3d 1846 case 239:
77b0379f 1847#line 1271 "perly.y"
53443c95 1848 { (yyval.opval) = newUNOP((ps[-1].val.ival), 0, (ps[0].val.opval)); }
a9f5ab8d 1849
9eb5c532
Z
1850 break;
1851
02b85d3d 1852 case 240:
77b0379f 1853#line 1273 "perly.y"
53443c95 1854 { (yyval.opval) = newUNOP((ps[-1].val.ival), 0, (ps[0].val.opval)); }
a9f5ab8d 1855
0de566d7
DM
1856 break;
1857
02b85d3d 1858 case 241:
77b0379f 1859#line 1275 "perly.y"
53443c95 1860 { (yyval.opval) = newOP(OP_REQUIRE, (ps[0].val.ival) ? OPf_SPECIAL : 0); }
a9f5ab8d 1861
0de566d7
DM
1862 break;
1863
02b85d3d 1864 case 242:
77b0379f 1865#line 1277 "perly.y"
53443c95 1866 { (yyval.opval) = newUNOP(OP_REQUIRE, (ps[-1].val.ival) ? OPf_SPECIAL : 0, (ps[0].val.opval)); }
a9f5ab8d 1867
0de566d7
DM
1868 break;
1869
02b85d3d 1870 case 243:
77b0379f 1871#line 1279 "perly.y"
53443c95 1872 { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, scalar((ps[0].val.opval))); }
a9f5ab8d 1873
7eb971ee
FC
1874 break;
1875
02b85d3d 1876 case 244:
77b0379f 1877#line 1281 "perly.y"
53443c95
BZ
1878 { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED,
1879 op_append_elem(OP_LIST, (ps[0].val.opval), scalar((ps[-1].val.opval)))); }
a9f5ab8d 1880
7eb971ee
FC
1881 break;
1882
02b85d3d 1883 case 245:
77b0379f 1884#line 1284 "perly.y"
53443c95 1885 { (yyval.opval) = newOP((ps[0].val.ival), 0); }
a9f5ab8d 1886
0de566d7
DM
1887 break;
1888
02b85d3d 1889 case 246:
77b0379f 1890#line 1286 "perly.y"
53443c95 1891 { (yyval.opval) = newOP((ps[-2].val.ival), 0);}
a9f5ab8d 1892
0de566d7
DM
1893 break;
1894
02b85d3d 1895 case 247:
77b0379f 1896#line 1288 "perly.y"
53443c95 1897 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 1898
d39c26a6
FC
1899 break;
1900
02b85d3d 1901 case 248:
77b0379f 1902#line 1290 "perly.y"
53443c95 1903 { (yyval.opval) = (ps[-2].val.opval); }
a9f5ab8d 1904
d39c26a6
FC
1905 break;
1906
02b85d3d 1907 case 249:
77b0379f 1908#line 1292 "perly.y"
53443c95 1909 { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, scalar((ps[0].val.opval))); }
a9f5ab8d 1910
d39c26a6
FC
1911 break;
1912
02b85d3d 1913 case 250:
77b0379f 1914#line 1294 "perly.y"
53443c95
BZ
1915 { (yyval.opval) = ((ps[-2].val.ival) == OP_NOT)
1916 ? newUNOP((ps[-2].val.ival), 0, newSVOP(OP_CONST, 0, newSViv(0)))
1917 : newOP((ps[-2].val.ival), OPf_SPECIAL); }
a9f5ab8d 1918
abcf453d
PM
1919 break;
1920
02b85d3d 1921 case 251:
77b0379f 1922#line 1298 "perly.y"
53443c95
BZ
1923 { (yyval.opval) = newUNOP((ps[-3].val.ival), 0, (ps[-1].val.opval)); }
1924
1925 break;
1926
1927 case 252:
77b0379f 1928#line 1300 "perly.y"
53443c95 1929 {
a9f5ab8d
LM
1930 if ( (ps[0].val.opval)->op_type != OP_TRANS
1931 && (ps[0].val.opval)->op_type != OP_TRANSR
1932 && (((PMOP*)(ps[0].val.opval))->op_pmflags & PMf_HAS_CV))
d63c20f2
DM
1933 {
1934 (yyval.ival) = start_subparse(FALSE, CVf_ANON);
1935 SAVEFREESV(PL_compcv);
1936 } else
1937 (yyval.ival) = 0;
a9f5ab8d
LM
1938 }
1939
d63c20f2
DM
1940 break;
1941
53443c95 1942 case 253:
77b0379f 1943#line 1311 "perly.y"
53443c95 1944 { (yyval.opval) = pmruntime((ps[-5].val.opval), (ps[-2].val.opval), (ps[-1].val.opval), 1, (ps[-4].val.ival)); }
869b8c11
Z
1945
1946 break;
1947
02b85d3d 1948 case 257:
77b0379f 1949#line 1319 "perly.y"
53443c95 1950 { (yyval.opval) = my_attrs((ps[-1].val.opval),(ps[0].val.opval)); }
a9f5ab8d 1951
ea25a9b2
Z
1952 break;
1953
02b85d3d 1954 case 258:
77b0379f 1955#line 1321 "perly.y"
53443c95 1956 { (yyval.opval) = localize((ps[0].val.opval),1); }
a9f5ab8d 1957
d63c20f2
DM
1958 break;
1959
02b85d3d 1960 case 259:
77b0379f 1961#line 1323 "perly.y"
53443c95 1962 { (yyval.opval) = newUNOP(OP_REFGEN, 0, my_attrs((ps[-1].val.opval),(ps[0].val.opval))); }
a9f5ab8d 1963
7c70caa5
FC
1964 break;
1965
02b85d3d 1966 case 260:
77b0379f 1967#line 1328 "perly.y"
53443c95 1968 { (yyval.opval) = sawparens((ps[-1].val.opval)); }
a9f5ab8d 1969
08b3e84f
TC
1970 break;
1971
02b85d3d 1972 case 261:
77b0379f 1973#line 1330 "perly.y"
53443c95 1974 { (yyval.opval) = sawparens(newNULLLIST()); }
a9f5ab8d 1975
764212cf
FC
1976 break;
1977
02b85d3d 1978 case 262:
77b0379f 1979#line 1333 "perly.y"
53443c95 1980 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 1981
4210d3f1
FC
1982 break;
1983
02b85d3d 1984 case 263:
77b0379f 1985#line 1335 "perly.y"
53443c95 1986 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 1987
5cae3edb
RZ
1988 break;
1989
02b85d3d 1990 case 264:
77b0379f 1991#line 1337 "perly.y"
53443c95 1992 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 1993
6dd3e0f2
RZ
1994 break;
1995
02b85d3d 1996 case 265:
77b0379f 1997#line 1342 "perly.y"
53443c95 1998 { (yyval.opval) = NULL; }
a9f5ab8d 1999
cc624add
FC
2000 break;
2001
02b85d3d 2002 case 266:
77b0379f 2003#line 1344 "perly.y"
53443c95 2004 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 2005
0de566d7
DM
2006 break;
2007
02b85d3d 2008 case 267:
77b0379f 2009#line 1348 "perly.y"
53443c95 2010 { (yyval.opval) = NULL; }
a9f5ab8d 2011
9b6b7be8
FC
2012 break;
2013
02b85d3d 2014 case 268:
77b0379f 2015#line 1350 "perly.y"
53443c95 2016 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 2017
9b6b7be8
FC
2018 break;
2019
02b85d3d 2020 case 269:
77b0379f 2021#line 1354 "perly.y"
53443c95 2022 { (yyval.opval) = NULL; }
a9f5ab8d 2023
e118fea3
FC
2024 break;
2025
02b85d3d 2026 case 270:
77b0379f 2027#line 1356 "perly.y"
53443c95 2028 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 2029
d39c26a6
FC
2030 break;
2031
53443c95 2032 case 271:
77b0379f 2033#line 1362 "perly.y"
53443c95 2034 { parser->in_my = 0; (yyval.opval) = my((ps[0].val.opval)); }
a9f5ab8d 2035
d39c26a6
FC
2036 break;
2037
02b85d3d 2038 case 279:
77b0379f 2039#line 1379 "perly.y"
53443c95 2040 { (yyval.opval) = newCVREF((ps[-1].val.ival),(ps[0].val.opval)); }
a9f5ab8d 2041
d39c26a6
FC
2042 break;
2043
02b85d3d 2044 case 280:
77b0379f 2045#line 1383 "perly.y"
53443c95 2046 { (yyval.opval) = newSVREF((ps[0].val.opval)); }
a9f5ab8d 2047
0de566d7
DM
2048 break;
2049
02b85d3d 2050 case 281:
77b0379f 2051#line 1387 "perly.y"
53443c95 2052 { (yyval.opval) = newAVREF((ps[0].val.opval));
a9f5ab8d
LM
2053 if ((yyval.opval)) (yyval.opval)->op_private |= (ps[-1].val.ival);
2054 }
2055
500bedb6
DM
2056 break;
2057
02b85d3d 2058 case 282:
77b0379f 2059#line 1393 "perly.y"
53443c95
BZ
2060 { (yyval.opval) = newHVREF((ps[0].val.opval));
2061 if ((yyval.opval)) (yyval.opval)->op_private |= (ps[-1].val.ival);
2062 }
a9f5ab8d 2063
a72a1c8b
RGS
2064 break;
2065
02b85d3d 2066 case 283:
77b0379f 2067#line 1399 "perly.y"
53443c95 2068 { (yyval.opval) = newAVREF((ps[0].val.opval)); }
a9f5ab8d 2069
ff25e5db
FC
2070 break;
2071
02b85d3d 2072 case 284:
77b0379f 2073#line 1401 "perly.y"
53443c95 2074 { (yyval.opval) = newAVREF((ps[-3].val.opval)); }
a9f5ab8d 2075
503de470
DM
2076 break;
2077
53443c95 2078 case 285:
77b0379f 2079#line 1405 "perly.y"
53443c95 2080 { (yyval.opval) = newGVREF(0,(ps[0].val.opval)); }
a9f5ab8d 2081
89f35911
FC
2082 break;
2083
53443c95 2084 case 287:
77b0379f 2085#line 1410 "perly.y"
53443c95 2086 { (yyval.opval) = newAVREF((ps[-2].val.opval)); }
a9f5ab8d 2087
76eba8ab
FC
2088 break;
2089
53443c95 2090 case 289:
77b0379f 2091#line 1415 "perly.y"
53443c95 2092 { (yyval.opval) = newHVREF((ps[-2].val.opval)); }
a9f5ab8d 2093
89f35911
FC
2094 break;
2095
02b85d3d 2096 case 291:
77b0379f 2097#line 1420 "perly.y"
53443c95 2098 { (yyval.opval) = newGVREF(0,(ps[-2].val.opval)); }
a9f5ab8d 2099
3cd0a11a
RGS
2100 break;
2101
02b85d3d 2102 case 292:
77b0379f 2103#line 1425 "perly.y"
53443c95 2104 { (yyval.opval) = scalar((ps[0].val.opval)); }
a9f5ab8d 2105
f05e27e5
DM
2106 break;
2107
02b85d3d 2108 case 293:
77b0379f 2109#line 1427 "perly.y"
53443c95 2110 { (yyval.opval) = scalar((ps[0].val.opval)); }
a9f5ab8d 2111
5cae3edb 2112 break;
fb602e32 2113
02b85d3d 2114 case 294:
77b0379f 2115#line 1429 "perly.y"
53443c95 2116 { (yyval.opval) = op_scope((ps[0].val.opval)); }
a9f5ab8d 2117
abcf453d 2118 break;
8635e3c2 2119
53443c95 2120 case 295:
77b0379f 2121#line 1432 "perly.y"
53443c95
BZ
2122 { (yyval.opval) = (ps[0].val.opval); }
2123
2124 break;
2125
2126
38c8d7b1 2127
38c8d7b1 2128
20515881 2129 default: break;
0de566d7 2130
e8fb9efb 2131
c24c946d 2132/* Generated from:
77b0379f 2133 * 7422f72c5dfff4e2c8cd87e56299968b4a39681f2cc3b81767c0ccd50b4e2054 perly.y
53443c95 2134 * acf1cbfd2545faeaaa58b1cf0cf9d7f98b5be0752eb7a54528ef904a9e2e1ca7 regen_perly.pl
c24c946d 2135 * ex: set ro: */