I'm reading the dragon book (just starting for now), and I found this exercise which I can absolutely not solve. I understand the concept, but building a context-free grammar for this looks like way out of my league.
NOTE: I'm not taking a Compiler class in College and trying to cheat. I'm just reading the dragon book and this exercise caught my attention (and I have no idea even how to start solving it)
Plus, I have no teacher to go ask...
Any clues/pointers?
BTW, If you have any idea on how I can prove that I'm not cheating in college, I'll gladly do it. I'm just trying to learn on my own here.
Thanks