def register_intent_parser(self, intent_parser, domain=<NUM_LIT:0>):
if domain not in self.domains:<EOL><INDENT>self.register_domain(domain=domain)<EOL><DEDENT>self.domains[domain].register_intent_parser(<EOL>intent_parser=intent_parser)<EOL>
Register a intent parser with a domain.

Args:
    intent_parser(intent): The intent parser you wish to register.
    domain(str): a string representing the domain you wish register the intent
        parser to.