def parse_node(content):
    node = None
    while content:
        (c, content) = split_content(content)
        ctype = get_char_type(c)
        if (node is None):
            node = create_node(c, ctype)
            continue
        if ((ctype == node.type) and (not (ctype in SingletonType))):
            node.add(c)
        else:
            node = create_node(c, ctype)
def parse_node(content):
    node = None
    while content:
        (c, content) = split_content(content)
        ctype = get_char_type(c)
        if (node is None):
            node = create_node(c, ctype)
            continue
        if ((ctype == node.type) and (not (ctype in SingletonType))):
            node.add(c)
        else:
            node = create_node(c, ctype)