examples

The following services have been compiled using the McGill Fall 1999, Group 10 compiler. Your compiler should be able to handle all of these features. This compiler is written in Java using SableCC and the associated runwig file is at ~hendren/WIG/10/runwig10.c .

You may also try using wig4 and wig18 to compile these or other examples.

You can find the .wig source and the .c generated files in ~hendren/WIG/10/Examples .

You can run this compiler on any system with Java 1.2 or later using the script in ~hendren/WIG/Bin/wig10 . Note that you must have set the environment variable WIGDIR . For example, if using mimi or willy , use:

setenv WIGDIR ~hendren/WIG

The following services have been compiled using the DAIMI(Fall 1998) Group 18 WIG compiler. Your compiler should be able to handle all of these features. This compiler produces stack-code where the stack operations are implemented in ~hendren/WIG/18/runwig.c and ~hendren/WIG/18/runwig.h .

You can find the .wig source and the .c generated files in ~hendren/WIG/18/Examples .

The following services have been compiled using the DAIMI(Fall 1998) Group 4 WIG compiler. It does not handle tuples. However, it seems fairly stable otherwise. It produces C code that mirrors the expressions in the source WIG language. The runtime system for this compiler is in ~hendren/WIG/04/runwig.c and ~hendren/WIG/04/runwig.h .

You can find the .wig source and the .c generated files in ~hendren/WIG/04/Examples .

The following service has tags with embedded holes. If you allow this in your compiler, then try it out.

I have recently installed another WIG compiler in ~hendren/WIG/Bin/PerfectWig. Check out their examples, an in particular Extreme torture. Here is extremetorture in action.