examples

These examples currently link to Laurie's old 520 homepage.

The following services have been compiled using wig10, 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 runtime library is $WIGDIR/lib/runwig10.c.

Most of the wig source and the .c generated files should be contained in the wig directory.

You can run this compiler on any system with Java 1.2 or later using the script in $WIGDIR/bin/wig10. Note that you should set up your environment for running WIG programs first.

The following services have been compiled using the DAIMI Fall 1998 Group 18 compiler. Your compiler should be able to handle all of these features. This compiler produces stack-code where the stack operations are implemented in $WIGDIR/lib/runwig18.c and $WIGDIR/lib/runwig18.h.

The following services have been compiled using the DAIMI Fall 1998 Group 4 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 $WIGDIR/lib/runwig4.c and $WIGDIR/lib/runwig4.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.

There is also a "Perfect WIG Compiler". Check out their examples, in particular Extreme torture.

Here is extremetorture in action:

Maintained by Eric Bodden. [HOME]