AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

source code conversion

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Software Tools
View previous topic :: View next topic  
Author Message
Martin Baker
Guest





PostPosted: Wed Feb 11, 2004 10:44 am    Post subject: source code conversion Reply with quote



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.
Back to top
Ira Baxter
Guest





PostPosted: Sun Feb 15, 2004 8:47 pm    Post subject: Re: source code conversion Reply with quote




"Martin Baker" <bakerm (AT) btinternet (DOT) com> wrote

Quote:
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)..


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




----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---

Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Software Tools All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.