Skip to main content

Module syntax

Module syntax 

Source
Expand description

How the references of a parsed document were written.

The links parse_lino_to_links returns hold what each reference means: 1 and '1' are both the reference 1. The links parse_lino_to_syntax_links returns hold a SyntaxReference instead, which keeps the meaning and also the text the reference was written as, so a tool can tell the two apart while comparing, hashing and formatting them exactly as before.

Structs§

SyntaxReference
A reference read from a document, together with the text it was written as.

Functions§

reference_quote
The delimiter a reference was written between, read from the reference as it was written: ', " or ` for one complete quoted reference (however many delimiters open it), and None for a bare reference, a versioned literal, or text that holds more than one reference.