Java Reference
In-Depth Information
Start
Stmt
Stmt
Stmts
Stmts
Stmt
Stmt
E
E
Stmt
Stmt
E
E
E
E
E
T
T
T
T
T
T
T
if
lparen
id
plus
num rparen begin while lparen
id
rparen
id
assign
id
plus
num
od
semi
id
assign num
end
else
id
assign num
fi
$
$
if (
x+
y
)
{ while(z)z=z+1 d;x=8}else z
=
7 fi
Figure 7.18: Concrete syntax tree.
if
plus
assign
block
id
x
id
y
id
z
intconst
7
while
assign
id
z
assign
id
x
intconst
8
id
z
plus
id
z
intconst
1
Figure 7.19: AST for the parse tree in Figure 7.18.
 
Search WWH ::




Custom Search