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

Determine whether the grammar is SLR(1), clearly stating any shift-reduce or reduce-reduce conflicts.

Similar questions