def parse_llil(context, llil_list):
    """ Helps the GUI go from lists of instruction data to a cleanly formatted string """
    newText = ""
    for llil in llil_list:
        if llil is not None:
            tokens = llil.deref_tokens if hasattr(llil, 'deref_tokens') else llil.tokens
            newText += "{}: ".format(llil.instr_index)
            newText += ''.join(context.escape(str(token)) for token in tokens)
        else:
            newText += 'None'
        newText += context.newline
    if(len(llil_list) > 0):
        return newText.strip(context.newline)
    else:
        return 'None'