Things to learn during this stage that you should remember:
- Strict Coding Style
Following a strict coding style is an essential part of collaborative work. Understanding the rationales behind rules is even better. See Coding Style.
- Memory Leak Trackers
Using tools such as Valgrind (see Valgrind, The Ultimate Memory Debugger) to track memory leaks.
- Understanding the use of a GLR Parser
The parser should now use all the possibilities of a GLR parser.
- Error recovery with Bison
errortoken, and building usable ASTs in spite of lexical/syntax errors.
- Using STL containers
The AST uses
The AST hierarchy is typical example of a proper use of inheritance.
- Inclusion polymorphism
An intense use of inclusion polymorphism for
- Use of constructors and destructors
In particular using the destructors to reclaim memory bound to components.
- Use of virtual specifier
Dynamic and static bindings.
std::ostreamwith indentation features. Use it in the
PrettyPrinterto pretty-print. Understanding how
misc::indentworks will be checked later, see TC-3 Goals.
- The Composite design pattern
The AST hierarchy is an implementation of the Composite pattern.
- The Visitor design pattern
The PrettyPrinter is an implementation of the Visitor pattern.