1

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

Balaji.N.S
  • 745
  • 3
  • 13
  • 28

2 Answers2

2

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

Community
  • 1
  • 1
Ira Baxter
  • 93,541
  • 22
  • 172
  • 341
0

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.

Christoffer
  • 12,712
  • 7
  • 37
  • 53