From: <fwi...@us...> - 2008-08-27 20:09:41
|
Revision: 5259 http://jython.svn.sourceforge.net/jython/?rev=5259&view=rev Author: fwierzbicki Date: 2008-08-27 20:09:39 +0000 (Wed, 27 Aug 2008) Log Message: ----------- TODO comment. Modified Paths: -------------- branches/nowalker/grammar/Python.g Modified: branches/nowalker/grammar/Python.g =================================================================== --- branches/nowalker/grammar/Python.g 2008-08-27 19:51:16 UTC (rev 5258) +++ branches/nowalker/grammar/Python.g 2008-08-27 20:09:39 UTC (rev 5259) @@ -1123,6 +1123,7 @@ } : atom (t+=trailer[$atom.start, $atom.tree])* (options {greedy=true;}:d=DOUBLESTAR factor)? { + //XXX: This could be better. $etype = (exprType)$atom.tree; if ($t != null) { for(int i = 0; i < $t.size(); i++) { @@ -1130,7 +1131,6 @@ if ($etype instanceof Context) { ((Context)$etype).setContext(expr_contextType.Load); } - //XXX: good place for an interface to avoid all of this instanceof if (o instanceof Call) { Call c = (Call)o; c.func = $etype; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |