Generalized context-free grammar