From: <fwi...@us...> - 2008-08-20 14:06:33
|
Revision: 5217 http://jython.svn.sourceforge.net/jython/?rev=5217&view=rev Author: fwierzbicki Date: 2008-08-20 14:06:30 +0000 (Wed, 20 Aug 2008) Log Message: ----------- Fix "del". Modified Paths: -------------- branches/nowalker/grammar/Python.g Modified: branches/nowalker/grammar/Python.g =================================================================== --- branches/nowalker/grammar/Python.g 2008-08-20 12:10:26 UTC (rev 5216) +++ branches/nowalker/grammar/Python.g 2008-08-20 14:06:30 UTC (rev 5217) @@ -547,8 +547,8 @@ //del_stmt: 'del' exprlist -del_stmt : DELETE exprlist2 - -> ^(DELETE<Delete>[$DELETE, actions.makeExprs($exprlist2.etypes)]) +del_stmt : DELETE del_list + -> ^(DELETE<Delete>[$DELETE, actions.makeExprs($del_list.etypes)]) ; //pass_stmt: 'pass' @@ -1115,10 +1115,10 @@ } ; -//XXX: I'm hoping I can get rid of this -- but for now I need an exprlist that does not produce tuples +//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 -exprlist2 returns [List etypes] - : e+=expr[expr_contextType.Load] (options {k=2;}: COMMA e+=expr[expr_contextType.Load])* (COMMA)? +del_list returns [List etypes] + : e+=expr[expr_contextType.Del] (options {k=2;}: COMMA e+=expr[expr_contextType.Del])* (COMMA)? {$etypes = $e;} ; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |