Question: (10 pt) Design CFGs for the given languages: (a) (4 pt) Write a grammar that describes the strings 0T1T where m>n. (b) (6 pt) Write

 (10 pt) Design CFGs for the given languages: (a) (4 pt)

(10 pt) Design CFGs for the given languages: (a) (4 pt) Write a grammar that describes the strings 0T1T where m>n. (b) (6 pt) Write a grammar that describes a "baby language" and list two most interesting sentences he/she will say: the baby has very limited vocabularies "apple" "puppy" "ow "eat" "mama" "baba" "big" red" the baby knows a few basic rules to put together a sentence: (1) a sentence can be a noun, a verb or an adjective (2) a sentence can consist of a verb and one or more noun(s) (adjectives are optional), where a noun should be before the verb and/or after the verb, (3) an adjective only can be immediately before the noun

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!