Renumbered grammars