CST 8152 Compilers - Assignments #1&2Evaluation Sheet I
Adheres to assignment submission requirement?
- On time?
- All pages fastened firmly or in envelope?
- Identified with name, student ID number, Lab section number, and course number?
- Submitted source listing, including .h files?
- Programming follows Algonquin standard?
- Submitted listings of input test file(s) and generated output for each test?
General coding style?
- wrote it once
- only -1, 0, and 1 as constants, everything else using #define
- clearly marked Boolean, pointer, integer, and character zeroes: boolean != NULL != 0 != \0
- checked and validated input (including detecting excess input)
- didnt modify function arguments
- fopen/fclose at same level
- checked all possible function return codes
- read input in only one place
- avoided global variables
- printed really good error messages that explained the exact error
- got the code right first, then optimized
Testing strategy?
- an empty file
- no strings in file
- huge string spanning many lines
- odd number of " in file (unterminated string)
- empty strings still counted: ""
- adjacent strings "abc""def"
- one or more escaped \" in string, adjacent \"
- one or more escaped \n in string, adjacent \n