Function chooseParser
Instantiates a parser suitable for the given InputType
.
This is completely equivalent to
auto parser =
chooseLexer!(InputType, reuseBuffer)(alloc, handler)
.parser!(preserveWhitespace)(handler)
Prototypes
auto chooseParser(InputType, std .typecons .Flag!("preserveWhitespace") .Flag preserveWhitespace, std .typecons .Flag!("reuseBuffer") .Flag reuseBuffer, Alloc, ErrorHandler)(
ref Alloc alloc,
ErrorHandler handler
);
auto chooseParser(InputType, Alloc, std .typecons .Flag!("preserveWhitespace") .Flag preserveWhitespace, std .typecons .Flag!("reuseBuffer") .Flag reuseBuffer, ErrorHandler)(
ErrorHandler handler
)
if (is(typeof(Alloc .instance)) && isSomeFunction!ErrorHandler);
auto chooseParser(InputType, std .typecons .Flag!("preserveWhitespace") .Flag preserveWhitespace, std .typecons .Flag!("reuseBuffer") .Flag reuseBuffer, Alloc)(
ref Alloc alloc
)
if (!isSomeFunction!Alloc);
auto chooseParser(InputType, Alloc, std .typecons .Flag!("preserveWhitespace") .Flag preserveWhitespace, std .typecons .Flag!("reuseBuffer") .Flag reuseBuffer)()
if (is(typeof(Alloc .instance)));
Authors
Lodovico Giaretta
Copyright
Copyright Lodovico Giaretta 2016 --