This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Distinguish C- and perly- literals - PERLY_BRACE_CLOSE
[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:
d0a6a9c7 8#line 124 "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:
d0a6a9c7 17#line 129 "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:
d0a6a9c7 27#line 135 "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:
d0a6a9c7 36#line 140 "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:
d0a6a9c7 45#line 145 "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:
d0a6a9c7 54#line 150 "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:
d0a6a9c7 66#line 158 "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:
d0a6a9c7 75#line 163 "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:
d0a6a9c7 87#line 171 "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:
d0a6a9c7 96#line 176 "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:
d0a6a9c7 108#line 184 "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:
d0a6a9c7 117#line 189 "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:
d0a6a9c7 126#line 194 "perly.y"
53443c95 127 {
996b0cb8
PLE
128 parser->expect = XSTATE;
129 (yyval.ival) = 0;
130 }
131
132 break;
133
134 case 15:
d0a6a9c7 135#line 199 "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:
d0a6a9c7 144#line 207 "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:
d0a6a9c7 153#line 215 "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:
d0a6a9c7 162#line 222 "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:
d0a6a9c7 169#line 227 "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:
d0a6a9c7 178#line 234 "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:
d0a6a9c7 185#line 240 "perly.y"
53443c95 186 { (yyval.opval) = NULL; }
a9f5ab8d 187
0de566d7
DM
188 break;
189
996b0cb8 190 case 22:
d0a6a9c7 191#line 242 "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:
d0a6a9c7 201#line 251 "perly.y"
53443c95 202 { (yyval.opval) = NULL; }
a9f5ab8d 203
705fe0e5
FC
204 break;
205
996b0cb8 206 case 24:
d0a6a9c7 207#line 253 "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:
d0a6a9c7 217#line 262 "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:
d0a6a9c7 225#line 266 "perly.y"
53443c95 226 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 227
0d863452
RH
228 break;
229
996b0cb8 230 case 27:
d0a6a9c7 231#line 270 "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:
d0a6a9c7 242#line 277 "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:
d0a6a9c7 253#line 287 "perly.y"
53443c95 254 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 255
8e720305
Z
256 break;
257
996b0cb8 258 case 30:
d0a6a9c7 259#line 289 "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:
d0a6a9c7 273#line 301 "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:
d0a6a9c7 283#line 307 "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:
d0a6a9c7 298#line 322 "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:
d0a6a9c7 308#line 328 "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:
d0a6a9c7 323#line 339 "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:
d0a6a9c7 334#line 346 "perly.y"
53443c95 335 { CvSPECIAL_on(PL_compcv); /* It's a BEGIN {} */ }
a9f5ab8d 336
0de566d7
DM
337 break;
338
996b0cb8 339 case 37:
d0a6a9c7 340#line 348 "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:
d0a6a9c7 351#line 355 "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:
d0a6a9c7 361#line 361 "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:
d0a6a9c7 371#line 367 "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:
d0a6a9c7 380#line 372 "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:
d0a6a9c7 386#line 374 "perly.y"
53443c95 387 { (yyval.opval) = newWHENOP(0, op_scope((ps[0].val.opval))); }
7896dde7
Z
388
389 break;
390
996b0cb8 391 case 43:
d0a6a9c7 392#line 376 "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:
d0a6a9c7 403#line 383 "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:
d0a6a9c7 414#line 390 "perly.y"
53443c95 415 { parser->expect = XTERM; }
a9f5ab8d 416
2d0e3c96
FC
417 break;
418
996b0cb8 419 case 46:
d0a6a9c7 420#line 392 "perly.y"
53443c95 421 { parser->expect = XTERM; }
a9f5ab8d 422
2d0e3c96
FC
423 break;
424
996b0cb8 425 case 47:
d0a6a9c7 426#line 395 "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:
d0a6a9c7 445#line 410 "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:
d0a6a9c7 454#line 415 "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:
d0a6a9c7 464#line 421 "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:
d0a6a9c7 470#line 423 "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:
d0a6a9c7 487#line 436 "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:
d0a6a9c7 499#line 444 "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:
d0a6a9c7 509#line 450 "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:
d0a6a9c7 519#line 456 "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:
d0a6a9c7 530#line 463 "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:
d0a6a9c7 542#line 471 "perly.y"
53443c95 543 {
a9f5ab8d
LM
544 (yyval.opval) = (ps[-1].val.opval);
545 }
546
0d863452
RH
547 break;
548
996b0cb8 549 case 58:
d0a6a9c7 550#line 475 "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:
d0a6a9c7 559#line 480 "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:
d0a6a9c7 568#line 488 "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:
d0a6a9c7 587#line 505 "perly.y"
53443c95 588 { (yyval.opval) = NULL; }
869b8c11
Z
589
590 break;
591
996b0cb8 592 case 62:
d0a6a9c7 593#line 507 "perly.y"
53443c95 594 { (yyval.opval) = op_unscope((ps[-1].val.opval)); }
a9f5ab8d 595
0de566d7
DM
596 break;
597
996b0cb8 598 case 64:
d0a6a9c7 599#line 515 "perly.y"
53443c95 600 { (yyval.opval) = NULL; }
a9f5ab8d 601
0de566d7
DM
602 break;
603
996b0cb8 604 case 65:
d0a6a9c7 605#line 517 "perly.y"
53443c95 606 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 607
0d863452
RH
608 break;
609
996b0cb8 610 case 66:
d0a6a9c7 611#line 519 "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:
d0a6a9c7 617#line 521 "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:
d0a6a9c7 623#line 523 "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:
d0a6a9c7 629#line 525 "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:
d0a6a9c7 635#line 527 "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:
d0a6a9c7 642#line 530 "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:
d0a6a9c7 648#line 535 "perly.y"
53443c95
BZ
649 { (yyval.opval) = NULL; }
650
651 break;
652
653 case 73:
d0a6a9c7 654#line 537 "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:
d0a6a9c7 663#line 542 "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:
d0a6a9c7 674#line 552 "perly.y"
53443c95 675 { (yyval.opval) = NULL; }
a9f5ab8d 676
eae48c89
Z
677 break;
678
53443c95 679 case 76:
d0a6a9c7 680#line 554 "perly.y"
53443c95 681 { (yyval.opval) = op_scope((ps[0].val.opval)); }
a9f5ab8d 682
eae48c89
Z
683 break;
684
53443c95 685 case 77:
d0a6a9c7 686#line 559 "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:
d0a6a9c7 694#line 565 "perly.y"
53443c95 695 { (yyval.opval) = NULL; }
a9f5ab8d 696
7c70caa5
FC
697 break;
698
53443c95 699 case 80:
d0a6a9c7 700#line 571 "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:
d0a6a9c7 708#line 579 "perly.y"
53443c95 709 { (yyval.opval) = invert(scalar((ps[0].val.opval))); }
a9f5ab8d 710
0de566d7
DM
711 break;
712
996b0cb8 713 case 83:
d0a6a9c7 714#line 584 "perly.y"
53443c95 715 { (yyval.opval) = (ps[0].val.opval); intro_my(); }
a9f5ab8d 716
0de566d7
DM
717 break;
718
996b0cb8 719 case 84:
d0a6a9c7 720#line 588 "perly.y"
53443c95 721 { (yyval.opval) = (ps[0].val.opval); intro_my(); }
a9f5ab8d 722
b5bbe64a
JH
723 break;
724
996b0cb8 725 case 85:
d0a6a9c7 726#line 591 "perly.y"
53443c95 727 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 728
0de566d7
DM
729 break;
730
996b0cb8 731 case 86:
d0a6a9c7 732#line 592 "perly.y"
53443c95 733 { (yyval.opval) = NULL; }
a9f5ab8d 734
0de566d7
DM
735 break;
736
996b0cb8 737 case 87:
d0a6a9c7 738#line 596 "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:
d0a6a9c7 745#line 602 "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:
d0a6a9c7 752#line 607 "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:
d0a6a9c7 759#line 618 "perly.y"
53443c95 760 { (yyval.opval) = NULL; }
a9f5ab8d 761
2d0e3c96
FC
762 break;
763
996b0cb8 764 case 94:
d0a6a9c7 765#line 624 "perly.y"
53443c95 766 { (yyval.opval) = NULL; }
a9f5ab8d 767
d39c26a6
FC
768 break;
769
996b0cb8 770 case 95:
d0a6a9c7 771#line 626 "perly.y"
53443c95 772 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 773
d39c26a6
FC
774 break;
775
996b0cb8 776 case 96:
d0a6a9c7 777#line 628 "perly.y"
53443c95 778 { (yyval.opval) = NULL; }
a9f5ab8d 779
d39c26a6
FC
780 break;
781
996b0cb8 782 case 97:
d0a6a9c7 783#line 633 "perly.y"
53443c95 784 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 785
abcf453d
PM
786 break;
787
996b0cb8 788 case 98:
d0a6a9c7 789#line 635 "perly.y"
53443c95 790 { (yyval.opval) = NULL; }
a9f5ab8d 791
d3d9da4a
DM
792 break;
793
996b0cb8 794 case 99:
d0a6a9c7 795#line 646 "perly.y"
53443c95 796 { parser->in_my = 0; (yyval.opval) = NULL; }
a9f5ab8d 797
d3d9da4a
DM
798 break;
799
996b0cb8 800 case 100:
d0a6a9c7 801#line 648 "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:
d0a6a9c7 807#line 653 "perly.y"
53443c95 808 { (yyval.ival) = '@'; }
29d69c3c
Z
809
810 break;
811
996b0cb8 812 case 102:
d0a6a9c7 813#line 655 "perly.y"
53443c95
BZ
814 { (yyval.ival) = '%'; }
815
816 break;
817
818 case 103:
d0a6a9c7 819#line 659 "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:
d0a6a9c7 839#line 678 "perly.y"
53443c95 840 { (yyval.opval) = NULL; }
a9f5ab8d 841
d3d9da4a
DM
842 break;
843
996b0cb8 844 case 105:
d0a6a9c7 845#line 680 "perly.y"
53443c95 846 { (yyval.opval) = newOP(OP_NULL, 0); }
a9f5ab8d 847
d3d9da4a
DM
848 break;
849
996b0cb8 850 case 106:
d0a6a9c7 851#line 682 "perly.y"
53443c95
BZ
852 { (yyval.opval) = (ps[0].val.opval); }
853
854 break;
855
856 case 107:
d0a6a9c7 857#line 688 "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:
d0a6a9c7 922#line 753 "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:
d0a6a9c7 928#line 755 "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:
d0a6a9c7 934#line 761 "perly.y"
53443c95 935 { (yyval.opval) = (ps[-1].val.opval); }
a9f5ab8d 936
30d9c59b
Z
937 break;
938
996b0cb8 939 case 111:
d0a6a9c7 940#line 763 "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:
d0a6a9c7 948#line 767 "perly.y"
53443c95 949 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 950
d3d9da4a
DM
951 break;
952
996b0cb8 953 case 113:
d0a6a9c7 954#line 772 "perly.y"
53443c95 955 { (yyval.opval) = NULL; }
a9f5ab8d 956
d3d9da4a
DM
957 break;
958
996b0cb8 959 case 114:
d0a6a9c7 960#line 774 "perly.y"
53443c95 961 { (yyval.opval) = (ps[0].val.opval); }
894f226e
DM
962
963 break;
964
996b0cb8 965 case 115:
d0a6a9c7 966#line 778 "perly.y"
53443c95 967 { (yyval.opval) = NULL; }
75230cc1
DM
968
969 break;
970
996b0cb8 971 case 116:
d0a6a9c7 972#line 780 "perly.y"
53443c95 973 { (yyval.opval) = (ps[0].val.opval); }
996b0cb8
PLE
974
975 break;
976
977 case 117:
d0a6a9c7 978#line 784 "perly.y"
53443c95
BZ
979 { (yyval.opval) = (ps[-1].val.opval); }
980
981 break;
982
983 case 118:
d0a6a9c7 984#line 787 "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:
d0a6a9c7 999#line 798 "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:
d0a6a9c7 1058#line 855 "perly.y"
53443c95 1059 { (yyval.opval) = (ps[0].val.opval); }
75230cc1
DM
1060
1061 break;
1062
53443c95 1063 case 121:
d0a6a9c7 1064#line 856 "perly.y"
53443c95 1065 { (yyval.opval) = NULL; }
75230cc1
DM
1066
1067 break;
1068
53443c95 1069 case 122:
d0a6a9c7 1070#line 862 "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:
d0a6a9c7 1080#line 872 "perly.y"
53443c95 1081 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 1082
0de566d7
DM
1083 break;
1084
996b0cb8 1085 case 124:
d0a6a9c7 1086#line 873 "perly.y"
53443c95
BZ
1087 { (yyval.opval) = NULL; }
1088
1089 break;
1090
1091 case 125:
d0a6a9c7 1092#line 877 "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:
d0a6a9c7 1103#line 888 "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:
d0a6a9c7 1109#line 890 "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:
d0a6a9c7 1115#line 892 "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:
d0a6a9c7 1121#line 898 "perly.y"
53443c95
BZ
1122 { (yyval.opval) = (ps[-1].val.opval); }
1123
1124 break;
1125
1126 case 131:
d0a6a9c7 1127#line 900 "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:
d0a6a9c7 1136#line 909 "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:
d0a6a9c7 1144#line 913 "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:
d0a6a9c7 1152#line 917 "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:
d0a6a9c7 1162#line 923 "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:
d0a6a9c7 1171#line 928 "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:
d0a6a9c7 1181#line 934 "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:
d0a6a9c7 1191#line 940 "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:
d0a6a9c7 1197#line 942 "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:
d0a6a9c7 1203#line 944 "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:
d0a6a9c7 1209#line 946 "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:
d0a6a9c7 1216#line 949 "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:
d0a6a9c7 1225#line 964 "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:
d0a6a9c7 1231#line 966 "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:
d0a6a9c7 1238#line 969 "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:
d0a6a9c7 1247#line 974 "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:
d0a6a9c7 1256#line 979 "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:
d0a6a9c7 1263#line 982 "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:
d0a6a9c7 1271#line 986 "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:
d0a6a9c7 1279#line 990 "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:
d0a6a9c7 1289#line 996 "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:
d0a6a9c7 1300#line 1004 "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:
d0a6a9c7 1311#line 1011 "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:
d0a6a9c7 1321#line 1017 "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:
d0a6a9c7 1327#line 1019 "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:
d0a6a9c7 1333#line 1021 "perly.y"
53443c95 1334 { (yyval.opval) = newSLICEOP(0, (ps[-1].val.opval), NULL); }
a9f5ab8d 1335
0de566d7
DM
1336 break;
1337
996b0cb8 1338 case 160:
d0a6a9c7 1339#line 1026 "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:
d0a6a9c7 1345#line 1028 "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:
d0a6a9c7 1351#line 1030 "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:
d0a6a9c7 1360#line 1035 "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:
d0a6a9c7 1366#line 1037 "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:
d0a6a9c7 1372#line 1039 "perly.y"
53443c95 1373 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 1374
0de566d7
DM
1375 break;
1376
996b0cb8 1377 case 166:
d0a6a9c7 1378#line 1041 "perly.y"
53443c95 1379 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 1380
0de566d7
DM
1381 break;
1382
996b0cb8 1383 case 167:
d0a6a9c7 1384#line 1043 "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:
d0a6a9c7 1390#line 1045 "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:
d0a6a9c7 1396#line 1047 "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:
d0a6a9c7 1402#line 1049 "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:
d0a6a9c7 1408#line 1051 "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:
d0a6a9c7 1414#line 1053 "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:
d0a6a9c7 1420#line 1055 "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:
d0a6a9c7 1426#line 1059 "perly.y"
53443c95 1427 { (yyval.opval) = cmpchain_finish((ps[0].val.opval)); }
a9f5ab8d 1428
cc624add
FC
1429 break;
1430
996b0cb8 1431 case 175:
d0a6a9c7 1432#line 1061 "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:
d0a6a9c7 1438#line 1063 "perly.y"
53443c95 1439 { yyerror("syntax error"); YYERROR; }
69afcc21
TC
1440
1441 break;
1442
996b0cb8 1443 case 177:
d0a6a9c7 1444#line 1065 "perly.y"
53443c95 1445 { yyerror("syntax error"); YYERROR; }
02b85d3d
Z
1446
1447 break;
1448
1449 case 178:
d0a6a9c7 1450#line 1069 "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:
d0a6a9c7 1456#line 1071 "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:
d0a6a9c7 1462#line 1075 "perly.y"
53443c95 1463 { (yyval.opval) = cmpchain_finish((ps[0].val.opval)); }
02b85d3d
Z
1464
1465 break;
1466
1467 case 181:
d0a6a9c7 1468#line 1077 "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:
d0a6a9c7 1474#line 1079 "perly.y"
53443c95 1475 { yyerror("syntax error"); YYERROR; }
02b85d3d
Z
1476
1477 break;
1478
1479 case 183:
d0a6a9c7 1480#line 1081 "perly.y"
53443c95 1481 { yyerror("syntax error"); YYERROR; }
02b85d3d
Z
1482
1483 break;
1484
1485 case 184:
d0a6a9c7 1486#line 1085 "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:
d0a6a9c7 1492#line 1087 "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:
d0a6a9c7 1498#line 1092 "perly.y"
53443c95 1499 { (yyval.opval) = newUNOP(OP_NEGATE, 0, scalar((ps[0].val.opval))); }
02b85d3d
Z
1500
1501 break;
1502
1503 case 187:
d0a6a9c7 1504#line 1094 "perly.y"
53443c95 1505 { (yyval.opval) = (ps[0].val.opval); }
02b85d3d
Z
1506
1507 break;
1508
1509 case 188:
d0a6a9c7 1510#line 1097 "perly.y"
53443c95 1511 { (yyval.opval) = newUNOP(OP_NOT, 0, scalar((ps[0].val.opval))); }
02b85d3d
Z
1512
1513 break;
1514
1515 case 189:
d0a6a9c7 1516#line 1099 "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:
d0a6a9c7 1522#line 1101 "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:
d0a6a9c7 1529#line 1104 "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:
d0a6a9c7 1536#line 1107 "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:
d0a6a9c7 1551#line 1118 "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:
d0a6a9c7 1558#line 1121 "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:
d0a6a9c7 1565#line 1128 "perly.y"
53443c95 1566 { (yyval.opval) = newANONLIST((ps[-1].val.opval)); }
a9f5ab8d 1567
0de566d7
DM
1568 break;
1569
02b85d3d 1570 case 196:
d0a6a9c7 1571#line 1130 "perly.y"
53443c95 1572 { (yyval.opval) = newANONLIST(NULL);}
a9f5ab8d 1573
9a9798c2
YST
1574 break;
1575
02b85d3d 1576 case 197:
d0a6a9c7 1577#line 1132 "perly.y"
53443c95 1578 { (yyval.opval) = newANONHASH((ps[-2].val.opval)); }
a9f5ab8d 1579
9a9798c2
YST
1580 break;
1581
02b85d3d 1582 case 198:
d0a6a9c7 1583#line 1134 "perly.y"
53443c95 1584 { (yyval.opval) = newANONHASH(NULL); }
a9f5ab8d 1585
0de566d7
DM
1586 break;
1587
02b85d3d 1588 case 199:
d0a6a9c7 1589#line 1136 "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:
d0a6a9c7 1596#line 1139 "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:
d0a6a9c7 1603#line 1145 "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:
d0a6a9c7 1609#line 1147 "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:
d0a6a9c7 1615#line 1155 "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:
d0a6a9c7 1621#line 1157 "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:
d0a6a9c7 1627#line 1159 "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:
d0a6a9c7 1633#line 1161 "perly.y"
53443c95 1634 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 1635
f20dcd76
VP
1636 break;
1637
02b85d3d 1638 case 211:
d0a6a9c7 1639#line 1163 "perly.y"
53443c95 1640 { (yyval.opval) = localize((ps[0].val.opval),0); }
a9f5ab8d 1641
8e720305
Z
1642 break;
1643
02b85d3d 1644 case 212:
d0a6a9c7 1645#line 1165 "perly.y"
53443c95 1646 { (yyval.opval) = sawparens((ps[-1].val.opval)); }
a9f5ab8d 1647
08b3e84f
TC
1648 break;
1649
02b85d3d 1650 case 213:
d0a6a9c7 1651#line 1167 "perly.y"
53443c95 1652 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 1653
4210d3f1
FC
1654 break;
1655
02b85d3d 1656 case 214:
d0a6a9c7 1657#line 1169 "perly.y"
53443c95 1658 { (yyval.opval) = sawparens(newNULLLIST()); }
a9f5ab8d 1659
cc624add
FC
1660 break;
1661
02b85d3d 1662 case 215:
d0a6a9c7 1663#line 1171 "perly.y"
53443c95 1664 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 1665
d39c26a6
FC
1666 break;
1667
02b85d3d 1668 case 216:
d0a6a9c7 1669#line 1173 "perly.y"
53443c95 1670 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 1671
d39c26a6
FC
1672 break;
1673
02b85d3d 1674 case 217:
d0a6a9c7 1675#line 1175 "perly.y"
53443c95 1676 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 1677
e118fea3
FC
1678 break;
1679
02b85d3d 1680 case 218:
d0a6a9c7 1681#line 1177 "perly.y"
53443c95 1682 { (yyval.opval) = (ps[0].val.opval); }
7896dde7
Z
1683
1684 break;
1685
02b85d3d 1686 case 219:
d0a6a9c7 1687#line 1179 "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:
d0a6a9c7 1693#line 1181 "perly.y"
53443c95
BZ
1694 { (yyval.opval) = (ps[0].val.opval); }
1695
1696 break;
1697
1698 case 221:
d0a6a9c7 1699#line 1183 "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:
d0a6a9c7 1713#line 1193 "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:
d0a6a9c7 1727#line 1203 "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:
d0a6a9c7 1741#line 1213 "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:
d0a6a9c7 1755#line 1223 "perly.y"
53443c95 1756 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 1757
e118fea3
FC
1758 break;
1759
02b85d3d 1760 case 226:
d0a6a9c7 1761#line 1225 "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:
d0a6a9c7 1767#line 1227 "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:
d0a6a9c7 1774#line 1230 "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:
d0a6a9c7 1783#line 1235 "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:
d0a6a9c7 1791#line 1239 "perly.y"
53443c95 1792 { (yyval.opval) = newSVREF((ps[-3].val.opval)); }
a9f5ab8d 1793
89f35911
FC
1794 break;
1795
02b85d3d 1796 case 231:
d0a6a9c7 1797#line 1241 "perly.y"
53443c95 1798 { (yyval.opval) = newAVREF((ps[-3].val.opval)); }
a9f5ab8d 1799
0de566d7
DM
1800 break;
1801
02b85d3d 1802 case 232:
d0a6a9c7 1803#line 1243 "perly.y"
53443c95 1804 { (yyval.opval) = newHVREF((ps[-3].val.opval)); }
a9f5ab8d 1805
0de566d7
DM
1806 break;
1807
02b85d3d 1808 case 233:
d0a6a9c7 1809#line 1245 "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:
d0a6a9c7 1816#line 1248 "perly.y"
53443c95 1817 { (yyval.opval) = newGVREF(0,(ps[-3].val.opval)); }
a9f5ab8d 1818
0de566d7
DM
1819 break;
1820
02b85d3d 1821 case 235:
d0a6a9c7 1822#line 1250 "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:
d0a6a9c7 1829#line 1253 "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:
d0a6a9c7 1835#line 1255 "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:
d0a6a9c7 1841#line 1257 "perly.y"
53443c95 1842 { (yyval.opval) = newOP((ps[0].val.ival), 0); }
a9f5ab8d 1843
0de566d7
DM
1844 break;
1845
02b85d3d 1846 case 239:
d0a6a9c7 1847#line 1259 "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:
d0a6a9c7 1853#line 1261 "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:
d0a6a9c7 1859#line 1263 "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:
d0a6a9c7 1865#line 1265 "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:
d0a6a9c7 1871#line 1267 "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:
d0a6a9c7 1877#line 1269 "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:
d0a6a9c7 1884#line 1272 "perly.y"
53443c95 1885 { (yyval.opval) = newOP((ps[0].val.ival), 0); }
a9f5ab8d 1886
0de566d7
DM
1887 break;
1888
02b85d3d 1889 case 246:
d0a6a9c7 1890#line 1274 "perly.y"
53443c95 1891 { (yyval.opval) = newOP((ps[-2].val.ival), 0);}
a9f5ab8d 1892
0de566d7
DM
1893 break;
1894
02b85d3d 1895 case 247:
d0a6a9c7 1896#line 1276 "perly.y"
53443c95 1897 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 1898
d39c26a6
FC
1899 break;
1900
02b85d3d 1901 case 248:
d0a6a9c7 1902#line 1278 "perly.y"
53443c95 1903 { (yyval.opval) = (ps[-2].val.opval); }
a9f5ab8d 1904
d39c26a6
FC
1905 break;
1906
02b85d3d 1907 case 249:
d0a6a9c7 1908#line 1280 "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:
d0a6a9c7 1914#line 1282 "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:
d0a6a9c7 1922#line 1286 "perly.y"
53443c95
BZ
1923 { (yyval.opval) = newUNOP((ps[-3].val.ival), 0, (ps[-1].val.opval)); }
1924
1925 break;
1926
1927 case 252:
d0a6a9c7 1928#line 1288 "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:
d0a6a9c7 1943#line 1299 "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:
d0a6a9c7 1949#line 1307 "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:
d0a6a9c7 1955#line 1309 "perly.y"
53443c95 1956 { (yyval.opval) = localize((ps[0].val.opval),1); }
a9f5ab8d 1957
d63c20f2
DM
1958 break;
1959
02b85d3d 1960 case 259:
d0a6a9c7 1961#line 1311 "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:
d0a6a9c7 1967#line 1316 "perly.y"
53443c95 1968 { (yyval.opval) = sawparens((ps[-1].val.opval)); }
a9f5ab8d 1969
08b3e84f
TC
1970 break;
1971
02b85d3d 1972 case 261:
d0a6a9c7 1973#line 1318 "perly.y"
53443c95 1974 { (yyval.opval) = sawparens(newNULLLIST()); }
a9f5ab8d 1975
764212cf
FC
1976 break;
1977
02b85d3d 1978 case 262:
d0a6a9c7 1979#line 1321 "perly.y"
53443c95 1980 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 1981
4210d3f1
FC
1982 break;
1983
02b85d3d 1984 case 263:
d0a6a9c7 1985#line 1323 "perly.y"
53443c95 1986 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 1987
5cae3edb
RZ
1988 break;
1989
02b85d3d 1990 case 264:
d0a6a9c7 1991#line 1325 "perly.y"
53443c95 1992 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 1993
6dd3e0f2
RZ
1994 break;
1995
02b85d3d 1996 case 265:
d0a6a9c7 1997#line 1330 "perly.y"
53443c95 1998 { (yyval.opval) = NULL; }
a9f5ab8d 1999
cc624add
FC
2000 break;
2001
02b85d3d 2002 case 266:
d0a6a9c7 2003#line 1332 "perly.y"
53443c95 2004 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 2005
0de566d7
DM
2006 break;
2007
02b85d3d 2008 case 267:
d0a6a9c7 2009#line 1336 "perly.y"
53443c95 2010 { (yyval.opval) = NULL; }
a9f5ab8d 2011
9b6b7be8
FC
2012 break;
2013
02b85d3d 2014 case 268:
d0a6a9c7 2015#line 1338 "perly.y"
53443c95 2016 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 2017
9b6b7be8
FC
2018 break;
2019
02b85d3d 2020 case 269:
d0a6a9c7 2021#line 1342 "perly.y"
53443c95 2022 { (yyval.opval) = NULL; }
a9f5ab8d 2023
e118fea3
FC
2024 break;
2025
02b85d3d 2026 case 270:
d0a6a9c7 2027#line 1344 "perly.y"
53443c95 2028 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 2029
d39c26a6
FC
2030 break;
2031
53443c95 2032 case 271:
d0a6a9c7 2033#line 1350 "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:
d0a6a9c7 2039#line 1367 "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:
d0a6a9c7 2045#line 1371 "perly.y"
53443c95 2046 { (yyval.opval) = newSVREF((ps[0].val.opval)); }
a9f5ab8d 2047
0de566d7
DM
2048 break;
2049
02b85d3d 2050 case 281:
d0a6a9c7 2051#line 1375 "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:
d0a6a9c7 2059#line 1381 "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:
d0a6a9c7 2067#line 1387 "perly.y"
53443c95 2068 { (yyval.opval) = newAVREF((ps[0].val.opval)); }
a9f5ab8d 2069
ff25e5db
FC
2070 break;
2071
02b85d3d 2072 case 284:
d0a6a9c7 2073#line 1389 "perly.y"
53443c95 2074 { (yyval.opval) = newAVREF((ps[-3].val.opval)); }
a9f5ab8d 2075
503de470
DM
2076 break;
2077
53443c95 2078 case 285:
d0a6a9c7 2079#line 1393 "perly.y"
53443c95 2080 { (yyval.opval) = newGVREF(0,(ps[0].val.opval)); }
a9f5ab8d 2081
89f35911
FC
2082 break;
2083
53443c95 2084 case 287:
d0a6a9c7 2085#line 1398 "perly.y"
53443c95 2086 { (yyval.opval) = newAVREF((ps[-2].val.opval)); }
a9f5ab8d 2087
76eba8ab
FC
2088 break;
2089
53443c95 2090 case 289:
d0a6a9c7 2091#line 1403 "perly.y"
53443c95 2092 { (yyval.opval) = newHVREF((ps[-2].val.opval)); }
a9f5ab8d 2093
89f35911
FC
2094 break;
2095
02b85d3d 2096 case 291:
d0a6a9c7 2097#line 1408 "perly.y"
53443c95 2098 { (yyval.opval) = newGVREF(0,(ps[-2].val.opval)); }
a9f5ab8d 2099
3cd0a11a
RGS
2100 break;
2101
02b85d3d 2102 case 292:
d0a6a9c7 2103#line 1413 "perly.y"
53443c95 2104 { (yyval.opval) = scalar((ps[0].val.opval)); }
a9f5ab8d 2105
f05e27e5
DM
2106 break;
2107
02b85d3d 2108 case 293:
d0a6a9c7 2109#line 1415 "perly.y"
53443c95 2110 { (yyval.opval) = scalar((ps[0].val.opval)); }
a9f5ab8d 2111
5cae3edb 2112 break;
fb602e32 2113
02b85d3d 2114 case 294:
d0a6a9c7 2115#line 1417 "perly.y"
53443c95 2116 { (yyval.opval) = op_scope((ps[0].val.opval)); }
a9f5ab8d 2117
abcf453d 2118 break;
8635e3c2 2119
53443c95 2120 case 295:
d0a6a9c7 2121#line 1420 "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:
d0a6a9c7 2133 * 6c3ea5db928a29814d45a0242b73172509984d1db7abce64794b630c401219d7 perly.y
53443c95 2134 * acf1cbfd2545faeaaa58b1cf0cf9d7f98b5be0752eb7a54528ef904a9e2e1ca7 regen_perly.pl
c24c946d 2135 * ex: set ro: */