diff options
author | chromatic <chromatic@wgz.org> | 2008-05-10 05:52:11 -0700 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2008-05-18 21:08:01 +0000 |
commit | be25f60935927114e0ef411fb4fbc04fea5ce8fa (patch) | |
tree | 3ec48b054b9f6867ea11fb40e75da767d5bbaa25 /perly.act | |
parent | e385c3bfc8853b925197cc2ddff78a11bae595e5 (diff) | |
download | perl-be25f60935927114e0ef411fb4fbc04fea5ce8fa.tar.gz |
Add ..., !!!, and ??? operators
Message-Id: <200805101252.11961.chromatic@wgz.org>
p4raw-id: //depot/perl@33858
Diffstat (limited to 'perly.act')
-rw-r--r-- | perly.act | 96 |
1 files changed, 52 insertions, 44 deletions
@@ -1449,7 +1449,15 @@ case 2: break; case 187: -#line 1234 "perly.y" +#line 1231 "perly.y" + { + (yyval.opval) = newLISTOP(OP_DIE, 0, newOP(OP_PUSHMARK, 0), + newSVOP(OP_CONST, 0, newSVpvs("Unimplemented"))); + ;} + break; + + case 188: +#line 1239 "perly.y" { (yyval.opval) = my_attrs((ps[(2) - (3)].val.opval),(ps[(3) - (3)].val.opval)); DO_MAD( token_getmad((ps[(1) - (3)].val.i_tkval),(yyval.opval),'d'); @@ -1459,66 +1467,66 @@ case 2: ;} break; - case 188: -#line 1242 "perly.y" + case 189: +#line 1247 "perly.y" { (yyval.opval) = localize((ps[(2) - (2)].val.opval),IVAL((ps[(1) - (2)].val.i_tkval))); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'d'); ;} break; - case 189: -#line 1249 "perly.y" + case 190: +#line 1254 "perly.y" { (yyval.opval) = sawparens((ps[(2) - (3)].val.opval)); TOKEN_GETMAD((ps[(1) - (3)].val.i_tkval),(yyval.opval),'('); TOKEN_GETMAD((ps[(3) - (3)].val.i_tkval),(yyval.opval),')'); ;} break; - case 190: -#line 1254 "perly.y" + case 191: +#line 1259 "perly.y" { (yyval.opval) = sawparens(newNULLLIST()); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'('); TOKEN_GETMAD((ps[(2) - (2)].val.i_tkval),(yyval.opval),')'); ;} break; - case 191: -#line 1259 "perly.y" - { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} - break; - case 192: -#line 1261 "perly.y" +#line 1264 "perly.y" { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} break; case 193: -#line 1263 "perly.y" +#line 1266 "perly.y" { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} break; case 194: #line 1268 "perly.y" - { (yyval.opval) = (OP*)NULL; ;} + { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} break; case 195: -#line 1270 "perly.y" - { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} +#line 1273 "perly.y" + { (yyval.opval) = (OP*)NULL; ;} break; case 196: -#line 1274 "perly.y" - { (yyval.opval) = (OP*)NULL; ;} +#line 1275 "perly.y" + { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} break; case 197: -#line 1276 "perly.y" - { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} +#line 1279 "perly.y" + { (yyval.opval) = (OP*)NULL; ;} break; case 198: -#line 1278 "perly.y" +#line 1281 "perly.y" + { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} + break; + + case 199: +#line 1283 "perly.y" { #ifdef MAD OP* op = newNULLLIST(); @@ -1531,70 +1539,70 @@ case 2: ;} break; - case 199: -#line 1293 "perly.y" + case 200: +#line 1298 "perly.y" { PL_parser->in_my = 0; (yyval.opval) = my((ps[(1) - (1)].val.opval)); ;} break; - case 200: -#line 1297 "perly.y" + case 201: +#line 1302 "perly.y" { (yyval.opval) = newCVREF(IVAL((ps[(1) - (2)].val.i_tkval)),(ps[(2) - (2)].val.opval)); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'&'); ;} break; - case 201: -#line 1303 "perly.y" + case 202: +#line 1308 "perly.y" { (yyval.opval) = newSVREF((ps[(2) - (2)].val.opval)); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'$'); ;} break; - case 202: -#line 1309 "perly.y" + case 203: +#line 1314 "perly.y" { (yyval.opval) = newAVREF((ps[(2) - (2)].val.opval)); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'@'); ;} break; - case 203: -#line 1315 "perly.y" + case 204: +#line 1320 "perly.y" { (yyval.opval) = newHVREF((ps[(2) - (2)].val.opval)); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'%'); ;} break; - case 204: -#line 1321 "perly.y" + case 205: +#line 1326 "perly.y" { (yyval.opval) = newAVREF((ps[(2) - (2)].val.opval)); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'l'); ;} break; - case 205: -#line 1327 "perly.y" + case 206: +#line 1332 "perly.y" { (yyval.opval) = newGVREF(0,(ps[(2) - (2)].val.opval)); TOKEN_GETMAD((ps[(1) - (2)].val.i_tkval),(yyval.opval),'*'); ;} break; - case 206: -#line 1334 "perly.y" + case 207: +#line 1339 "perly.y" { (yyval.opval) = scalar((ps[(1) - (1)].val.opval)); ;} break; - case 207: -#line 1336 "perly.y" + case 208: +#line 1341 "perly.y" { (yyval.opval) = scalar((ps[(1) - (1)].val.opval)); ;} break; - case 208: -#line 1338 "perly.y" + case 209: +#line 1343 "perly.y" { (yyval.opval) = scope((ps[(1) - (1)].val.opval)); ;} break; - case 209: -#line 1341 "perly.y" + case 210: +#line 1346 "perly.y" { (yyval.opval) = (ps[(1) - (1)].val.opval); ;} break; |