Java Reference
In-Depth Information
assign
plus
variable
expression
expression
expression
(a)
(b)
if
while
predicate
alternative
alternative
predicate
loop body
(c)
(d)
block
statement
statement
statement
(e)
Figure 7.15: AST structures: A specific node is designated by an
ellipse. Tree structure of arbitrary complexity is designated by
a triangle.
E
plus
E
T
T
id
num
id
plus
num
a
5
a+5
(a)
(b)
Figure 7.16: (a) Derivation of a+5from E;
(b) Abstract representation of a+5.
Search WWH ::




Custom Search