Define recursive term-seq and a staff-parser.