A hierarchy of context-free derivations