Question

(a0Give the derivations and parse trees for the following strings using the grammar given below: •...

(a0Give the derivations and parse trees for the following strings using the grammar given below:

• abba • babab

(b)  

Give the derivations and parse trees for the following strings using the grammar given below:

• a cat napped • a cat barked

P={
<sentence> → <article><noun><verb>

<article> → "a"

<article> → "the"

<noun → "dog"

<noun> → "cat"
<verb> → "barked"

<verb> → "napped"

}

0 0
Add a comment Improve this question Transcribed image text
Answer #1

o ommor provided Duivaki on 山) a at nop ed en tence > ㅡ> <article > < noun ><verb> → a cat napped pawse Hue Sen lence articleDruvation

Add a comment
Know the answer?
Add Answer to:
(a0Give the derivations and parse trees for the following strings using the grammar given below: •...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT