sentence: swig ( simplified wrapper and interface generator ) is an open source software tool used to connect computer program or libraries written in c or c++ with scripting language such as lua , perl , php , python , r , ruby , tcl , and other languages like c# , java , javascript , go , modula-3 , ocaml , octave , and scheme .