def build_terminal(tok):
    """Builds a terminal statement for xml output"""
    terminal = "<" + tok["type"] + ">" + " " + \
        str(tok["value"]) + " " + "</" + tok["type"] + ">\n"
    return terminal