Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / February 2004

Tip: Looking for answers? Try searching our database.

source code conversion

Thread view: 
Martin Baker - 11 Feb 2004 10:44 GMT
Since I have Java, C# and C++ versions of my open source program (
http://www.euclideanspace.com/ ) I would like to have some automation
to help with the manual conversion between these types of source code.
I would also like some automation for generating UML diagrams.

I had this idea that this could be done by storing programs in a
common format, call it say: "XML structured Java", once its in this
form we could then use XSLT and similar tools to convert between the
different source codes. I had a search on Sourceforge to see it I
could find any existing code and it looks like someone else has had
the same idea: (http://sourceforge.net/projects/xmlcode) but nothing
seems to have been done on this project for the past 4 years. Do you
think a very quick and dirty version of this could be implemented
quickly?

I had another search on Sourceforge for programs which might provide
the functionality required and I came up with the following diagram:
http://www.euclideanspace.com/software/language/convert/index.htm

Is this practical?

Are there any better ways to do this? Should I use Eclipse instead?
Are there any better GPL open source programs?

How much 'glue' programming would be required to make all this work
together, not perfectly, but enough to make it useful for source code
conversion.
Ira Baxter - 15 Feb 2004 20:47 GMT
> Since I have Java, C# and C++ versions of my open source program (
> http://www.euclideanspace.com/ ) I would like to have some automation
> to help with the manual conversion between these types of source code.
> I would also like some automation for generating UML diagrams.
>
> I had another search on Sourceforge

> Are there any better ways to do this?

You might consider a program transformation tool.
See the DMS Software Reengineering Toolkit.
http://www.semanticdesigns.com/Products/DMS/DMSToolkit.html.

In general, it is pretty hard to translate between these three
languages because they have different semantic foundations.
If you stick to really vanilla code, this might be easy,
otherwise you'll have a difficult time writing the translation
rules, or you'll get partial translation and have
to hand-patch the result (which might be OK for your)..

Signature

Ira D. Baxter, Ph.D., CTO   512-250-1018
Semantic Designs, Inc.      www.semdesigns.com



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.