Tiny Compiler/Interpreter Installation Under Windows using Cygwin (contributed by Jeremy Tartaglia) Installation requirements: 1) A Win32 Operating System (Windows 95/98/NT/ME/2000/XP are all currently supported by Cygwin). 2) Cygwin with GNU C, Make, Flex, and Bison packages installed. (See Cygwin Installation Procedures. Each is underneath the dev node.) 3) A text editor. Cygwin Installation Procedures: 1) Download the setup.exe program from Cygwin's homepage (currently at http://www.cygwin.com). 2) Execute the program, and select directories for installation, packages, temporary files, and other such mundane details. (The Cygwin directory you chose will be referred to as C:\Cygwin for the remainder of this installation procedure.) 3) When you get to the package installation step, you should see a list of names with circular arrows next to them. They should all be set to default. You need to find the Development package (sometimes labeled Dev, sometimes Devel depending on the setup program), and either select the whole development package for installation (by click the arrow until it reads "Install") or select only the necessary packages gcc, flex, and bison. 4) Finish the install. Depending on the packages you chose to install, this could take a while. Tiny Compiler/Interpreter Installation: 1) Download the Tiny Compiler/Interpreter. 2) If necessary, download an extraction program capable of extracting tar.gz (Tape Archive and GZiped) files. A fairly complete, free extractor exists at http://www.7-zip.org. 3) Extract the contents of the file into C:\Cygwin\usr. This must be done since, in Cygwin, it is not possible to easily access anything outside the Cygwin directory. 4) Go into C:\Cygwin\usr\tws\pgen, and open Makefile in a text editor. 5) Count down to line 28, and you will see "yacc -dv Parser.y". Change this to read "bison -dv Parser.y" instead. 6) Immediately after the "bison -dv Parser.y" line, insert these lines as part of the same rule: "cp Parser.tab.c y.tab.c" "cp Parser.tab.h y.tab.h" 7) Count down to line 34, and you will see "lex Tokenizer.l". Change this to read "flex Tokenizer.l" instead. 8) Save the file, and run Cygwin. 9) Type the following: cd /usr/tws ; make all After that, the Tiny Compiler/Interpreter should be working correctly.