std.experimental.xml available on DUB

Jacob Carlborg via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Thu Aug 4 03:48:46 PDT 2016


On 2016-08-04 09:15, Lodovico Giaretta wrote:

> 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.

Please see my reply to Robert [1].

[1] http://forum.dlang.org/post/nnv6gt$sbe$1@digitalmars.com

-- 
/Jacob Carlborg


More information about the Digitalmars-d-announce mailing list