Parser folds units into sets and intervals