On Wednesday, 3 August 2016 at 09:04:30 UTC, Jacob Carlborg wrote:
On 2016-07-30 11:26, Lodovico Giaretta wrote:
I'm proud to announce that std.experimental.xml v0.1.0 is
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