Assignment 3 Test Suite

Implementing Programming Languages
Original by Bjorn Bringert (2007)

Introduction

Before you submit the Assignment, your solution must pass the testsuite. This document describes how to obtain and use this testsuite.

Preparations

You will only need to do this this part once.

  1. Download lab3-testsuite.tar.gz.

  2. Unpack the downloaded file:
      $ tar -zxf lab3-testsuite.tar.gz
    

  3. Enter the lab3-testsuite directory:
      $ cd lab3-testsuite
    

  4. Compile the test program:
      $ ghc -threaded --make -o progs-test-lab3 progs-test-lab3.hs
    

Running the testsuite

This is what you need to do to test your grammar.

  1. Enter the lab3-testsuite directory (if you are not there already):
      $ cd lab3-testsuite
    

  2. Run progs-test-lab3 with the path to the directory where your solution is located:

      $ ./progs-test-lab3 path/to/your/solution/