Modal is a matrioshka language based on pattern-matching to rewrite trees

Link: wiki.xxiivv.com/site/modal
Discussion: news.ycombinator.com/item?id=4