Completed validation function (for now). Silenced unnecessary warnings in GrammarParser.