(self, token)
Consumes a piece of text.

    Args:
      token: Text to consume.

    Raises:
      ParseError: If the text couldn't be consumed.
Consumes a piece of text.
Consumes a piece of text .
def Consume(self, token):
    """Consumes a piece of text.

    Args:
      token: Text to consume.

    Raises:
      ParseError: If the text couldn't be consumed.
    """
    if not self.TryConsume(token):
      raise self._ParseError('Expected "%s".' % token)
def Consume ( self , token ) : if not self . TryConsume ( token ) : raise self . _ParseError ( 'Expected "%s".' % token )