std.experimental.xml available on DUB

Lodovico Giaretta via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Thu Aug 4 00:15:01 PDT 2016


On Wednesday, 3 August 2016 at 09:04:30 UTC, Jacob Carlborg wrote:
> On 2016-07-30 11:26, Lodovico Giaretta wrote:
>> Hi,
>>
>> I'm proud to announce that std.experimental.xml v0.1.0 is 
>> available on
>> DUB [1]!
>
> Another question. I see that there are a couple of different 
> lexers available. Can those be exposed with the same 
> interface/type instead of using different types? Perhaps based 
> on the input type.

I don't know if it is what you want, but you can do this:

auto lexer = chooseLexer!input;

The function chooseLexer creates the most suitable lexer type 
based on the input type.

You can test if a type is a lexer using the trait isLexer defined 
in std.experimental.interfaces.


More information about the Digitalmars-d-announce mailing list