Changes between Version 11 and Version 12 of C to tass-AST xml


Ignore:
Timestamp:
04/10/11 14:49:40 (15 years ago)
Author:
Stephen Siegel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • C to tass-AST xml

    v11 v12  
    11= Notes on TASS AST and Translation to Model =
     2
     3Questions:
     4 * How to handle pre-processor macros?   Include in AST?
     5 * How abstract should the AST be?
     6 * Should it contain semantic information, e.g., types, and variables?
     7 * How will it handle things like (foo)*bar: this could be either a cast of *bar to type foo, or it could be the product of foo and bar; you need to know whether foo defines a type, which is some semantic information
    28
    39== Elements of a TASS AST ==
     
    5965
    6066Stages
    61  # All variables, types, etc., are represented simply as identifiers
    62  # Symbol table information is used to annotate the AST
    63  # (Static) types are created and associated to every expression
    64  # Variable objects are created and inserted into AST
    65  # Variables may be moved around to facilitate translation to model, ....
    66 
    67 
    68 Questions:
    69  * How to handle pre-processor macros?   Include in AST?
     67 1. All variables, types, etc., are represented simply as identifiers
     68 1. Symbol table information is used to annotate the AST
     69 1. (Static) types are created and associated to every expression
     70 1. Variable objects are created and inserted into AST
     71 1. Variables may be moved around to facilitate translation to model, ....
     72
     73
    7074
    7175