> JetBrains MPS
But, the source code in MPS is not plain text, I suppose..
Sorry, I am not proficient enough to suggest a solution in TXR Lisp.
To my mind this is the subject of parser generators and DSLs.
Kind of "Your own language"
http://createyourproglang.com/
--
Roman