Request for comments: std.d.lexer

deadalnix deadalnix at gmail.com
Mon Feb 4 21:45:02 PST 2013


On Tuesday, 5 February 2013 at 03:22:52 UTC, Andrei Alexandrescu 
wrote:
> On 2/4/13 10:19 PM, Brian Schott wrote:
>> More optimizing:
>> http://hackerpilot.github.com/experimental/std_lexer/images/times2.png
>>
>> Still only half speed. I'm becoming more and more convinced 
>> that Walter
>> is actually a wizard.
>
> Suggestion: take lexer.c and convert it to D. Should take one 
> day, and you'll have performance on par.
>

DMD's lexer is not suitable for phobos IMO. It doesn't take a 
range as input and don't produce a range. It also lack the 
features you may want from a multi usage D lexer.


More information about the Digitalmars-d mailing list