Expand description
Some span data structures
§Description
This module contains the Span and SpannedStr data structures. The
difference between them is that SpannedStr contains the inner text while
Span contains only its position. Consequently, SpannedStr is used
during the lexing and parsing steps, but the AST generated should contain
only Span.
§A consistency note
Inconsistent results may occur when Span and SpannedStr coming from
different places are used toghether. This is fine for most use-cases, in
which a single process in invoked for a single input unit.
Structs§
- Position
- Represents a position in the input data.
- Span
- Represents the position of a piece of code in the input file.
- Spanned
Str - Represents a portion of input file.