Skip to main content

Crate daml_syntax

Crate daml_syntax 

Source
Expand description

Shared parsed-source surface for Daml tools.

daml-parser stays the low-level lexer/layout/parser implementation. This crate owns the source-facing facts tools need around that parser: diagnostics, line/UTF-16 mapping, tokens, trivia, laid-out tokens, and conversion from parser byte spans to text-size ranges.

Structs§

Diagnostic
LineCol
LineIndex
SourceFile
SourceTokens
TextRange
A range in text, represented as a pair of TextSize.
TextSize
A measure of text length. Also, equivalently, an index into text.

Functions§

parser_span_to_text_range