The WIG Compiler