Enum member isLowLevelParser
Checks whether its argument fulfills all requirements to be used as XML parser.
An XML parser is the second component in the parsing chain. It is usually built
on top of a lexer and used to feed a cursor.
The slices contained in the tokens returned by the parser are ephemeral: every
reference to them may or may not be invalidated by subsequent calls to
If the caller needs them, it has to copy them somewhere else.
enum isLowLevelParser(P) = isInputRange!P && is(typeof(ElementType!P
.kind) == XMLKind) && is(typeof(ElementType!P .content) == P .CharacterType);
|P||the type to be tested|
true if P satisfies the XML parser specification here stated;
The parser shall at least:
alias CharacterType: the type of a single source character;
alias InputType: the type of the input which is used to feed this parser;
- be an
InputRange, whose elements shall support at least the following fields:
void setSource(InputType): sets the input source for this parser and eventual underlying components; the parser may perform other initialization work and even consume part of the input during this operation; after (partial or complete) usage, a parser may be reinitialized and used with another input by calling this function;
Copyright Lodovico Giaretta 2016 --