Back to the 2022 paper

Module 2 : Syntax Analysis (Parser)

20227m

Compute FIRST and FOLLOW for the given grammar. Also derive the LL(1) parsing table.
ETEE \rightarrow TE'
E+TE/ϵE' \rightarrow + TE' / \epsilon
TFTT \rightarrow FT'
TFT/ϵT' \rightarrow * FT' / \epsilon
F(E)/idF \rightarrow (E) / id

Similar questions