throw ParserError if invalid rule entry is encountered