Changes between Version 24 and Version 25 of AST
- Timestamp:
- 04/21/11 20:32:10 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AST
v24 v25 65 65 == AST Nodes == 66 66 67 Shared things: types, functions, variables...anything with an identifier. 68 69 Maybe 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 67 71 ASTNodeIF extends SourceableIF 68 72 * methods … … 72 76 73 77 The 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 76 81 * name: string 82 * reference: ASTNodeIF : the thing that this identifier represents 77 83 * TypeNodeIF: a type expression 78 84 * 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. 80 86 * methods 81 87 * identifier: IdentifierNodeIF
