Hi,
I would like to ask If we write a following context-free grammar (CFG) for language L1, would that be sufficient to demonstrate that L1 is a context-free language (CFL), or is designing a deterministic finite automaton (DFA) the only correct approach?
S → AB
A → aAb | ε
B → Bb | ε
.