Function parser
Returns an instance of Parser
from the given lexer.
Prototype
auto parser(std .typecons .Flag!("preserveWhitespace") .Flag preserveWhitespace, T, ErrorHandler)(
auto ref T lexer,
ErrorHandler handler =
)
if (isLexer!T);
Parameters
Name | Description |
---|---|
preserveWhitespace | whether the returned Parser shall skip element content
whitespace or return it as text nodes |
lexer | the lexer to build this Parser from |
Returns
A Parser
instance initialized with the given lexer
Authors
Lodovico Giaretta
Copyright
Copyright Lodovico Giaretta 2016 --