Evaluation of
Expressions: Example 15/16
Example for a + b, where a.value = 10, b.value = 20
Q2
{Q1.s
:= Q2.s}
{E.s
:= Q1.s}
$
Parser
pushdown:
Semantic
pushdown:
Input: $
Rule: Q2 ® e {Q2.s := Q2.i}
42/69
E
10
+
20
T1
Q1
F2
R2
F1
R1
i1
e
e
i2
Illustration:

T2
Q2
+
+