Home
  Contact
  Short Vita
  Research
  Teaching
  LSDIS Lab
  Links

Programming Project: Part 3 [60 pts.]

Due: April 30, 2010

  1. Convert the syntax-directed definition for Micro-Pascal (the one that you used for the construction of your parser and semantic analyzer for Micro-Pascal) into a translation scheme. The translation scheme should specify correct code patterns for each of the different constructs of Micro-Pascal. The code patterns should be specified in terms of sequences of one or more instructions of the UGAVAC Assembly Language.
  2. Implement the translator of Micro-Pascal programs into UGAVAC Assembly. The UGAVAC interpreter, called ugavac, is installed on odin.cs.uga.edu.

Submit (using submit) the directory containing your translator to the user csx570 (on odin).

IMPORTANT

The directory MUST contain all sources and an executable version of your translator called upc. Your translator must accept exactly one command line argument -- the name of a file with the source program. The source file should have the suffix .p, and the resulting UGAVAC assembly file should have the suffix .asm. For example, a call to your translator, such as


   upc sample1.p

should produce a file called sample1.asm containing the UGAVAC Assembly translation of sample1.p, provided sample1.p contains a correct Micro-Pascal program.

You must also provide a file called README, specifying how to compile and invoke your translator.

Late programs WILL NOT be accepted.