There is also Nick's Goldie: http://www.semitwist.com/goldie/ Also, std.lexer was recent reviewed, with some things to change. I hope its author will present it again soon. There are many D parsers/lexers there, but they are specifically designed to lex and parse D. Also, Ragel can generate D source code: http://www.complang.org/ragel/