KOI: Lab Exercises (Old Windows Version)

Det här är en gammal version av labbarna, fråm en tidigare upplaga av kursen när de gick på Windows. En del av labbarna är samma som i den nya kursen, men inte alla!

The exercise numbers do not necessarily correspond to the order numbers of the scheduled lab times. The exercises may take very different amounts of time to finish. Do the exercises in your own pace.

The labs will be done using our new Linux systems, but the labs have not been designed for any particular compiler or system. They should work equally well with Borland C++, with Microsoft Visual C++, or with the Gnu compilers on a Linux system. However, there are some system dependencies, for example in which arguments to give to certain programs. The system-specific Linux instructions are available here, but I've also left these older Windows-specific instructions, that assume that you are using Borland C++ under Windows.

  1. Exercise 1: Getting started with Borland C++, etc.
  2. Exercise 2: A hand-coded parser.
  3. Exercise 3: Creating a parser with Yacc. (Actually Bison.)
  4. Exercise 4: Lexical analysis. Making a scanner by hand and with Lex. (Actually Flex.)
  5. Exercise 5: Building abstract syntax trees.
  6. Exercise 6: An interpreter that executes the syntax trees.
  7. Exercise 7: Stack machine code. Optimization.
Resources:

Windows-specific resources:


Thomas Padron-McCarthy (Thomas.Padron-McCarthy@tech.oru.se) August 10, 2006