code: def iter_token_lines(tokenlist):
      
      line = []
      for token, c in explode_tokens(tokenlist):
          line.append((token, c))
  
          if c == '\n':
              yield line
              line = []
  
      yield line
docs: Iterator that yields tokenlists for each line.