SWIG
SWIG (Simplified Wrapper and Interface Generator) is an open source software tool used to connect computer programs or libraries written in C or C++ with scripting languages such as Lua, Perl, PHP, Python, R, Ruby, Tcl, and other languages like C#, Java, Go, Modula-3, OCaml, Octave, and Scheme. Output can also be in the form of XML or Lisp S-expressions.
Read more about Swig.