How to compile and run servicesSetting up your environmentThere are four sample WIG compilers available, pwig, wig4, wig10 and wig18. The wig4 and wig18 compilers were written in C by groups at the University of Aarhus in fall 1998. The pwig compiler was written at McGill, in C in 2001. The wig10 compiler was written at McGill, in Java using SableCC during fall 1999, and it should also be very stable.To use four compilers you should:
Compiling your WIG service
Running your WIG service.You may now run your service by using one of the following URLs:http://www.cs.mcgill.ca/~YourName/cgi-bin/foo.cgi?SessionName http://www.cs.mcgill.ca/~YourName/cgi-bin/foo4.cgi?SessionName http://www.cs.mcgill.ca/~YourName/cgi-bin/foo10.cgi?SessionName http://www.cs.mcgill.ca/~YourName/cgi-bin/foo18.cgi?SessionName where YourName should be your user name,
SessionName should be name of one of the sessions defined in
foo.wig .
For example, consider the following service
that could be in service { const html ... const html ... ... session Init() { ... } session Doit() { ... } session Report() { ... } }In this case, if you compiled with wig10, there are three different sessions that could be run using:
|