parameters: (state, expected)
return_statement: return True
docstring: Given a parsing state and a expected string, consumes the string from
      the head. Returns True if consumed successfully. Otherwise, returns
      False.
docstring_summary: Given a parsing state and a expected string, consumes the string from
      the head. Returns True if consumed successfully. Otherwise, returns
      False.
docstring_tokens: Given a parsing state and a expected string consumes the string from the head . Returns True if consumed successfully . Otherwise returns False .
function: def consume_string(state, expected):
      """Given a parsing state and a expected string, consumes the string from
      the head. Returns True if consumed successfully. Otherwise, returns
      False.
      """
  
      pos = 0
  
      for c in expected:
          if c != peek(state, pos):
              return False
          pos += 1
  
      consume(state, pos)
      return True
function_tokens: def consume_string ( state , expected ) : pos = 0 for c in expected : if c != peek ( state , pos ) : return False pos += 1 consume ( state , pos ) return True