parser

Returns an instance of Parser from the given lexer.

@safe
parser
(
Flag!"preserveWhitespace" preserveWhitespace = No.preserveWhitespace
T
)
()
if ()

Parameters

preserveWhitespace

whether the returned Parser shall skip element content whitespace or return it as text nodes

lexer T

the lexer to build this Parser from

Return Value

Type: auto

A Parser instance initialized with the given lexer

Meta