There are tasks for which you need to be able to lex and parse D code. To 100% correctly remove unit tests would be one such task.
Is that last bit true? You definitely need to be able to lex it, but instead of actually parsing it you just count { and } and remove 'unittest' plus { plus } plus everything in between right?
-- Using Opera's revolutionary email client: http://www.opera.com/mail/