Parsing and printing of list branches of size 0 or 1