I've been unable to find any examples of context-free grammars that have nesting and inequalities.
For instance, I am trying to write the CFG for:
{aibjckdl : (i < l) ^ (j < k)}
So, for {aidl : (i < l)}
, the CFG would simply be:
S -> aSd | dS | d
It would be similar for b and c. But I cannot figure out how to nest the two grammars. Any similar examples or pointers would be helpful.