Back to the 2024 paper

Module 2 : Syntax Analysis (Parser)

20242m

Consider the following grammar:
EE+TTE \rightarrow E + T | T
TTFFT \rightarrow T * F | F
F(E)idF \rightarrow (E) | id

Parse the string id + id * id using the constructed SLR(1) table and show the parser actions step-by-step.

Similar questions