Want to help DMD bugfixing? Write a simple utility.

Regan Heath regan at netmail.co.nz
Fri Mar 25 04:08:22 PDT 2011


On Wed, 23 Mar 2011 21:16:02 -0000, Jonathan M Davis <jmdavisProg at gmx.com>  
wrote:
> 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/


More information about the Digitalmars-d-learn mailing list