Context-free coalgebras