The source code, version, SableCC/JavaStarting September 2000, a version of the JOOS compiler using SableCC/Java is available. This was written as a 308-400 course project by Othman Alaoui. The code is available at ~hendren/SableCC/JJOOS (SableCC, version 2) , or ~hendren/SableCC/JJOOS3 (SableCC, version 3) .
Feel free to learn from it and use some of the ideas in this compiler for your WIG compilers.
You can also read Othman's report to understand some of his design decisions. For those of you using SableCC - version 2, you can read how he uses "hidden productions" to clean up the CST a bit, and to make subsequent passes a bit easier.