University of New
  England
School of Science and Technology


Marking Scheme for Compiler Construction

Scanner

  1. Programming Style — out of 10
  2. Program correctness — out of 30
  3. Testing — out of 10
  4. Code Improvements:
    • Hash Table Implementation — out of 10
    • Error Handling (lexical error msg) — out of 5
    • Program Listing with Line Numbers — out of 5
    • Input Buffer (5/10 single/double) — out of 10
    • Token Stream (token mnemonic) — out of 5
    • Eliminating Global Variables — out of 10
  5. Documentation — out of 5
  6. Late Penalty — -5% per day

Parser

  1. Programming Style — out of 10
  2. Program correctness — out of 30
    • -5 for any syntax not covered
  3. Testing:
    • all correct syntax — out of 10
    • all syntax errors — out of 10
  4. LL(1) Grammar:
    • First Sets — out of 10
    • Follow Sets — out of 10
  5. Code Improvements:
  6. Error Handling (all parse functions generate local error messages) — out of 10
  7. Informative error messages — out of 10
  8. Late Penalty — -5% per day

Parser with Error Recovery

  1. Programming Style — out of 10
  2. Program correctness — out of 80
    • detect all compilation errors
    • handle ``spurious'' errors
    • deal with lexical errors
    • deal with syntax errors
      • display marker on a line
      • line number when refer to an earlier line
      • informative error handling
  3. Testing:
    • all syntax errors — out of 10
  4. Late Penalty — -5% per day

Translator

  1. Programming Style — out of 10
  2. Program correctness — out of 40
    • -10 for any translation not covered
  3. Testing:
    • all correct statements — out of 10
    • all semantic errors — out of 10
  4. Micro Translation Scheme — out of 10
  5. Code Improvements:
    • handling semantic errors — out of 10
    • informative error messages — out of 10
  6. Late Penalty — -5% per day

E-mail comp319@turing.une.edu.au

index.cgi size 138. Last modified Tue Feb 27 16:25:35 2007
This page has been visited 233 times since Wed Jul 9 18:10:33 2008

unehomepage.gif departmenthome.gif