From: <fwi...@us...> - 2008-08-24 09:38:26
|
Revision: 5242 http://jython.svn.sourceforge.net/jython/?rev=5242&view=rev Author: fwierzbicki Date: 2008-08-24 09:38:22 +0000 (Sun, 24 Aug 2008) Log Message: ----------- check for PythonTree in makeStmts. Modified Paths: -------------- branches/nowalker/src/org/python/antlr/GrammarActions.java Modified: branches/nowalker/src/org/python/antlr/GrammarActions.java =================================================================== --- branches/nowalker/src/org/python/antlr/GrammarActions.java 2008-08-24 02:04:43 UTC (rev 5241) +++ branches/nowalker/src/org/python/antlr/GrammarActions.java 2008-08-24 09:38:22 UTC (rev 5242) @@ -192,6 +192,11 @@ Object o = stmts.get(i); if (o instanceof stmtType) { result.add((stmtType)o); + } else if (o instanceof PythonTree) { + PythonTree t = (PythonTree)o; + for (int j=0; j<t.getChildCount(); j++) { + result.add((stmtType)t.getChild(i)); + } } else { result.add((stmtType)((PythonParser.stmt_return)o).tree); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |