Changes between Version 4 and Version 5 of AST
- Timestamp:
- 04/18/11 14:23:30 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AST
v4 v5 65 65 * name: string 66 66 * theType: type (type being assigned a name) 67 * statements (may have label) 67 * statements 68 * labels: set of labels associated to this statement. The labels all correspond to the point of control just before the statement. 68 69 * assign: lhs:=rhs; Note statements like x+=a, x*=a will be immediately translated to x:=x+1, x:=x*a, etc. 69 70 * lhs: LeftHandSideExpression … … 88 89 * continue 89 90 * goto 91 * label (this is the kind before processing) 92 * statement (after processing) 90 93 * return 94 * expression (may be null) 91 95 * no-op 92 96 * block ({...}) 93 * variable declaration section97 * sequence of variable definitions 94 98 * sequence of statements 95 * variable de claration99 * variable definition 96 100 * with possible initialization expression 97 101 * possible array extents information and other information modifying type? … … 113 117 * expressions with side-effects 114 118 * assignments: x=expr, x++, x--, ++x, --x 115 * function invocation f(x) when f is concrete and return type of f is non-null119 * function invocation f(x) when f is concrete 116 120 117 121
