From: Sells, F. <fr...@ad...> - 2001-12-11 12:54:10
|
A long time ago I modified the trace function to display args called at each function/method entrance. It would be possible to "remember" the type of each arg and even catch when they are passed as different types in different invocations. I don't know if I still have that code, and am in "deadline mode" and cannot go hunting on several old machines in the closet just now. but it wasn't that hard to do. Thus you could run the program and use the trace to remember the arg types as well as local scope; everything created in __init__ would be an instance variable. This would do 80% of conversion for 20% of the work. -----Original Message----- From: rob...@ya... [mailto:rob...@ya...] Sent: Friday, December 07, 2001 7:35 AM To: Jyt...@li... Subject: Re: [Jython-users] Python source to Java source conversion hi ed, id be very interessted in that. since i use jython as a very cool proptotyping tool, a great percentage of my code must be converted to java. ciao robertj > I've started using Jython extensively in place of Java (heh, heh, a gross > understatement), but will port various classes to Java for performance > reasons. I know there is jythonc but no doubt the same baggage required for > the dynamic typing etc is included. > > I am curious if there are any tools that can aid in converting Python source > to Java source. Just something to get 90% of the way there. I started > writing a Python parser in ANTRL, but discovered that python has its own > compiler tools module. Anyone have any experience with this? Anyone think > this kind of tool is useful? > > -Ed > ------------------------------------------------------------ Robert Kuzelj Gaissacherstrasse 7 email: rob...@ya... 81371 Muenchen tel: 0177/5302230 the trinity of desirables of (software) architecture: Firmitas, Utilitas, Venustas (marcus vitruvius 20 BC) strength, utility, beauty _______________________________________________ Jython-users mailing list Jyt...@li... https://lists.sourceforge.net/lists/listinfo/jython-users |