check for undefined grammar types