COP 5555 Programming Language Principles (Fall 2003 )

Programming Assignment 2.1

Due 14 October 2003 2003

Parsing/Evaluation/Compilation Project Increment 2 Phase 1

Makefile
You are to use this Makefile to make your project. Its use requires the following conventions to be followed:
  1. Your source files are garnet.l, garnet.y, and as many .c files as you like. (Yes, you can put C++ code in a file whose filename extension is .c.)

    All these files must appear in the same directory in which you place the Makefile.

  2. Your directory must contain a file names Sources containing one line such as the following:

    CSOURCES=AST.c foo.c

    This line assigns the Makefile variable CSOURCES a string value which is the sequence of .c file names of all the .c files (other than lex.yy.c and garnet.tab.c that will be used in creating your executable file.

  3. You must not change the Makefile. I will be using this same Makefile to create your projects. If you discover a problem with it, let me know. Otherwise, just use it.

Parsing and AST Construction
More Information on Garnet Expressions
Evaluation of the AST

This document is copyright 2003 by Joseph N. Wilson.