Question

I have nice OCaml code (30000 lines apox). I want to port it to Java. So Is there any free OCaml to Java translator?

I need it as my own project is in Java and i'm also comfortable with java, but in project I've to use the OCaml code, i don't want to reinvent the wheel ... I just want to modify that code(OCaml) and use it..

I've seen the OCaml to Java , but it just make possible to call ocaml code from Java code that is good but i need complete translation.. A source code(OCaml) to source code(Java) compiler..

Was it helpful?

Solution

No, this does not exist. Very few source-to-source compilers exist (I believe some have been tried to port old COBOL codebases to Java). If you want to maintain and modify an OCaml program, your best bet is to learn some OCaml.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top