Consider the following grammar: (S is the start symbol, e is the empty string) S –> (H) | a H —
Consider the following grammar: (S is the start symbol, ε is the empty string)
S –> (H) | a
H –> G S
G –> , G S | ε
1. Compute the FIRST and FOLLOW sets for the nonterminals S, H, and G.
2. Construct the LL(1) parse-table for the above grammar.
3. Show the contents of the stack and the input buffer during the parsing of string ((,aa))