As I've already asked my Question about the solving Context Free Grammar $L = \{a^n b^m c^p \mid n = m + p + 2\}$
Can this language be defined by a Context Free Grammar?
Now i have just changed n = m + p - 2
and still can't figure out,
Here is my attempt:
S -> Cc
B -> aBb | ^
C -> aCc | Bb
(In this Grammer i can't handle string like bb , cc , abbc , abcc etc)
How to make such type of grammars where n = m + p - x
.Can anyone explain how to solve such kind of grammars:
$K = \{a^n b^m c^p \mid n = m + p - 2\}$