std.d.lexer requirements

Walter Bright newshound2 at digitalmars.com
Wed Aug 1 21:00:53 PDT 2012


On 8/1/2012 7:04 PM, deadalnix wrote:
> Le 02/08/2012 02:10, Walter Bright a écrit :
>> 6. A single "Lexer" instance should be able to serially accept input
>> ranges, sharing and updating one identifier table
>>
>
> I see the lexer as a function that take an range of char as input and give back
> a range of token. Does it make sense to make an instance of a lexer ?

Yes, as the lexer will have some state and some configuration parameters.



More information about the Digitalmars-d mailing list