<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def register(self, token, regexp):
 """Register a token. Args: token (Token):
 the token class to register regexp (str):
 the regexp for that token """

        self._tokens.append((token, re.compile(regexp)))