Debian Codegraph @

/

debian rust-codemap 0.1.3-1debian librust-codemap-dev debian librust-codemap+default-dev debian librust-codemap-0-dev debian librust-codemap-0+default-dev debian librust-codemap-0.1-dev debian librust-codemap-0.1+default-dev debian librust-codemap-0.1.3-dev debian librust-codemap-0.1.3+default-dev cargo codemap 0.1.3 debianjsonmakefilemarkdownrustrust-c-abishelltomlyaml 15 files · 211 symbols
View dependency graph

Depends on

  • dh-cargo (dh-sequence-cargo)
  • cargo, debhelper-compat, libstd-rust-dev, rustc
README (full)

CodeMap

Documentation

Build Status

A data structure for tracking source positions in language implementations, inspired by the SourceMap (formerly CodeMap) type in rustc's libsyntax.

The CodeMap tracks all source files and maps positions within them to linear indexes as if all source files were concatenated. This allows a source position to be represented by a small 32-bit Pos indexing into the CodeMap, under the assumption that the total amount of parsed source code will not exceed 4GiB. The CodeMap can look up the source file, line, and column of a Pos or Span, as well as provide source code snippets for error reporting.

License

Licensed under either of

  • Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
  • MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

dir debian/
dir src/
file .cargo_vcs_info.json
file .gitignore
file .travis.yml
file Cargo.toml
file Cargo.toml.orig
file LICENSE-APACHE
file LICENSE-MIT
file README.md