Points for each assignment
HW 1: 1.2 2 points; 1.4 8 points; 1.5 4 points; 1.6 1 point; total 15 points.
IDEs mentioned in question 1.2: Eclipse, Gel, Netbeans, Visual Studio, XCode
(Apple), Code::Blocks, Turbo C++, Quartus II (for system-on-a-programmable-chip
[SOPC] design), NetLogo, JBuilder, JCreator, Geany.
A comment on exercise 1.4(d). Mini-Triangle does not have a >= operator.
It is, however, possible to derive m >= n as possible: Expression =>
Expression Operator primary-Expression => Expression Operator Operator
primary-Expression => Expression > Operator primaryExpression => Expression >=
primaryExpression =>* m >= n.
This assumes that no space is needed to separate operators.
As as far as I can see, there is no requirement of having spaces between
symbols of Mini-Triangle. (There is a comment on spaces in Triangle on p.398.)
I gave credit to students who wrote that m >= n is not an expression (because I
think they assumed that >= needs to be written with a space between the > and
the =), and to students who wrote that m >= n is an expression, provided that
they gave a good syntax tree, in which > and = are shown to be separate
operators.
HW 2: 2.2 3 points (1 per part),
2.3 4 points (1 for showing the three tombstone diagrams, 1 per part),
2.4 4 points (1 for showing the three tombstone diagrams, 1 per part),
2.5 4 points (1 per part),
2.6 3 points (1 per each of compiler, interpreter, and disassembler),
2.8 2 points (1 per strategy),
2.9 2 points,
total 22 points.
HW 3: Total 25 points .
3.1 10 points, 5 points per part.
One point removed if steps
analogous to those in Example 3.2 are not described, one point removed if steps
analogous to those in Example 3.4 are not described.
3.2 10 points. 4 points for syntactic analysis, 4 points for contextual
analysis, 2 points for code generation. Up to two points removed for the first
two parts, if steps analogous to those in Examples 3.1 and 3.2 are not
described. One point removed for the third part, if steps analogous to those
in Example 3.4 are not described.
3.3, 2 points.
3.5, 3 points.
PR1 (Tokens): Total 6 points, 2 for each of the first 2 parts
PR2 (JLex): Total 8 points.
HW4: Total 25 pts.
4.1. 5 pts.
4.2. 2 pts.
4.3, 1 pt.
4.4, 1 pt.
4.9, 1 pts.
4.10, 15 pts.
PR3 (Implement your solution for exercise 4.10 in Java): total 5 points.
HW5: Total 10 points.
4.13: 6 points
4.16: 2 points.
HW6: Total 15 points.
6.14: 3 points
6.15: 3 points
6.18: 9 points
HW7 Total 15 points
7.1: 3 points
7.2: 1 point per part
7.3: 2 points per part
HW8 Total 10 points
8.5: 8 points
8.6: 2 points