This crate is mostly intended to be an internal dependency of the
silkworm project, an implementation of the
Yarn interactive dialogue language in
pure Rust. End users are expected to use
silkworm, the user-facing API, instead of
depending on this crate directly.
Most of the internals of
silkworm is developed with the assumption that all code will
reside in continuous memory addressable with bytes. This simplifies parsing, but erases
information about source location.
silkworm_sourcemap contains the necessary facility
for converting byte-positions to locations in file and back.