Write a Prolog program that can answer
<S> → <A> a <B> b
<A> → <A> b | b
<B> → a <B> | a
Which of the following sentences are in the language generated by this grammar? a. baab
b. bbbab
c. bbaaaaa
d. bbaab.
Submit your code and screen shots of the results.
1
Expert's answer
2019-11-15T07:08:46-0500
Dear meli, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order
Comments
Leave a comment