Tool for developing extensions for PHP, Python, Perl, Tcl, Ruby...
By Mathieu CARBONNEAUX
SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages.
SWIG is usable with different scripting languages such as Perl, PHP, Python, Ruby and Tcl.
The list of supported languages also includes languages such as C#, Common Lisp (CLISP, Allegro CL, CFFI, UFFI), Java, Lua, Modula-3, OCaml and R.
In addition, several interpreted and compiled versions of Scheme implementations (Guile, MzScheme, Chicken) are supported.
SWIG is most commonly used to create high-level interpreted or compiled programming environments, user interfaces, or as a prototyping and testing tool for C/C++ software.
SWIG can also export its parse tree as XML and Lisp s-expressions.