Struct Parser
A low level XML parser.
The methods a parser should implement are documented in
std
;
Template arguments
struct Parser(L, ErrorHandler, std .typecons .Flag!("preserveWhitespace") .Flag preserveWhitespace)
if (isLexer!L);
Constructors
Name | Description |
---|---|
this
|
Generic constructor; forwards its arguments to the lexer constructor |
Methods
Name | Description |
---|---|
empty
|
See detailed documentation in
std
|
front
|
See detailed documentation in
std
|
popFront
|
See detailed documentation in
std
|
Inner structs
Name | Description |
---|---|
XMLToken
|
The structure returned in output from the low level parser. Represents an XML token, delimited by specific patterns, based on its kind. This delimiters are not present in the content field. |
Parameters
Name | Description |
---|---|
L | the underlying lexer type |
ErrorHandler | a delegate type, used to report the impossibility to parse the file due to syntax errors |
preserveWhitespace | if set to Yes (default is No ), the parser will not remove
element content whitespace (i.e. the whitespace that separates tags), but will
report it as text |
Authors
Lodovico Giaretta
Copyright
Copyright Lodovico Giaretta 2016 --