Evaluation of Expressions: Example
1
/
16
Example for
a
+
b
, where
a
.
value
= 10
,
b
.
value
= 20
E
$
Parser pushdown:
Semantic pushdown:
Input:
i
1
+
i
2
$
Rule:
E
®
T
1
{
Q
1
.i
:=
T
1
.s
}
Q
1
{
E.s
:=
Q
1
.s
}
28
/69
Illustration
:
E
10
+
20