Changes between Version 5 and Version 6 of AST
- Timestamp:
- 04/18/11 14:30:34 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AST
v5 v6 1 = Abstract Syntax Tree = 1 = The TASS Abstract Syntax Tree = 2 3 The TASS AST is the common front-end representation of a source program used by TASS. It is used to generate a model, the TASS intermediate representation. 2 4 3 5 Requirements: 4 * Language neutral: to the extent possible one common AST should be used for C, C++, Fortran(s) 5 * Should be easy to generate model from AST 6 * Should be easy to generate AST from parse tree 6 * language neutral: to the extent possible one common AST should be used for C, C++, Fortran(s) 7 * should be easy to generate model from AST 8 * should be easy to generate AST from a typical parse tree 9 * should be easy to generate AST from ANTLR, ROSE, or Clang (other tools?) 7 10 * AST may go through many processing stages; at each stage it is still an AST 11 * persistent XML representation: should be able to read and write 12 * all nodes must carry precise source information: file, begin point (line and column numbers), and end point 8 13 9 14 Questions: … … 17 22 == Elements of a TASS AST == 18 23 19 See description of CIL AST:24 For one example of how to do this, see description of CIL AST: 20 25 * http://www.cs.berkeley.edu/~necula/cil/api/ 21 26 * http://www.cs.berkeley.edu/~necula/cil/api/Cil.html
