The C++ API tries to get as close as possible to the python API for the AST and Type module (see the section called “The AST”). Two factories, an ASTKit and a TypeKit allow the creation of all the AST objects.