On the Cobol issue: Yes, I would rather do XML than Cobol :) I am hardly a XML guru, but I already like it more than Cobol. Technically, Code is data. Uniform data, since it is built up out of keywords and variables. A lex parser backend would ofcourse be handy, since you have to DO something with the code.
... Quidquid perl dictum sit, altum viditur.