| CODENOTIFIER | HelpYou are not signed inSign in |
Project: Jython
Revision: 5261
Author: fwierzbicki
Date: 27 Aug 2008 16:51:19
Changes:Diff:| ... | ...@@ -1357,21 +1357,10 @@ | |
| 1357 | 1357 | |
| 1358 | 1358 | //testlist: test (',' test)* [','] |
| 1359 | 1359 | testlist[expr_contextType ctype] |
| 1360 | @init { | |
| 1361 | exprType etype = null; | |
| 1362 | } | |
| 1363 | @after { | |
| 1364 | $testlist.tree = etype; | |
| 1365 | } | |
| 1366 | 1360 | : (test[null] COMMA) |
| 1367 | 1361 | => t+=test[ctype] (options {k=2;}: COMMA t+=test[ctype])* (COMMA)? |
| 1368 | { | |
| 1369 | etype = new Tuple($testlist.start, actions.makeExprs($t), ctype); | |
| 1370 | } | |
| 1362 | -> ^(COMMA<Tuple>[$testlist.start, actions.makeExprs($t), ctype]) | |
| 1371 | 1363 | | test[ctype] |
| 1372 | { | |
| 1373 | etype = (exprType)$test.tree; | |
| 1374 | } | |
| 1375 | 1364 | ; |
| 1376 | 1365 | |
| 1377 | 1366 | //dictmaker: test ':' test (',' test ':' test)* [','] |