- G → G B ⏐ G N ⏐ ε
- B → ( E )
- E → E ( E ) ⏐ ε
- N → ( L ]
- L → L E ⏐ L (⏐ ε
For this grammar, the prompt asks to describe in the language that this grammar describes and builds.
I got to the point of first trying at defining the language each one builds but the recursiveness of this grammar threw me off a bit.
I'm kind of stuck, thus far I tried to start with let's say N and try to describe it as generating a left paren followed by a left paren and right bracket.
I could really use some direction on where to go with this.
Now just thinking about how to create the parse tree for the right derivation of the string ((]() I got the tree for the left, probably crawl around and look for more resources.
– Ricardo Rigaroni Sep 22 '16 at 15:31