A context-free language is defined by its description:
$L=(a^{2k} \space b^n \space c^{2n} \mid k \geq 0, \space n > 0)$
For example:
$bcc, aabcc, aabbcccc, bbcccc$
How to build a context-free grammar for this context-free language?
I suppose that the order for generating any chain in this problem matters: 'b' will always stand after 'a' and 'c' - after 'b'. Is it so?
My attempts leaded to this solution:
$ S \rightarrow aaAbcc \mid bAcc \mid aabAcc $
$ A \rightarrow aa \mid bcc \mid λ $
Please correct me if I'm wrong or better offer your solution to this problem.