Changes between Version 24 and Version 25 of AST


Ignore:
Timestamp:
04/21/11 20:32:10 (15 years ago)
Author:
Stephen Siegel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AST

    v24 v25  
    6565== AST Nodes ==
    6666
     67Shared things: types, functions, variables...anything with an identifier.
     68
     69Maybe IdentifierNodeIF has a kind (function, variable, typeName, unknown, ...) and then also a method to return the shared thing, but this is not considered a child.    (Otherwise, you would not have a tree, but a directed graph.)
     70
    6771ASTNodeIF extends SourceableIF
    6872 * methods
     
    7276
    7377The following extend ASTNodeIF:
    74  * IdentifierNodeIF: wraps a string. represents an identifier occurrence in code
    75     * methods
     78 * IdentifierNodeIF: wraps a string. represents an identifier occurrence in code.   Has 0 children, i.e., is a leaf node.
     79    * methods
     80       * kind: UNKNOWN, VARIABLE, FUNCTION, TYPE
    7681       * name: string
     82       * reference: ASTNodeIF : the thing that this identifier represents
    7783 * TypeNodeIF: a type expression
    7884    * IdentifierTypeNodeIF
    79        * this is a type that is just a name, e.g., resulting from a C typedef.   This will node will eventually be replaced by a more specific type tree once type definitions are processed.
     85       * this is a type that is just a name, e.g., resulting from a C typedef.
    8086       * methods
    8187          * identifier: IdentifierNodeIF