• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

src/H03-May-2022-490332

.cargo-checksum.jsonH A D03-May-202289 11

.cargo_vcs_info.jsonH A D12-Apr-202074 65

.gitignoreH A D03-May-201718 32

.travis.ymlH A D03-May-201741 54

Cargo.tomlH A D12-Apr-20201.1 KiB2624

Cargo.toml.orig-cargoH A D12-Apr-2020617 1917

LICENSE-APACHEH A D03-May-201710.6 KiB202169

LICENSE-MITH A D03-May-20171 KiB2622

README.mdH A D29-Jun-20191.3 KiB3120

README.md

1# CodeMap
2
3**[Documentation](https://docs.rs/codemap)**
4
5[![Build Status](https://travis-ci.org/kevinmehall/codemap.svg?branch=master)](https://travis-ci.org/kevinmehall/codemap)
6
7A data structure for tracking source positions in language implementations, inspired by the
8[SourceMap (formerly CodeMap) type in rustc's libsyntax](https://github.com/rust-lang/rust/blob/master/src/libsyntax/source_map.rs).
9
10The `CodeMap` tracks all source files and maps positions within them to linear indexes as if all
11source files were concatenated. This allows a source position to be represented by a small
1232-bit `Pos` indexing into the `CodeMap`, under the assumption that the total amount of parsed
13source code will not exceed 4GiB. The `CodeMap` can look up the source file, line, and column
14of a `Pos` or `Span`, as well as provide source code snippets for error reporting.
15
16## License
17
18Licensed under either of
19
20 * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
21 * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
22
23at your option.
24
25### Contribution
26
27Unless you explicitly state otherwise, any contribution intentionally
28submitted for inclusion in the work by you, as defined in the Apache-2.0
29license, shall be dual licensed as above, without any additional terms or
30conditions.
31