Let L be the language
Thus, a string is in L if and only if it starts with a sequence of A ’s and is followed by a sequence of twice as many B ’s. For example, AABBBB is in L , but ABBB, ABBABB, and the empty string are not.
a. Give a grammar for the language L .
b. Write a recursive function that determines whether the string strExp is in L .
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here