§Given a file to parse,
the AST Framework shall return an IASTTranslationUnit which then
can be traversed or visited
§The IASTNode interface
hierarchy represent constructs in the C/C++ grammar.
•long x; /* IASTSimpleDeclaration with 1
IASTDeclarator */
•long y();
/* IASTSimpleDeclaration with 1 IASTFunctionDeclarator */
•int f() { return
sizeof( int ); } /* IASTFunctionDefinition */
§Physical tree is unaware
of any semantic knowledge
4Declaration before use
(C++)
4Scoping
4Type
compatibility
4lValue vs. rValue
§Allows for quick
generation of syntax tree
4Only slight overhead
to cost of scan & preprocess