CS212 P2b grading guide Fall 2005 Style: 30 points Commenting: 9 points 3 Point - Comments describing each file 3 Points - Comments describing each method (-2 if some lacking) Note: If you have a method that is common among multiple classes (for example, printSamCode() in the solutions) you only need to comment it once where it is defined originally (for example, in the solutions a comment only needs to go in BaliSyntax for printSamCode()) 3 Points - Comments describing hard to understand sections Correct Java Style: 7 points 3 Points - Correct method/variable names/capitalization 4 Points - Classes distributed among multiple files -2 points if for non-standard capitalization of class names Project Design: 14 points 4 Points - Parsing split among multiple functions, good recursion 3 Points - Each node type has a class that represents it in the AST 3 Points - Easy to extend (functions can be easily reused to add new parts of the grammar) 2 Points - There are not too many classes - i.e. there is not a class for every syntatical element (parentheses, braces, etc...) Other: -3 points if inconsistent commenting styles -3 for very deep parse tree