From: <fwi...@us...> - 2008-08-06 02:27:52
|
Revision: 5089 http://jython.svn.sourceforge.net/jython/?rev=5089&view=rev Author: fwierzbicki Date: 2008-08-06 02:27:45 +0000 (Wed, 06 Aug 2008) Log Message: ----------- Extra comment as a reminder about keywords. Modified Paths: -------------- branches/asm/grammar/Python.g Modified: branches/asm/grammar/Python.g =================================================================== --- branches/asm/grammar/Python.g 2008-08-06 02:19:54 UTC (rev 5088) +++ branches/asm/grammar/Python.g 2008-08-06 02:27:45 UTC (rev 5089) @@ -1118,7 +1118,9 @@ //These are all Python keywords that are not Java keywords //This means that Jython needs to support these as NAMEs //unlike CPython. For now I have only done this for 'as' -//and 'exec'. +//and 'exec'. A chat with Leo Soto on #jython has made me +//realize I may need to do this for *all* keywords, since +//a Java foo.getIf() can be called from Jython as foo.if //keyAND : {input.LT(1).getText().equals("and")}? NAME ; keyAS : {input.LT(1).getText().equals("as")}? NAME ; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |