Okay, so I've seen several comments from several people regarding the need for a D lexer in Phobos. I figure I should contribute something to this NG other than misdirected anger, so here it is.
SDC has a lexer, and it's pretty much complete. It handles unicode and script lines, and #line and friends. It's currently MIT, but I've been meaning to re license to to boost, so that's not an issue. It used to have some number lexing code stolen from DMD, but I removed that when we moved to MIT. https://github.com/bhelyer/SDC/blob/master/src/sdc/lexer.d https://github.com/bhelyer/SDC/blob/master/src/sdc/source.d https://github.com/bhelyer/SDC/blob/master/src/sdc/tokenstream.d https://github.com/bhelyer/SDC/blob/master/src/sdc/token.d https://github.com/bhelyer/SDC/blob/master/src/sdc/location.d TokenStream would need to become a range, name and specific interface details requested from you fine people. opKirbyRape will, with great regret, have to go. Documentation will need to be buffed, and it'll need to be renamed into Phobos style. I'm willing to do the work if people think it's worthwhile, and I can get some directed suggestions. -Bernard.
