Generate BNF terms selectively