Skip to main content

parse_document_with_diagnostics

Function parse_document_with_diagnostics 

Source
pub fn parse_document_with_diagnostics(
    input: &str,
) -> Result<Vec<Link>, ParseFailure>
Expand description

Parses a document and, when it does not parse, says where it stopped.

parse_document reports a failure the way nom does: with the whole unconsumed remainder of the input and the combinator that gave up. Neither tells a reader which line to look at, and the remainder grows with the size of the document. This is the entry point the library uses.