I seem to recall nonparametrics coming up a few times in the forum before. This seems to be a good starting point. I think the TL;DR is that it is sometimes possible with some computational/analytical tricks but not necessarily what Stan is built for.