B0501 Compiler Design
B0501 Compiler Design
com
2. a) What are preprocessing steps required for predictive parsing. Explain with
examples.
b) Construct the Predictive Parsing Table for the following grammar
SÆ aAB | bA | ∈
A Æ aAb | ∈
B Æ bB| ∈
L D
R
SÆ Aa|aAc|Bc |bBa
AÆd
O
BÆd
4. a) Design a syntax directed translation scheme for finding the value of the
E → TE’
E’ → +TE’ | ε
U W
expression given by the following grammar.
T
T → FT’
T’ → *FT’ | ε
N
F → (E) | id
J
b) What is a type expression? Explain equivalence of type expressions with
appropriate examples.
www.jntuworld.com