开发者

Open Source Tool which Convert Source Code from one Language to other [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 10 year开发者_运维问答s ago.

Is there any tool which converts the source code in one language to other...


You can look at TXL, a program transformation tool that has been used to implement language-to-language translators.

EDIT: (after OP clarified his question slightly in a comment) You aren't very clear about the translations direction: Java-to-C# or C#-to-Java. However, this SO thread seems to address both to some degree: Is there an effective tool to convert C# code to Java code? (the link is really to convert-c#-to-java; SO apparantly can't put a # in a link).


The only tool I know of that has anything like this is LLVM which provides a C backend, i.e. it should be able generate C code from any language for which there is an LLVM front-end.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜