Module source

Source
Expand description

Source code that is passed to the parser

This module contains items representing information about the source code from which ASTs originate. Source identifies the origin of source code fragments contained in Code. A Location specifies a particular character in a Code instance. You can use the pretty submodule to format messages describing source code locations.

Modules§

pretty
Pretty-printing diagnostic messages containing references to source code

Structs§

Code
Source code fragment
Location
Position of source code
SourceChar
Character with source description

Enums§

Source
Origin of source code

Functions§

source_chars
Creates an iterator of source chars from a string.