SWIG is a software development tool that reads C/C++ header files and generates wrapper code to make C/C++ code accessible from other languages including Perl, Python, Tcl, Ruby, PHP, Java, Ocaml, Lua, C#, Modula-3 and various Scheme and Lisp variants.
An interface for allowing Perl to use C/C++ libraries and code.
SWIG (Simplified Wrapper and Interface Generator) is a free computer software tool used to connect programs or libraries written in C/C++ with scripting languages such as Tcl, Perl, Python, Ruby, PHP and other languages like Java, C#, Scheme and Ocaml. The aim is to achieve this connection with minimal effort: a small number of directives are added to the program's header files, and then the SWIG tool creates source code which provides the glue between C/C++ and the target language.