Show the actions of your parsing table from Exercise 4.6.2 on the input aa * a+.
Exercise 4.6.2
Construct the SLR sets of items for the (augmented) grammar of Exercise 4.2.1. Compute the GOTO function for these sets of items. Show the parsing table for this grammar. Is the grammar SLR?
Exercise 4.2.1
Consider the context-free grammar:5 -> S S + \ S S * \ aand the string aa + a*.a) Give a leftmost derivation for the string.b) Give a rightmost derivation for the string.c) Give a parse tree for the string.! d) Is the grammar ambiguous or unambiguous? Justify your answer.! e) Describe the language generated by this grammar.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here