Skip to main content

Module parser

Module parser 

Source

Structs§

Link
ParseFailure
Where the parser stopped, and what it could have accepted there.
ParserState
SavedContext
Indentation state of the context a parenthesized group was opened in.

Constants§

DEFAULT_MAX_DEPTH
How deep links may nest when nothing says otherwise.

Functions§

parse_document
parse_document_with_diagnostics
Parses a document and, when it does not parse, says where it stopped.
parse_document_with_max_depth
Parses a document the way parse_document_with_diagnostics does, refusing links nested deeper than max_depth. Every parenthesized group and every indentation level is one level of nesting.
quoted_reference_end
The offset just past the delimited reference that starts at start, or None when nothing that far into document opens one.