From: Finn B. <bc...@us...> - 2002-06-11 12:02:38
|
Update of /cvsroot/jython/jython/org/python/compiler In directory usw-pr-cvs1:/tmp/cvs-serv8055/compiler Modified Files: CodeCompiler.java Future.java Log Message: Allow multiple statements in a Interactive node (aka single_input). Index: CodeCompiler.java =================================================================== RCS file: /cvsroot/jython/jython/org/python/compiler/CodeCompiler.java,v retrieving revision 2.27 retrieving revision 2.28 diff -C2 -d -r2.27 -r2.28 *** CodeCompiler.java 30 May 2002 19:20:28 -0000 2.27 --- CodeCompiler.java 11 Jun 2002 12:02:35 -0000 2.28 *************** *** 204,208 **** public Object visitInteractive(Interactive node) throws Exception { ! return visit(node.body); } --- 204,209 ---- public Object visitInteractive(Interactive node) throws Exception { ! traverse(node); ! return null; } Index: Future.java =================================================================== RCS file: /cvsroot/jython/jython/org/python/compiler/Future.java,v retrieving revision 2.7 retrieving revision 2.8 diff -C2 -d -r2.7 -r2.8 *** Future.java 30 May 2002 16:13:29 -0000 2.7 --- Future.java 11 Jun 2002 12:02:35 -0000 2.8 *************** *** 53,57 **** } } else if (node instanceof Interactive) { ! suite = new stmtType[] { ((Interactive) node).body }; } else { return; --- 53,57 ---- } } else if (node instanceof Interactive) { ! suite = ((Interactive) node).body; } else { return; |