Request for comments: std.d.lexer

Jacob Carlborg doob at me.com
Sun Jan 27 03:53:07 PST 2013


On 2013-01-27 11:42, Brian Schott wrote:

>> * I see Token has a startIndex member. Any reason not to have a
>> endIndex member? Or can and end index always be deduced from
>> startIndex and value.length?
>
> That's the idea.

Always good to try and minimize the size of a token when the lexer 
should output thousands of tokens per second.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list