parameters: (self, regex)
return_statement: return self.m
docstring: Looks for a token at the start of self.d.
         If found, the token is removed.
docstring_summary: Looks for a token at the start of self.d.
         If found, the token is removed.
docstring_tokens: Looks for a token at the start of self . d . If found the token is removed .
function: def eat_token(self, regex):
      """Looks for a token at the start of self.d.
         If found, the token is removed."""
      self.m = re.match(regex,self.d)
      if self.m:
        self.d = self.d[self.m.end():]
      return self.m
function_tokens: def eat_token ( self , regex ) : self . m = re . match ( regex , self . d ) if self . m : self . d = self . d [ self . m . end ( ) : ] return self . m