This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
pp_sort.c: silence the "unused parameter" warning
[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:
f417cfa9 8#line 120 "perly.y" /* yacc.c:1648 */
727a8fe5 9 {
624fa8bd 10 parser->expect = XSTATE;
5a2060e2 11 (yyval.ival) = 0;
a9f5ab8d
LM
12 }
13
0de566d7
DM
14 break;
15
16 case 3:
f417cfa9 17#line 125 "perly.y" /* yacc.c:1648 */
636def1f 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:
f417cfa9 27#line 131 "perly.y" /* yacc.c:1648 */
727a8fe5 28 {
78cdf107 29 parser->expect = XTERM;
5a2060e2 30 (yyval.ival) = 0;
a9f5ab8d
LM
31 }
32
727a8fe5
Z
33 break;
34
35 case 5:
f417cfa9 36#line 136 "perly.y" /* yacc.c:1648 */
9eb5c532 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:
f417cfa9 45#line 141 "perly.y" /* yacc.c:1648 */
07ffcb73 46 {
78cdf107 47 parser->expect = XBLOCK;
5a2060e2 48 (yyval.ival) = 0;
a9f5ab8d
LM
49 }
50
07ffcb73
Z
51 break;
52
727a8fe5 53 case 7:
f417cfa9 54#line 146 "perly.y" /* yacc.c:1648 */
07ffcb73 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:
f417cfa9 66#line 154 "perly.y" /* yacc.c:1648 */
e53d8f76
Z
67 {
68 parser->expect = XSTATE;
5a2060e2 69 (yyval.ival) = 0;
a9f5ab8d
LM
70 }
71
636def1f
RGS
72 break;
73
727a8fe5 74 case 9:
f417cfa9 75#line 159 "perly.y" /* yacc.c:1648 */
e53d8f76 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:
f417cfa9 87#line 167 "perly.y" /* yacc.c:1648 */
8359b381
Z
88 {
89 parser->expect = XSTATE;
5a2060e2 90 (yyval.ival) = 0;
a9f5ab8d
LM
91 }
92
e53d8f76
Z
93 break;
94
727a8fe5 95 case 11:
f417cfa9 96#line 172 "perly.y" /* yacc.c:1648 */
8359b381 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:
f417cfa9 108#line 180 "perly.y" /* yacc.c:1648 */
78cdf107
Z
109 {
110 parser->expect = XSTATE;
5a2060e2 111 (yyval.ival) = 0;
a9f5ab8d
LM
112 }
113
78cdf107
Z
114 break;
115
116 case 13:
f417cfa9 117#line 185 "perly.y" /* yacc.c:1648 */
78cdf107 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:
f417cfa9 126#line 190 "perly.y" /* yacc.c:1648 */
996b0cb8
PLE
127 {
128 parser->expect = XSTATE;
129 (yyval.ival) = 0;
130 }
131
132 break;
133
134 case 15:
f417cfa9 135#line 195 "perly.y" /* yacc.c:1648 */
996b0cb8
PLE
136 {
137 PL_eval_root = (ps[0].val.opval);
138 (yyval.ival) = 0;
139 }
140
141 break;
142
143 case 16:
f417cfa9 144#line 203 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
145 { if (parser->copline > (line_t)(ps[-3].val.ival))
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:
f417cfa9 153#line 211 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
154 { if (parser->copline > (line_t)(ps[-6].val.ival))
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:
f417cfa9 162#line 218 "perly.y" /* yacc.c:1648 */
34b54951 163 { (yyval.ival) = block_start(TRUE);
a9f5ab8d
LM
164 parser->parsed_sub = 0; }
165
7c70caa5
FC
166 break;
167
996b0cb8 168 case 19:
f417cfa9 169#line 223 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
170 { if (parser->copline > (line_t)(ps[-3].val.ival))
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:
f417cfa9 178#line 230 "perly.y" /* yacc.c:1648 */
34b54951 179 { (yyval.ival) = block_start(FALSE);
a9f5ab8d
LM
180 parser->parsed_sub = 0; }
181
0de566d7
DM
182 break;
183
996b0cb8 184 case 21:
f417cfa9 185#line 236 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
186 { (yyval.opval) = NULL; }
187
0de566d7
DM
188 break;
189
996b0cb8 190 case 22:
f417cfa9 191#line 238 "perly.y" /* yacc.c:1648 */
a9f5ab8d 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:
f417cfa9 201#line 247 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
202 { (yyval.opval) = NULL; }
203
705fe0e5
FC
204 break;
205
996b0cb8 206 case 24:
f417cfa9 207#line 249 "perly.y" /* yacc.c:1648 */
a9f5ab8d 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:
f417cfa9 217#line 258 "perly.y" /* yacc.c:1648 */
eae48c89 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:
f417cfa9 225#line 262 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
226 { (yyval.opval) = (ps[0].val.opval); }
227
0d863452
RH
228 break;
229
996b0cb8 230 case 27:
f417cfa9 231#line 266 "perly.y" /* yacc.c:1648 */
8e720305 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:
f417cfa9 242#line 273 "perly.y" /* yacc.c:1648 */
8e720305 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:
f417cfa9 253#line 283 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
254 { (yyval.opval) = (ps[0].val.opval); }
255
8e720305
Z
256 break;
257
996b0cb8 258 case 30:
f417cfa9 259#line 285 "perly.y" /* yacc.c:1648 */
eae48c89
Z
260 {
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:
f417cfa9 273#line 297 "perly.y" /* yacc.c:1648 */
50278755 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:
f417cfa9 283#line 303 "perly.y" /* yacc.c:1648 */
f05e27e5 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:
f417cfa9 298#line 318 "perly.y" /* yacc.c:1648 */
f05e27e5 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:
f417cfa9 308#line 324 "perly.y" /* yacc.c:1648 */
436ddf68
DM
309 {
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:
f417cfa9 323#line 335 "perly.y" /* yacc.c:1648 */
436ddf68 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:
f417cfa9 334#line 342 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
335 { CvSPECIAL_on(PL_compcv); /* It's a BEGIN {} */ }
336
0de566d7
DM
337 break;
338
996b0cb8 339 case 37:
f417cfa9 340#line 344 "perly.y" /* yacc.c:1648 */
5f211341 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:
f417cfa9 351#line 351 "perly.y" /* yacc.c:1648 */
eae48c89 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:
f417cfa9 361#line 357 "perly.y" /* yacc.c:1648 */
eae48c89 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:
f417cfa9 371#line 363 "perly.y" /* yacc.c:1648 */
eae48c89 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:
f417cfa9 380#line 368 "perly.y" /* yacc.c:1648 */
7896dde7 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:
f417cfa9 386#line 370 "perly.y" /* yacc.c:1648 */
7896dde7
Z
387 { (yyval.opval) = newWHENOP(0, op_scope((ps[0].val.opval))); }
388
389 break;
390
996b0cb8 391 case 43:
f417cfa9 392#line 372 "perly.y" /* yacc.c:1648 */
eae48c89 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:
f417cfa9 403#line 379 "perly.y" /* yacc.c:1648 */
eae48c89 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:
f417cfa9 414#line 386 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
415 { parser->expect = XTERM; }
416
2d0e3c96
FC
417 break;
418
996b0cb8 419 case 46:
f417cfa9 420#line 388 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
421 { parser->expect = XTERM; }
422
2d0e3c96
FC
423 break;
424
996b0cb8 425 case 47:
f417cfa9 426#line 391 "perly.y" /* yacc.c:1648 */
eae48c89 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:
f417cfa9 445#line 406 "perly.y" /* yacc.c:1648 */
eae48c89 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:
f417cfa9 454#line 411 "perly.y" /* yacc.c:1648 */
eae48c89 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:
f417cfa9 464#line 417 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
465 { parser->in_my = 0; (yyval.opval) = my((ps[0].val.opval)); }
466
d39c26a6
FC
467 break;
468
996b0cb8 469 case 51:
f417cfa9 470#line 419 "perly.y" /* yacc.c:1648 */
d39c26a6
FC
471 {
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:
f417cfa9 487#line 432 "perly.y" /* yacc.c:1648 */
d39c26a6 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:
f417cfa9 499#line 440 "perly.y" /* yacc.c:1648 */
eae48c89 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:
f417cfa9 509#line 446 "perly.y" /* yacc.c:1648 */
eae48c89
Z
510 {
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:
f417cfa9 519#line 452 "perly.y" /* yacc.c:1648 */
eae48c89 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:
f417cfa9 530#line 459 "perly.y" /* yacc.c:1648 */
eae48c89
Z
531 {
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:
f417cfa9 542#line 467 "perly.y" /* yacc.c:1648 */
eae48c89 543 {
a9f5ab8d
LM
544 (yyval.opval) = (ps[-1].val.opval);
545 }
546
0d863452
RH
547 break;
548
996b0cb8 549 case 58:
f417cfa9 550#line 471 "perly.y" /* yacc.c:1648 */
eae48c89 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:
f417cfa9 559#line 476 "perly.y" /* yacc.c:1648 */
29d69c3c 560 {
a9f5ab8d 561 (yyval.opval) = NULL;
624fa8bd 562 parser->copline = NOLINE;
a9f5ab8d
LM
563 }
564
0de566d7
DM
565 break;
566
996b0cb8 567 case 60:
f417cfa9 568#line 484 "perly.y" /* yacc.c:1648 */
705fe0e5 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:
f417cfa9 587#line 501 "perly.y" /* yacc.c:1648 */
869b8c11
Z
588 { (yyval.opval) = NULL; }
589
590 break;
591
996b0cb8 592 case 62:
f417cfa9 593#line 503 "perly.y" /* yacc.c:1648 */
869b8c11 594 { (yyval.opval) = op_unscope((ps[-1].val.opval)); }
a9f5ab8d 595
0de566d7
DM
596 break;
597
996b0cb8 598 case 63:
f417cfa9 599#line 508 "perly.y" /* yacc.c:1648 */
869b8c11 600 { (yyval.opval) = NULL; }
a9f5ab8d 601
0de566d7
DM
602 break;
603
996b0cb8 604 case 64:
f417cfa9 605#line 510 "perly.y" /* yacc.c:1648 */
869b8c11 606 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 607
0de566d7
DM
608 break;
609
996b0cb8 610 case 65:
f417cfa9 611#line 512 "perly.y" /* yacc.c:1648 */
869b8c11 612 { (yyval.opval) = newLOGOP(OP_AND, 0, (ps[0].val.opval), (ps[-2].val.opval)); }
a9f5ab8d 613
0d863452
RH
614 break;
615
996b0cb8 616 case 66:
f417cfa9 617#line 514 "perly.y" /* yacc.c:1648 */
869b8c11 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 67:
f417cfa9 623#line 516 "perly.y" /* yacc.c:1648 */
869b8c11 624 { (yyval.opval) = newLOOPOP(OPf_PARENS, 1, scalar((ps[0].val.opval)), (ps[-2].val.opval)); }
a9f5ab8d 625
2d0e3c96
FC
626 break;
627
996b0cb8 628 case 68:
f417cfa9 629#line 518 "perly.y" /* yacc.c:1648 */
869b8c11 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 69:
f417cfa9 635#line 520 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
636 { (yyval.opval) = newFOROP(0, NULL, (ps[0].val.opval), (ps[-2].val.opval), NULL);
637 parser->copline = (line_t)(ps[-1].val.ival); }
638
d39c26a6
FC
639 break;
640
996b0cb8 641 case 70:
f417cfa9 642#line 523 "perly.y" /* yacc.c:1648 */
7896dde7 643 { (yyval.opval) = newWHENOP((ps[0].val.opval), op_scope((ps[-2].val.opval))); }
a9f5ab8d 644
abcf453d
PM
645 break;
646
996b0cb8 647 case 71:
f417cfa9 648#line 528 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
649 { (yyval.opval) = NULL; }
650
abcf453d
PM
651 break;
652
996b0cb8 653 case 72:
f417cfa9 654#line 530 "perly.y" /* yacc.c:1648 */
3ad73efd 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
996b0cb8 662 case 73:
f417cfa9 663#line 535 "perly.y" /* yacc.c:1648 */
a9f5ab8d 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
996b0cb8 673 case 74:
f417cfa9 674#line 545 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
675 { (yyval.opval) = NULL; }
676
eae48c89
Z
677 break;
678
996b0cb8 679 case 75:
f417cfa9 680#line 547 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
681 { (yyval.opval) = op_scope((ps[0].val.opval)); }
682
eae48c89
Z
683 break;
684
996b0cb8 685 case 76:
f417cfa9 686#line 552 "perly.y" /* yacc.c:1648 */
9a9798c2 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
996b0cb8 693 case 77:
f417cfa9 694#line 558 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
695 { (yyval.opval) = NULL; }
696
7c70caa5
FC
697 break;
698
996b0cb8 699 case 79:
f417cfa9 700#line 564 "perly.y" /* yacc.c:1648 */
abcf453d
PM
701 { YYSTYPE tmplval;
702 (void)scan_num("1", &tmplval);
a9f5ab8d
LM
703 (yyval.opval) = tmplval.opval; }
704
0de566d7
DM
705 break;
706
996b0cb8 707 case 81:
f417cfa9 708#line 572 "perly.y" /* yacc.c:1648 */
29d69c3c 709 { (yyval.opval) = invert(scalar((ps[0].val.opval))); }
a9f5ab8d 710
2af555bf
DM
711 break;
712
996b0cb8 713 case 82:
f417cfa9 714#line 577 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
715 { (yyval.opval) = (ps[0].val.opval); intro_my(); }
716
0de566d7
DM
717 break;
718
996b0cb8 719 case 83:
f417cfa9 720#line 581 "perly.y" /* yacc.c:1648 */
29d69c3c 721 { (yyval.opval) = (ps[0].val.opval); intro_my(); }
a9f5ab8d 722
0de566d7
DM
723 break;
724
996b0cb8 725 case 84:
f417cfa9 726#line 584 "perly.y" /* yacc.c:1648 */
29d69c3c 727 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 728
b5bbe64a
JH
729 break;
730
996b0cb8 731 case 85:
f417cfa9 732#line 585 "perly.y" /* yacc.c:1648 */
29d69c3c 733 { (yyval.opval) = NULL; }
a9f5ab8d 734
0de566d7
DM
735 break;
736
996b0cb8 737 case 86:
f417cfa9 738#line 589 "perly.y" /* yacc.c:1648 */
29d69c3c 739 { (yyval.ival) = start_subparse(FALSE, 0);
a9f5ab8d
LM
740 SAVEFREESV(PL_compcv); }
741
0de566d7
DM
742 break;
743
996b0cb8 744 case 87:
f417cfa9 745#line 595 "perly.y" /* yacc.c:1648 */
29d69c3c 746 { (yyval.ival) = start_subparse(FALSE, CVf_ANON);
a9f5ab8d
LM
747 SAVEFREESV(PL_compcv); }
748
0de566d7
DM
749 break;
750
996b0cb8 751 case 88:
f417cfa9 752#line 600 "perly.y" /* yacc.c:1648 */
29d69c3c
Z
753 { (yyval.ival) = start_subparse(TRUE, 0);
754 SAVEFREESV(PL_compcv); }
a9f5ab8d 755
2d0e3c96
FC
756 break;
757
996b0cb8 758 case 91:
f417cfa9 759#line 611 "perly.y" /* yacc.c:1648 */
869b8c11
Z
760 { (yyval.opval) = NULL; }
761
762 break;
763
996b0cb8 764 case 93:
f417cfa9 765#line 617 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
766 { (yyval.opval) = NULL; }
767
2d0e3c96
FC
768 break;
769
996b0cb8 770 case 94:
f417cfa9 771#line 619 "perly.y" /* yacc.c:1648 */
869b8c11 772 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 773
d39c26a6
FC
774 break;
775
996b0cb8 776 case 95:
f417cfa9 777#line 621 "perly.y" /* yacc.c:1648 */
869b8c11 778 { (yyval.opval) = NULL; }
a9f5ab8d 779
d39c26a6
FC
780 break;
781
996b0cb8 782 case 96:
f417cfa9 783#line 626 "perly.y" /* yacc.c:1648 */
869b8c11 784 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 785
d39c26a6
FC
786 break;
787
996b0cb8 788 case 97:
f417cfa9 789#line 628 "perly.y" /* yacc.c:1648 */
869b8c11 790 { (yyval.opval) = NULL; }
a9f5ab8d 791
abcf453d
PM
792 break;
793
996b0cb8 794 case 98:
f417cfa9 795#line 639 "perly.y" /* yacc.c:1648 */
869b8c11 796 { parser->in_my = 0; (yyval.opval) = NULL; }
a9f5ab8d 797
d3d9da4a
DM
798 break;
799
996b0cb8 800 case 99:
f417cfa9 801#line 641 "perly.y" /* yacc.c:1648 */
869b8c11 802 { parser->in_my = 0; (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 803
d3d9da4a
DM
804 break;
805
996b0cb8 806 case 100:
f417cfa9 807#line 646 "perly.y" /* yacc.c:1648 */
869b8c11 808 { (yyval.ival) = '@'; }
a9f5ab8d 809
d3d9da4a
DM
810 break;
811
996b0cb8 812 case 101:
f417cfa9 813#line 648 "perly.y" /* yacc.c:1648 */
29d69c3c
Z
814 { (yyval.ival) = '%'; }
815
816 break;
817
996b0cb8 818 case 102:
f417cfa9 819#line 652 "perly.y" /* yacc.c:1648 */
d3d9da4a 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 103:
f417cfa9 839#line 671 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
840 { (yyval.opval) = NULL; }
841
d3d9da4a
DM
842 break;
843
996b0cb8 844 case 104:
f417cfa9 845#line 673 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
846 { (yyval.opval) = newOP(OP_NULL, 0); }
847
d3d9da4a
DM
848 break;
849
996b0cb8 850 case 105:
f417cfa9 851#line 675 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
852 { (yyval.opval) = (ps[0].val.opval); }
853
d3d9da4a
DM
854 break;
855
996b0cb8 856 case 106:
f417cfa9 857#line 681 "perly.y" /* yacc.c:1648 */
30d9c59b 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 107:
f417cfa9 922#line 746 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
923 { parser->in_my = KEY_sigvar; (yyval.opval) = (ps[0].val.opval); }
924
d3d9da4a
DM
925 break;
926
996b0cb8 927 case 108:
f417cfa9 928#line 748 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
929 { parser->in_my = KEY_sigvar; (yyval.opval) = (ps[0].val.opval); }
930
d3d9da4a
DM
931 break;
932
996b0cb8 933 case 109:
f417cfa9 934#line 754 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
935 { (yyval.opval) = (ps[-1].val.opval); }
936
d3d9da4a
DM
937 break;
938
996b0cb8 939 case 110:
f417cfa9 940#line 756 "perly.y" /* yacc.c:1648 */
d3d9da4a 941 {
a9f5ab8d
LM
942 (yyval.opval) = op_append_list(OP_LINESEQ, (ps[-2].val.opval), (ps[0].val.opval));
943 }
944
30d9c59b
Z
945 break;
946
996b0cb8 947 case 111:
f417cfa9 948#line 760 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
949 { (yyval.opval) = (ps[0].val.opval); }
950
d3d9da4a
DM
951 break;
952
996b0cb8 953 case 112:
f417cfa9 954#line 765 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
955 { (yyval.opval) = NULL; }
956
d3d9da4a
DM
957 break;
958
996b0cb8 959 case 113:
f417cfa9 960#line 767 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
961 { (yyval.opval) = (ps[0].val.opval); }
962
d3d9da4a
DM
963 break;
964
996b0cb8 965 case 114:
f417cfa9 966#line 771 "perly.y" /* yacc.c:1648 */
75230cc1 967 { (yyval.opval) = NULL; }
894f226e
DM
968
969 break;
970
996b0cb8 971 case 115:
f417cfa9 972#line 773 "perly.y" /* yacc.c:1648 */
75230cc1
DM
973 { (yyval.opval) = (ps[0].val.opval); }
974
975 break;
976
996b0cb8 977 case 116:
f417cfa9 978#line 777 "perly.y" /* yacc.c:1648 */
996b0cb8
PLE
979 { (yyval.opval) = (ps[-1].val.opval); }
980
981 break;
982
983 case 117:
f417cfa9 984#line 780 "perly.y" /* yacc.c:1648 */
30d9c59b 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
996b0cb8 998 case 118:
f417cfa9 999#line 791 "perly.y" /* yacc.c:1648 */
d3d9da4a 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
996b0cb8 1057 case 119:
4df85778 1058#line 848 "perly.y" /* yacc.c:1648 */
75230cc1
DM
1059 { (yyval.opval) = (ps[0].val.opval); }
1060
1061 break;
1062
996b0cb8 1063 case 120:
4df85778 1064#line 849 "perly.y" /* yacc.c:1648 */
75230cc1
DM
1065 { (yyval.opval) = NULL; }
1066
1067 break;
1068
996b0cb8 1069 case 121:
4df85778 1070#line 855 "perly.y" /* yacc.c:1648 */
894f226e
DM
1071 {
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 122:
4df85778 1080#line 865 "perly.y" /* yacc.c:1648 */
894f226e
DM
1081 { (yyval.opval) = (ps[0].val.opval); }
1082
1083 break;
1084
996b0cb8 1085 case 123:
4df85778 1086#line 866 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
1087 { (yyval.opval) = NULL; }
1088
0de566d7
DM
1089 break;
1090
996b0cb8 1091 case 124:
4df85778 1092#line 870 "perly.y" /* yacc.c:1648 */
75230cc1
DM
1093 {
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 125:
4df85778 1103#line 881 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
1104 { (yyval.opval) = newLOGOP(OP_AND, 0, (ps[-2].val.opval), (ps[0].val.opval)); }
1105
b5bbe64a
JH
1106 break;
1107
996b0cb8 1108 case 126:
4df85778 1109#line 883 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
1110 { (yyval.opval) = newLOGOP((ps[-1].val.ival), 0, (ps[-2].val.opval), (ps[0].val.opval)); }
1111
0de566d7
DM
1112 break;
1113
996b0cb8 1114 case 127:
4df85778 1115#line 885 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
1116 { (yyval.opval) = newLOGOP(OP_DOR, 0, (ps[-2].val.opval), (ps[0].val.opval)); }
1117
0de566d7
DM
1118 break;
1119
996b0cb8 1120 case 129:
4df85778 1121#line 891 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
1122 { (yyval.opval) = (ps[-1].val.opval); }
1123
0de566d7
DM
1124 break;
1125
996b0cb8 1126 case 130:
4df85778 1127#line 893 "perly.y" /* yacc.c:1648 */
abcf453d 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
996b0cb8 1135 case 132:
4df85778 1136#line 902 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
1137 { (yyval.opval) = op_convert_list((ps[-2].val.ival), OPf_STACKED,
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
996b0cb8 1143 case 133:
4df85778 1144#line 906 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
1145 { (yyval.opval) = op_convert_list((ps[-4].val.ival), OPf_STACKED,
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
996b0cb8 1151 case 134:
4df85778 1152#line 910 "perly.y" /* yacc.c:1648 */
03d05f6e 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
996b0cb8 1161 case 135:
4df85778 1162#line 916 "perly.y" /* yacc.c:1648 */
03d05f6e 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
996b0cb8 1170 case 136:
4df85778 1171#line 921 "perly.y" /* yacc.c:1648 */
03d05f6e 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
996b0cb8 1180 case 137:
4df85778 1181#line 927 "perly.y" /* yacc.c:1648 */
03d05f6e 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 138:
4df85778 1191#line 933 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
1192 { (yyval.opval) = op_convert_list((ps[-1].val.ival), 0, (ps[0].val.opval)); }
1193
0de566d7
DM
1194 break;
1195
996b0cb8 1196 case 139:
4df85778 1197#line 935 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
1198 { (yyval.opval) = op_convert_list((ps[-3].val.ival), 0, (ps[-1].val.opval)); }
1199
0de566d7
DM
1200 break;
1201
996b0cb8 1202 case 140:
4df85778 1203#line 937 "perly.y" /* yacc.c:1648 */
69afcc21
TC
1204 { (yyval.opval) = op_convert_list((ps[-3].val.ival), 0, (ps[-1].val.opval)); }
1205
1206 break;
1207
996b0cb8 1208 case 141:
4df85778 1209#line 939 "perly.y" /* yacc.c:1648 */
5a5094bd 1210 { SvREFCNT_inc_simple_void(PL_compcv);
a9f5ab8d
LM
1211 (yyval.opval) = newANONATTRSUB((ps[-1].val.ival), 0, NULL, (ps[0].val.opval)); }
1212
0de566d7
DM
1213 break;
1214
996b0cb8 1215 case 142:
4df85778 1216#line 942 "perly.y" /* yacc.c:1648 */
f05e27e5 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
996b0cb8 1224 case 145:
4df85778 1225#line 957 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
1226 { (yyval.opval) = newBINOP(OP_GELEM, 0, (ps[-4].val.opval), scalar((ps[-2].val.opval))); }
1227
0de566d7
DM
1228 break;
1229
996b0cb8 1230 case 146:
4df85778 1231#line 959 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
1232 { (yyval.opval) = newBINOP(OP_AELEM, 0, oopsAV((ps[-3].val.opval)), scalar((ps[-1].val.opval)));
1233 }
1234
0de566d7
DM
1235 break;
1236
996b0cb8 1237 case 147:
4df85778 1238#line 962 "perly.y" /* yacc.c:1648 */
f05e27e5 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
996b0cb8 1246 case 148:
4df85778 1247#line 967 "perly.y" /* yacc.c:1648 */
f05e27e5 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
996b0cb8 1255 case 149:
4df85778 1256#line 972 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
1257 { (yyval.opval) = newBINOP(OP_HELEM, 0, oopsHV((ps[-4].val.opval)), jmaybe((ps[-2].val.opval)));
1258 }
1259
0de566d7
DM
1260 break;
1261
996b0cb8 1262 case 150:
4df85778 1263#line 975 "perly.y" /* yacc.c:1648 */
f05e27e5 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
996b0cb8 1270 case 151:
4df85778 1271#line 979 "perly.y" /* yacc.c:1648 */
f05e27e5 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
996b0cb8 1278 case 152:
4df85778 1279#line 983 "perly.y" /* yacc.c:1648 */
b5bbe64a 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
996b0cb8 1288 case 153:
4df85778 1289#line 989 "perly.y" /* yacc.c:1648 */
9a9798c2 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
996b0cb8 1299 case 154:
4df85778 1300#line 997 "perly.y" /* yacc.c:1648 */
9a9798c2 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
996b0cb8 1310 case 155:
4df85778 1311#line 1004 "perly.y" /* yacc.c:1648 */
d39c26a6 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 156:
4df85778 1321#line 1010 "perly.y" /* yacc.c:1648 */
869b8c11
Z
1322 { (yyval.opval) = newSLICEOP(0, (ps[-1].val.opval), (ps[-4].val.opval)); }
1323
1324 break;
1325
996b0cb8 1326 case 157:
4df85778 1327#line 1012 "perly.y" /* yacc.c:1648 */
869b8c11 1328 { (yyval.opval) = newSLICEOP(0, (ps[-1].val.opval), (ps[-3].val.opval)); }
a9f5ab8d 1329
0de566d7
DM
1330 break;
1331
996b0cb8 1332 case 158:
4df85778 1333#line 1014 "perly.y" /* yacc.c:1648 */
869b8c11 1334 { (yyval.opval) = newSLICEOP(0, (ps[-1].val.opval), NULL); }
a9f5ab8d 1335
0de566d7
DM
1336 break;
1337
996b0cb8 1338 case 159:
4df85778 1339#line 1019 "perly.y" /* yacc.c:1648 */
869b8c11 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 160:
4df85778 1345#line 1021 "perly.y" /* yacc.c:1648 */
869b8c11 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 161:
4df85778 1351#line 1023 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
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 }
1356
0de566d7
DM
1357 break;
1358
996b0cb8 1359 case 162:
4df85778 1360#line 1028 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
1361 { (yyval.opval) = newBINOP((ps[-1].val.ival), 0, scalar((ps[-2].val.opval)), scalar((ps[0].val.opval))); }
1362
4098b6bb
JV
1363 break;
1364
996b0cb8 1365 case 163:
4df85778 1366#line 1030 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
1367 { (yyval.opval) = newBINOP((ps[-1].val.ival), 0, scalar((ps[-2].val.opval)), scalar((ps[0].val.opval))); }
1368
7c70caa5
FC
1369 break;
1370
996b0cb8 1371 case 164:
4df85778 1372#line 1032 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
1373 { (yyval.opval) = newBINOP((ps[-1].val.ival), 0, scalar((ps[-2].val.opval)), scalar((ps[0].val.opval))); }
1374
764212cf
FC
1375 break;
1376
996b0cb8 1377 case 165:
4df85778 1378#line 1034 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
1379 { (yyval.opval) = newBINOP((ps[-1].val.ival), 0, scalar((ps[-2].val.opval)), scalar((ps[0].val.opval))); }
1380
0de566d7
DM
1381 break;
1382
996b0cb8 1383 case 166:
4df85778 1384#line 1036 "perly.y" /* yacc.c:1648 */
7896dde7 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 167:
4df85778 1390#line 1038 "perly.y" /* yacc.c:1648 */
69afcc21 1391 { (yyval.opval) = newBINOP((ps[-1].val.ival), 0, scalar((ps[-2].val.opval)), scalar((ps[0].val.opval))); }
a9f5ab8d 1392
0de566d7
DM
1393 break;
1394
996b0cb8 1395 case 168:
4df85778 1396#line 1040 "perly.y" /* yacc.c:1648 */
69afcc21 1397 { (yyval.opval) = newRANGE((ps[-1].val.ival), scalar((ps[-2].val.opval)), scalar((ps[0].val.opval))); }
a9f5ab8d 1398
500bedb6
DM
1399 break;
1400
996b0cb8 1401 case 169:
4df85778 1402#line 1042 "perly.y" /* yacc.c:1648 */
69afcc21 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 170:
4df85778 1408#line 1044 "perly.y" /* yacc.c:1648 */
69afcc21 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 171:
4df85778 1414#line 1046 "perly.y" /* yacc.c:1648 */
69afcc21 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 172:
4df85778 1420#line 1048 "perly.y" /* yacc.c:1648 */
69afcc21 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 173:
4df85778 1426#line 1053 "perly.y" /* yacc.c:1648 */
69afcc21 1427 { (yyval.opval) = newUNOP(OP_NEGATE, 0, scalar((ps[0].val.opval))); }
a9f5ab8d 1428
0de566d7
DM
1429 break;
1430
996b0cb8 1431 case 174:
4df85778 1432#line 1055 "perly.y" /* yacc.c:1648 */
69afcc21 1433 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 1434
cc624add
FC
1435 break;
1436
996b0cb8 1437 case 175:
4df85778 1438#line 1058 "perly.y" /* yacc.c:1648 */
69afcc21 1439 { (yyval.opval) = newUNOP(OP_NOT, 0, scalar((ps[0].val.opval))); }
7896dde7
Z
1440
1441 break;
1442
996b0cb8 1443 case 176:
4df85778 1444#line 1060 "perly.y" /* yacc.c:1648 */
69afcc21
TC
1445 { (yyval.opval) = newUNOP((ps[-1].val.ival), 0, scalar((ps[0].val.opval))); }
1446
1447 break;
1448
996b0cb8 1449 case 177:
4df85778 1450#line 1062 "perly.y" /* yacc.c:1648 */
d39c26a6 1451 { (yyval.opval) = newUNOP(OP_POSTINC, 0,
a9f5ab8d
LM
1452 op_lvalue(scalar((ps[-1].val.opval)), OP_POSTINC)); }
1453
0de566d7
DM
1454 break;
1455
996b0cb8 1456 case 178:
4df85778 1457#line 1065 "perly.y" /* yacc.c:1648 */
d39c26a6 1458 { (yyval.opval) = newUNOP(OP_POSTDEC, 0,
a9f5ab8d
LM
1459 op_lvalue(scalar((ps[-1].val.opval)), OP_POSTDEC));}
1460
b5bbe64a
JH
1461 break;
1462
996b0cb8 1463 case 179:
4df85778 1464#line 1068 "perly.y" /* yacc.c:1648 */
03d05f6e 1465 { (yyval.opval) = op_convert_list(OP_JOIN, 0,
d39c26a6
FC
1466 op_append_elem(
1467 OP_LIST,
1468 newSVREF(scalar(
1469 newSVOP(OP_CONST,0,
1470 newSVpvs("\""))
1471 )),
a9f5ab8d 1472 (ps[-1].val.opval)
d39c26a6 1473 ));
a9f5ab8d
LM
1474 }
1475
0de566d7
DM
1476 break;
1477
996b0cb8 1478 case 180:
4df85778 1479#line 1079 "perly.y" /* yacc.c:1648 */
d39c26a6 1480 { (yyval.opval) = newUNOP(OP_PREINC, 0,
a9f5ab8d
LM
1481 op_lvalue(scalar((ps[0].val.opval)), OP_PREINC)); }
1482
0de566d7
DM
1483 break;
1484
996b0cb8 1485 case 181:
4df85778 1486#line 1082 "perly.y" /* yacc.c:1648 */
d39c26a6 1487 { (yyval.opval) = newUNOP(OP_PREDEC, 0,
a9f5ab8d
LM
1488 op_lvalue(scalar((ps[0].val.opval)), OP_PREDEC)); }
1489
0de566d7
DM
1490 break;
1491
996b0cb8 1492 case 182:
4df85778 1493#line 1089 "perly.y" /* yacc.c:1648 */
869b8c11
Z
1494 { (yyval.opval) = newANONLIST((ps[-1].val.opval)); }
1495
1496 break;
1497
996b0cb8 1498 case 183:
4df85778 1499#line 1091 "perly.y" /* yacc.c:1648 */
869b8c11 1500 { (yyval.opval) = newANONLIST(NULL);}
a9f5ab8d 1501
0de566d7
DM
1502 break;
1503
996b0cb8 1504 case 184:
4df85778 1505#line 1093 "perly.y" /* yacc.c:1648 */
869b8c11 1506 { (yyval.opval) = newANONHASH((ps[-2].val.opval)); }
a9f5ab8d 1507
9a9798c2
YST
1508 break;
1509
996b0cb8 1510 case 185:
4df85778 1511#line 1095 "perly.y" /* yacc.c:1648 */
869b8c11 1512 { (yyval.opval) = newANONHASH(NULL); }
a9f5ab8d 1513
9a9798c2
YST
1514 break;
1515
996b0cb8 1516 case 186:
4df85778 1517#line 1097 "perly.y" /* yacc.c:1648 */
d39c26a6 1518 { SvREFCNT_inc_simple_void(PL_compcv);
a9f5ab8d
LM
1519 (yyval.opval) = newANONATTRSUB((ps[-3].val.ival), (ps[-2].val.opval), (ps[-1].val.opval), (ps[0].val.opval)); }
1520
0de566d7
DM
1521 break;
1522
996b0cb8 1523 case 187:
4df85778 1524#line 1100 "perly.y" /* yacc.c:1648 */
436ddf68 1525 { SvREFCNT_inc_simple_void(PL_compcv);
75230cc1 1526 (yyval.opval) = newANONATTRSUB((ps[-2].val.ival), NULL, (ps[-1].val.opval), (ps[0].val.opval)); }
436ddf68
DM
1527
1528 break;
1529
996b0cb8 1530 case 188:
4df85778 1531#line 1106 "perly.y" /* yacc.c:1648 */
894f226e 1532 { (yyval.opval) = dofile((ps[0].val.opval), (ps[-1].val.ival));}
a9f5ab8d 1533
0de566d7
DM
1534 break;
1535
996b0cb8 1536 case 189:
4df85778 1537#line 1108 "perly.y" /* yacc.c:1648 */
894f226e 1538 { (yyval.opval) = newUNOP(OP_NULL, OPf_SPECIAL, op_scope((ps[0].val.opval)));}
a9f5ab8d 1539
0de566d7
DM
1540 break;
1541
996b0cb8 1542 case 194:
4df85778 1543#line 1116 "perly.y" /* yacc.c:1648 */
69afcc21 1544 { (yyval.opval) = newCONDOP(0, (ps[-4].val.opval), (ps[-2].val.opval), (ps[0].val.opval)); }
a9f5ab8d 1545
0de566d7
DM
1546 break;
1547
996b0cb8 1548 case 195:
4df85778 1549#line 1118 "perly.y" /* yacc.c:1648 */
69afcc21 1550 { (yyval.opval) = newUNOP(OP_REFGEN, 0, (ps[0].val.opval)); }
a9f5ab8d 1551
ea25a9b2
Z
1552 break;
1553
996b0cb8 1554 case 196:
4df85778 1555#line 1120 "perly.y" /* yacc.c:1648 */
69afcc21 1556 { (yyval.opval) = newUNOP(OP_REFGEN, 0, localize((ps[0].val.opval),1)); }
a9f5ab8d 1557
0de566d7
DM
1558 break;
1559
996b0cb8 1560 case 197:
4df85778 1561#line 1122 "perly.y" /* yacc.c:1648 */
69afcc21 1562 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 1563
0de566d7
DM
1564 break;
1565
996b0cb8 1566 case 198:
4df85778 1567#line 1124 "perly.y" /* yacc.c:1648 */
69afcc21 1568 { (yyval.opval) = localize((ps[0].val.opval),0); }
a9f5ab8d 1569
f20dcd76
VP
1570 break;
1571
996b0cb8 1572 case 199:
4df85778 1573#line 1126 "perly.y" /* yacc.c:1648 */
69afcc21 1574 { (yyval.opval) = sawparens((ps[-1].val.opval)); }
a9f5ab8d 1575
8e720305
Z
1576 break;
1577
996b0cb8 1578 case 200:
4df85778 1579#line 1128 "perly.y" /* yacc.c:1648 */
69afcc21 1580 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 1581
08b3e84f
TC
1582 break;
1583
996b0cb8 1584 case 201:
4df85778 1585#line 1130 "perly.y" /* yacc.c:1648 */
69afcc21 1586 { (yyval.opval) = sawparens(newNULLLIST()); }
a9f5ab8d 1587
4210d3f1
FC
1588 break;
1589
996b0cb8 1590 case 202:
4df85778 1591#line 1132 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
1592 { (yyval.opval) = (ps[0].val.opval); }
1593
cc624add
FC
1594 break;
1595
996b0cb8 1596 case 203:
4df85778 1597#line 1134 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
1598 { (yyval.opval) = (ps[0].val.opval); }
1599
d39c26a6
FC
1600 break;
1601
996b0cb8 1602 case 204:
4df85778 1603#line 1136 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
1604 { (yyval.opval) = (ps[0].val.opval); }
1605
d39c26a6
FC
1606 break;
1607
996b0cb8 1608 case 205:
4df85778 1609#line 1138 "perly.y" /* yacc.c:1648 */
69afcc21 1610 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 1611
e118fea3
FC
1612 break;
1613
996b0cb8 1614 case 206:
4df85778 1615#line 1140 "perly.y" /* yacc.c:1648 */
69afcc21 1616 { (yyval.opval) = newUNOP(OP_AV2ARYLEN, 0, ref((ps[0].val.opval), OP_AV2ARYLEN));}
7896dde7
Z
1617
1618 break;
1619
996b0cb8 1620 case 207:
4df85778 1621#line 1142 "perly.y" /* yacc.c:1648 */
69afcc21
TC
1622 { (yyval.opval) = (ps[0].val.opval); }
1623
1624 break;
1625
996b0cb8 1626 case 208:
4df85778 1627#line 1144 "perly.y" /* yacc.c:1648 */
2fcb4757 1628 { (yyval.opval) = op_prepend_elem(OP_ASLICE,
f05e27e5
DM
1629 newOP(OP_PUSHMARK, 0),
1630 newLISTOP(OP_ASLICE, 0,
a9f5ab8d
LM
1631 list((ps[-1].val.opval)),
1632 ref((ps[-3].val.opval), OP_ASLICE)));
1633 if ((yyval.opval) && (ps[-3].val.opval))
429a2555 1634 (yyval.opval)->op_private |=
a9f5ab8d
LM
1635 (ps[-3].val.opval)->op_private & OPpSLICEWARNING;
1636 }
1637
0de566d7
DM
1638 break;
1639
996b0cb8 1640 case 209:
4df85778 1641#line 1154 "perly.y" /* yacc.c:1648 */
6dd3e0f2
RZ
1642 { (yyval.opval) = op_prepend_elem(OP_KVASLICE,
1643 newOP(OP_PUSHMARK, 0),
1644 newLISTOP(OP_KVASLICE, 0,
a9f5ab8d
LM
1645 list((ps[-1].val.opval)),
1646 ref(oopsAV((ps[-3].val.opval)), OP_KVASLICE)));
1647 if ((yyval.opval) && (ps[-3].val.opval))
95a31aad 1648 (yyval.opval)->op_private |=
a9f5ab8d
LM
1649 (ps[-3].val.opval)->op_private & OPpSLICEWARNING;
1650 }
1651
6dd3e0f2
RZ
1652 break;
1653
996b0cb8 1654 case 210:
4df85778 1655#line 1164 "perly.y" /* yacc.c:1648 */
2fcb4757 1656 { (yyval.opval) = op_prepend_elem(OP_HSLICE,
f05e27e5
DM
1657 newOP(OP_PUSHMARK, 0),
1658 newLISTOP(OP_HSLICE, 0,
a9f5ab8d
LM
1659 list((ps[-2].val.opval)),
1660 ref(oopsHV((ps[-4].val.opval)), OP_HSLICE)));
1661 if ((yyval.opval) && (ps[-4].val.opval))
429a2555 1662 (yyval.opval)->op_private |=
a9f5ab8d
LM
1663 (ps[-4].val.opval)->op_private & OPpSLICEWARNING;
1664 }
1665
0de566d7
DM
1666 break;
1667
996b0cb8 1668 case 211:
4df85778 1669#line 1174 "perly.y" /* yacc.c:1648 */
5cae3edb
RZ
1670 { (yyval.opval) = op_prepend_elem(OP_KVHSLICE,
1671 newOP(OP_PUSHMARK, 0),
1672 newLISTOP(OP_KVHSLICE, 0,
a9f5ab8d
LM
1673 list((ps[-2].val.opval)),
1674 ref((ps[-4].val.opval), OP_KVHSLICE)));
1675 if ((yyval.opval) && (ps[-4].val.opval))
95a31aad 1676 (yyval.opval)->op_private |=
a9f5ab8d
LM
1677 (ps[-4].val.opval)->op_private & OPpSLICEWARNING;
1678 }
1679
0de566d7
DM
1680 break;
1681
996b0cb8 1682 case 212:
4df85778 1683#line 1184 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
1684 { (yyval.opval) = (ps[0].val.opval); }
1685
0de566d7
DM
1686 break;
1687
996b0cb8 1688 case 213:
4df85778 1689#line 1186 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
1690 { (yyval.opval) = newUNOP(OP_ENTERSUB, 0, scalar((ps[0].val.opval))); }
1691
e118fea3
FC
1692 break;
1693
996b0cb8 1694 case 214:
4df85778 1695#line 1188 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
1696 { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, scalar((ps[-2].val.opval)));
1697 }
1698
abcf453d
PM
1699 break;
1700
996b0cb8 1701 case 215:
4df85778 1702#line 1191 "perly.y" /* yacc.c:1648 */
f05e27e5
DM
1703 {
1704 (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED,
a9f5ab8d
LM
1705 op_append_elem(OP_LIST, (ps[-1].val.opval), scalar((ps[-3].val.opval))));
1706 }
1707
0de566d7
DM
1708 break;
1709
996b0cb8 1710 case 216:
4df85778 1711#line 1196 "perly.y" /* yacc.c:1648 */
f05e27e5 1712 { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED,
a9f5ab8d
LM
1713 op_append_elem(OP_LIST, (ps[0].val.opval), scalar((ps[-1].val.opval))));
1714 }
1715
89f35911
FC
1716 break;
1717
996b0cb8 1718 case 217:
4df85778 1719#line 1200 "perly.y" /* yacc.c:1648 */
869b8c11
Z
1720 { (yyval.opval) = newSVREF((ps[-3].val.opval)); }
1721
1722 break;
1723
996b0cb8 1724 case 218:
4df85778 1725#line 1202 "perly.y" /* yacc.c:1648 */
869b8c11 1726 { (yyval.opval) = newAVREF((ps[-3].val.opval)); }
a9f5ab8d 1727
89f35911
FC
1728 break;
1729
996b0cb8 1730 case 219:
4df85778 1731#line 1204 "perly.y" /* yacc.c:1648 */
869b8c11 1732 { (yyval.opval) = newHVREF((ps[-3].val.opval)); }
a9f5ab8d 1733
0de566d7
DM
1734 break;
1735
996b0cb8 1736 case 220:
4df85778 1737#line 1206 "perly.y" /* yacc.c:1648 */
869b8c11
Z
1738 { (yyval.opval) = newUNOP(OP_ENTERSUB, 0,
1739 scalar(newCVREF((ps[-1].val.ival),(ps[-3].val.opval)))); }
a9f5ab8d 1740
0de566d7
DM
1741 break;
1742
996b0cb8 1743 case 221:
4df85778 1744#line 1209 "perly.y" /* yacc.c:1648 */
869b8c11 1745 { (yyval.opval) = newGVREF(0,(ps[-3].val.opval)); }
a9f5ab8d 1746
0de566d7
DM
1747 break;
1748
996b0cb8 1749 case 222:
4df85778 1750#line 1211 "perly.y" /* yacc.c:1648 */
869b8c11
Z
1751 { (yyval.opval) = newOP((ps[0].val.ival), OPf_SPECIAL);
1752 PL_hints |= HINT_BLOCK_SCOPE; }
a9f5ab8d 1753
0de566d7
DM
1754 break;
1755
996b0cb8 1756 case 223:
4df85778 1757#line 1214 "perly.y" /* yacc.c:1648 */
869b8c11 1758 { (yyval.opval) = newLOOPEX((ps[-1].val.ival),(ps[0].val.opval)); }
a9f5ab8d 1759
0de566d7
DM
1760 break;
1761
996b0cb8 1762 case 224:
4df85778 1763#line 1216 "perly.y" /* yacc.c:1648 */
869b8c11 1764 { (yyval.opval) = newUNOP(OP_NOT, 0, scalar((ps[0].val.opval))); }
a9f5ab8d 1765
0de566d7
DM
1766 break;
1767
996b0cb8 1768 case 225:
4df85778 1769#line 1218 "perly.y" /* yacc.c:1648 */
869b8c11 1770 { (yyval.opval) = newOP((ps[0].val.ival), 0); }
a9f5ab8d 1771
0de566d7
DM
1772 break;
1773
996b0cb8 1774 case 226:
4df85778 1775#line 1220 "perly.y" /* yacc.c:1648 */
869b8c11 1776 { (yyval.opval) = newUNOP((ps[-1].val.ival), 0, (ps[0].val.opval)); }
a9f5ab8d 1777
0de566d7
DM
1778 break;
1779
996b0cb8 1780 case 227:
4df85778 1781#line 1222 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
1782 { (yyval.opval) = newUNOP((ps[-1].val.ival), 0, (ps[0].val.opval)); }
1783
9eb5c532
Z
1784 break;
1785
996b0cb8 1786 case 228:
4df85778 1787#line 1224 "perly.y" /* yacc.c:1648 */
869b8c11 1788 { (yyval.opval) = newOP(OP_REQUIRE, (ps[0].val.ival) ? OPf_SPECIAL : 0); }
a9f5ab8d 1789
0de566d7
DM
1790 break;
1791
996b0cb8 1792 case 229:
4df85778 1793#line 1226 "perly.y" /* yacc.c:1648 */
869b8c11 1794 { (yyval.opval) = newUNOP(OP_REQUIRE, (ps[-1].val.ival) ? OPf_SPECIAL : 0, (ps[0].val.opval)); }
a9f5ab8d 1795
0de566d7
DM
1796 break;
1797
996b0cb8 1798 case 230:
4df85778 1799#line 1228 "perly.y" /* yacc.c:1648 */
869b8c11 1800 { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, scalar((ps[0].val.opval))); }
a9f5ab8d 1801
0de566d7
DM
1802 break;
1803
996b0cb8 1804 case 231:
4df85778 1805#line 1230 "perly.y" /* yacc.c:1648 */
869b8c11
Z
1806 { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED,
1807 op_append_elem(OP_LIST, (ps[0].val.opval), scalar((ps[-1].val.opval)))); }
a9f5ab8d 1808
7eb971ee
FC
1809 break;
1810
996b0cb8 1811 case 232:
4df85778 1812#line 1233 "perly.y" /* yacc.c:1648 */
869b8c11 1813 { (yyval.opval) = newOP((ps[0].val.ival), 0); }
a9f5ab8d 1814
7eb971ee
FC
1815 break;
1816
996b0cb8 1817 case 233:
4df85778 1818#line 1235 "perly.y" /* yacc.c:1648 */
869b8c11 1819 { (yyval.opval) = newOP((ps[-2].val.ival), 0);}
a9f5ab8d 1820
0de566d7
DM
1821 break;
1822
996b0cb8 1823 case 234:
4df85778 1824#line 1237 "perly.y" /* yacc.c:1648 */
869b8c11 1825 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 1826
0de566d7
DM
1827 break;
1828
996b0cb8 1829 case 235:
4df85778 1830#line 1239 "perly.y" /* yacc.c:1648 */
869b8c11 1831 { (yyval.opval) = (ps[-2].val.opval); }
a9f5ab8d 1832
d39c26a6
FC
1833 break;
1834
996b0cb8 1835 case 236:
4df85778 1836#line 1241 "perly.y" /* yacc.c:1648 */
869b8c11 1837 { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, scalar((ps[0].val.opval))); }
a9f5ab8d 1838
d39c26a6
FC
1839 break;
1840
996b0cb8 1841 case 237:
4df85778 1842#line 1243 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
1843 { (yyval.opval) = ((ps[-2].val.ival) == OP_NOT)
1844 ? newUNOP((ps[-2].val.ival), 0, newSVOP(OP_CONST, 0, newSViv(0)))
1845 : newOP((ps[-2].val.ival), OPf_SPECIAL); }
1846
d39c26a6
FC
1847 break;
1848
996b0cb8 1849 case 238:
4df85778 1850#line 1247 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
1851 { (yyval.opval) = newUNOP((ps[-3].val.ival), 0, (ps[-1].val.opval)); }
1852
abcf453d
PM
1853 break;
1854
996b0cb8 1855 case 239:
4df85778 1856#line 1249 "perly.y" /* yacc.c:1648 */
d63c20f2 1857 {
a9f5ab8d
LM
1858 if ( (ps[0].val.opval)->op_type != OP_TRANS
1859 && (ps[0].val.opval)->op_type != OP_TRANSR
1860 && (((PMOP*)(ps[0].val.opval))->op_pmflags & PMf_HAS_CV))
d63c20f2
DM
1861 {
1862 (yyval.ival) = start_subparse(FALSE, CVf_ANON);
1863 SAVEFREESV(PL_compcv);
1864 } else
1865 (yyval.ival) = 0;
a9f5ab8d
LM
1866 }
1867
d63c20f2
DM
1868 break;
1869
996b0cb8 1870 case 240:
4df85778 1871#line 1260 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
1872 { (yyval.opval) = pmruntime((ps[-5].val.opval), (ps[-2].val.opval), (ps[-1].val.opval), 1, (ps[-4].val.ival)); }
1873
0de566d7
DM
1874 break;
1875
996b0cb8 1876 case 244:
4df85778 1877#line 1268 "perly.y" /* yacc.c:1648 */
869b8c11
Z
1878 { (yyval.opval) = my_attrs((ps[-1].val.opval),(ps[0].val.opval)); }
1879
1880 break;
1881
996b0cb8 1882 case 245:
4df85778 1883#line 1270 "perly.y" /* yacc.c:1648 */
869b8c11 1884 { (yyval.opval) = localize((ps[0].val.opval),1); }
a9f5ab8d 1885
ea25a9b2
Z
1886 break;
1887
996b0cb8 1888 case 246:
4df85778 1889#line 1272 "perly.y" /* yacc.c:1648 */
869b8c11 1890 { (yyval.opval) = newUNOP(OP_REFGEN, 0, my_attrs((ps[-1].val.opval),(ps[0].val.opval))); }
a9f5ab8d 1891
d63c20f2
DM
1892 break;
1893
996b0cb8 1894 case 247:
4df85778 1895#line 1277 "perly.y" /* yacc.c:1648 */
869b8c11 1896 { (yyval.opval) = sawparens((ps[-1].val.opval)); }
a9f5ab8d 1897
7c70caa5
FC
1898 break;
1899
996b0cb8 1900 case 248:
4df85778 1901#line 1279 "perly.y" /* yacc.c:1648 */
869b8c11 1902 { (yyval.opval) = sawparens(newNULLLIST()); }
a9f5ab8d 1903
08b3e84f
TC
1904 break;
1905
996b0cb8 1906 case 249:
4df85778 1907#line 1282 "perly.y" /* yacc.c:1648 */
869b8c11 1908 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 1909
764212cf
FC
1910 break;
1911
996b0cb8 1912 case 250:
4df85778 1913#line 1284 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
1914 { (yyval.opval) = (ps[0].val.opval); }
1915
4210d3f1
FC
1916 break;
1917
996b0cb8 1918 case 251:
4df85778 1919#line 1286 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
1920 { (yyval.opval) = (ps[0].val.opval); }
1921
5cae3edb
RZ
1922 break;
1923
996b0cb8 1924 case 252:
4df85778 1925#line 1291 "perly.y" /* yacc.c:1648 */
869b8c11 1926 { (yyval.opval) = NULL; }
a9f5ab8d 1927
6dd3e0f2
RZ
1928 break;
1929
996b0cb8 1930 case 253:
4df85778 1931#line 1293 "perly.y" /* yacc.c:1648 */
869b8c11 1932 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 1933
cc624add
FC
1934 break;
1935
996b0cb8 1936 case 254:
4df85778 1937#line 1297 "perly.y" /* yacc.c:1648 */
869b8c11 1938 { (yyval.opval) = NULL; }
a9f5ab8d 1939
0de566d7
DM
1940 break;
1941
996b0cb8 1942 case 255:
4df85778 1943#line 1299 "perly.y" /* yacc.c:1648 */
869b8c11 1944 { (yyval.opval) = (ps[0].val.opval); }
a9f5ab8d 1945
9b6b7be8
FC
1946 break;
1947
996b0cb8 1948 case 256:
4df85778 1949#line 1303 "perly.y" /* yacc.c:1648 */
869b8c11 1950 { (yyval.opval) = NULL; }
a9f5ab8d 1951
9b6b7be8
FC
1952 break;
1953
996b0cb8 1954 case 257:
4df85778 1955#line 1305 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
1956 { (yyval.opval) = (ps[0].val.opval); }
1957
e118fea3
FC
1958 break;
1959
996b0cb8 1960 case 258:
4df85778 1961#line 1311 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
1962 { parser->in_my = 0; (yyval.opval) = my((ps[0].val.opval)); }
1963
d39c26a6
FC
1964 break;
1965
996b0cb8 1966 case 266:
4df85778 1967#line 1328 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
1968 { (yyval.opval) = newCVREF((ps[-1].val.ival),(ps[0].val.opval)); }
1969
d39c26a6
FC
1970 break;
1971
996b0cb8 1972 case 267:
4df85778 1973#line 1332 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
1974 { (yyval.opval) = newSVREF((ps[0].val.opval)); }
1975
d39c26a6
FC
1976 break;
1977
996b0cb8 1978 case 268:
4df85778 1979#line 1336 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
1980 { (yyval.opval) = newAVREF((ps[0].val.opval));
1981 if ((yyval.opval)) (yyval.opval)->op_private |= (ps[-1].val.ival);
1982 }
1983
0de566d7
DM
1984 break;
1985
996b0cb8 1986 case 269:
4df85778 1987#line 1342 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
1988 { (yyval.opval) = newHVREF((ps[0].val.opval));
1989 if ((yyval.opval)) (yyval.opval)->op_private |= (ps[-1].val.ival);
1990 }
1991
500bedb6
DM
1992 break;
1993
996b0cb8 1994 case 270:
4df85778 1995#line 1348 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
1996 { (yyval.opval) = newAVREF((ps[0].val.opval)); }
1997
a72a1c8b
RGS
1998 break;
1999
996b0cb8 2000 case 271:
4df85778 2001#line 1350 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
2002 { (yyval.opval) = newAVREF((ps[-3].val.opval)); }
2003
ff25e5db
FC
2004 break;
2005
996b0cb8 2006 case 272:
4df85778 2007#line 1354 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
2008 { (yyval.opval) = newGVREF(0,(ps[0].val.opval)); }
2009
503de470
DM
2010 break;
2011
996b0cb8 2012 case 274:
4df85778 2013#line 1359 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
2014 { (yyval.opval) = newAVREF((ps[-2].val.opval)); }
2015
89f35911
FC
2016 break;
2017
996b0cb8 2018 case 276:
4df85778 2019#line 1364 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
2020 { (yyval.opval) = newHVREF((ps[-2].val.opval)); }
2021
76eba8ab
FC
2022 break;
2023
996b0cb8 2024 case 278:
4df85778 2025#line 1369 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
2026 { (yyval.opval) = newGVREF(0,(ps[-2].val.opval)); }
2027
89f35911
FC
2028 break;
2029
996b0cb8 2030 case 279:
4df85778 2031#line 1374 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
2032 { (yyval.opval) = scalar((ps[0].val.opval)); }
2033
3cd0a11a
RGS
2034 break;
2035
996b0cb8 2036 case 280:
4df85778 2037#line 1376 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
2038 { (yyval.opval) = scalar((ps[0].val.opval)); }
2039
f05e27e5
DM
2040 break;
2041
996b0cb8 2042 case 281:
4df85778 2043#line 1378 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
2044 { (yyval.opval) = op_scope((ps[0].val.opval)); }
2045
5cae3edb 2046 break;
fb602e32 2047
996b0cb8 2048 case 282:
4df85778 2049#line 1381 "perly.y" /* yacc.c:1648 */
a9f5ab8d
LM
2050 { (yyval.opval) = (ps[0].val.opval); }
2051
abcf453d 2052 break;
8635e3c2 2053
38c8d7b1 2054
38c8d7b1 2055
20515881 2056 default: break;
0de566d7 2057
e8fb9efb 2058
c24c946d 2059/* Generated from:
4df85778 2060 * c522864236e07231c0a218cecf8cdcd82b74ce082b72f10199de4deeff580100 perly.y
86b50d93 2061 * 0947213b55d0ed11693554bea04987e886cf285f5c14cf9075fa1e7acc3f4061 regen_perly.pl
c24c946d 2062 * ex: set ro: */