From: <fwi...@us...> - 2008-10-20 21:37:12
|
Revision: 5486 http://jython.svn.sourceforge.net/jython/?rev=5486&view=rev Author: fwierzbicki Date: 2008-10-20 21:37:06 +0000 (Mon, 20 Oct 2008) Log Message: ----------- PythonPartial.g should allow decorators without classes or functions so that @foo is a valid partial sentence. Modified Paths: -------------- trunk/jython/grammar/PythonPartial.g Modified: trunk/jython/grammar/PythonPartial.g =================================================================== --- trunk/jython/grammar/PythonPartial.g 2008-10-20 21:18:08 UTC (rev 5485) +++ trunk/jython/grammar/PythonPartial.g 2008-10-20 21:37:06 UTC (rev 5486) @@ -455,7 +455,8 @@ dictmaker : test COLON test (options {k=2;}:COMMA test COLON test)* (COMMA)? ; -classdef: decorators? CLASS NAME (LPAREN testlist? RPAREN)? COLON suite +classdef: decorators (CLASS NAME (LPAREN testlist? RPAREN)? COLON suite)? + | CLASS NAME (LPAREN testlist? RPAREN)? COLON suite ; arglist : argument (COMMA argument)* This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |