From: <fwi...@us...> - 2008-08-27 20:35:56
|
Revision: 5260 http://jython.svn.sourceforge.net/jython/?rev=5260&view=rev Author: fwierzbicki Date: 2008-08-27 20:35:54 +0000 (Wed, 27 Aug 2008) Log Message: ----------- Removed XXX comments that no longer apply (special testlists don't seem to be needed). Removed unused c1 and c2 alias. Modified Paths: -------------- branches/nowalker/grammar/Python.g Modified: branches/nowalker/grammar/Python.g =================================================================== --- branches/nowalker/grammar/Python.g 2008-08-27 20:09:39 UTC (rev 5259) +++ branches/nowalker/grammar/Python.g 2008-08-27 20:35:54 UTC (rev 5260) @@ -1346,8 +1346,8 @@ } ; -//XXX: I'm hoping I can get rid of this and merge it back with exprlist -- but for now I need an exprlist that does not produce tuples -// at least for del_stmt +//not in CPython's Grammar file +//Needed as an exprlist that does not produce tuples for del_stmt. del_list returns [List etypes] : e+=expr[expr_contextType.Del] (options {k=2;}: COMMA e+=expr[expr_contextType.Del])* (COMMA)? { @@ -1364,7 +1364,7 @@ $testlist.tree = etype; } : (test[null] COMMA) - => t+=test[ctype] (options {k=2;}: c1=COMMA t+=test[ctype])* (c2=COMMA)? + => t+=test[ctype] (options {k=2;}: COMMA t+=test[ctype])* (COMMA)? { etype = new Tuple($testlist.start, actions.makeExprs($t), ctype); } @@ -1374,9 +1374,6 @@ } ; -//XXX: -//testlist_safe: test [(',' test)+ [',']] - //dictmaker: test ':' test (',' test ':' test)* [','] dictmaker returns [List keys, List values] : k+=test[expr_contextType.Load] COLON v+=test[expr_contextType.Load] @@ -1529,9 +1526,6 @@ -> ^(YIELD<Yield>[$YIELD, (exprType)$testlist.tree]) ; -//XXX: -//testlist1: test (',' test)* - AS : 'as' ; ASSERT : 'assert' ; BREAK : 'break' ; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |