On 02/29/2012 07:28 PM, Martin Nowak wrote:
On Wed, 29 Feb 2012 17:41:19 +0100, Timon Gehr <[email protected]> wrote:On 02/28/2012 07:46 PM, Martin Nowak wrote:https://gist.github.com/1255439 - lexer generator https://gist.github.com/1262321 - complete and fast D lexerWell, it is slower at lexing than DMD at parsing. What is the bottleneck?No, it's as fast as dmd's lexer. Writing the tokens to stdout takes a lot of time though. Just disable the "writeln(tok);" in the main loop.
I did that.
