def register_intent_parser(self, intent_parser):
if hasattr(intent_parser, '<STR_LIT>') and callable(intent_parser.validate):<EOL><INDENT>self.intent_parsers.append(intent_parser)<EOL><DEDENT>else:<EOL><INDENT>raise ValueError("<STR_LIT>" % str(intent_parser))<EOL><DEDENT>
"Enforce" the intent parser interface at registration time.

Args:
    intent_parser(intent): Intent to be registered.

Raises:
    ValueError: on invalid intent