2 The Termite term representation

SATIrE can export an external term representation of the abstract syntax tree (AST) of a C++ program. This term representation contains all information that is necessary to correctly unparse the program, including line and column information of every expression. The terms are also annotated with the results of any preceding PAG analysis. The syntax of the term representation was designed to match the syntax of Prolog terms. This allows it to be manipulated by Prolog programs very naturally.


Section Index


2.1 Grammar of TERMITE terms
2.1.1 statements
2.1.2 expressions
2.1.3 annotations
2.1.4 other stuff