merged psf into sourcelang framework
implemented n-cases, except for splitting; only tested for n=2