Question

2. Prove that the following grammar is ambiguous: S → SS(S) la 3. Convert the following EBNF rule taken from Pascal standard
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer:---------

2). A CFG is said to ambiguous if there exists more than one derivation tree for the given input string i.e., more than one LeftMost Derivation Tree (LMDT) or RightMost Derivation Tree (RMDT).

let, string = (aaaa)

LeftMost Derivation Tree (LMDT)===>
C کے د S S zuen ss a Note: - Both parse Treep are derived from game grammar rules but both parke treey are different • Hence,

Add a comment
Know the answer?
Add Answer to:
2. Prove that the following grammar is ambiguous: S → SS(S) la 3. Convert the following...
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
ADVERTISEMENT