Question: Need some help with the following problem: Define a grammar by setting > = {o} and let F consist of the following instruction formulas. 1.

Need some help with the following problem:

Need some help with the following problem: Define a grammar by setting

Define a grammar by setting > = {o} and let F consist of the following instruction formulas. 1. o- NV. 2. N - n, for some n E {he, she, Jose, Sal, Anna}. 3. V - v, for some ve {runs, jumps, skips, falls, swims}. 4. O-0PO. 5. - p, for some p E {and, while until}. 6. g - either o or o. Give derivations for the following string in the given grammar. Sal jumps while either Jose falls or Anna skips. initial string formula ? 7 - 6 P either o or o formula ? - N V P either N V or N V formula ? 7 (3 times) - Sal V P either Jose V or Anna V formula ? v (3 times) - Sal jumps P either Jose falls or Anna skips formula ? 7 (3 times) - Sal jumps while either Jose falls or Anna skips formula

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 Mathematics Questions!