Noeud « Next »: , Noeud « Up »: T2



4.4.1 T2 Goals

Things to learn during this stage that you should remember:

Using Valgrind
Using tools such as Valgrind (voir Valgrind) to track memory leaks.
Error recovery with Bison
Using the error token, and building usable ASTs.
Using STL containers
The AST uses std::list, symbol::Symbol uses std::set.
Inheritance
The AST hierarchy is exceptionally typically of a proper use of inheritance, together with...
Inclusion polymorphism
an intense use of inclusion polymorphism for accept.
Use of constructors and destructors
In particular using the destructors to reclaim memory bound to components.
virtual
Dynamic and static bindings.
The Composite design pattern
The AST hierarchy is an implementation of the Composite pattern.
The Visitor design pattern
The PrintVisitor is an implementation of the Visitor pattern.
Writing good developer documentation (using Doxygen)
The AST must be properly documented.