std.d.lexer requirements

Jacob Carlborg doob at me.com
Wed Aug 1 23:49:10 PDT 2012


On 2012-08-02 02:10, Walter Bright wrote:

> 1. It should accept as input an input range of UTF8. I feel it is a
> mistake to templatize it for UTF16 and UTF32. Anyone desiring to feed it
> UTF16 should use an 'adapter' range to convert the input to UTF8. (This
> is what component programming is all about.)

I'm no expert on ranges but won't that prevent slicing? Slicing is one 
of the main reasons for why the Tango XML parser is so amazingly fast.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list