Consider the Grammar:
<stmt> -> BEGIN <stmt_list> END
<stmt> -> LOAD
<stmt> -> PRINT
<stmt_list> -> <stmt_list> ; <stmt>
<stmt_list> -> <stmt>
Trace your SLR parser on the input:
BEGIN PRINT ; BEGIN LOAD ; PRINT ; LOAD END END
Expert Answer
An answer will be send to you shortly. . . . .