| Crates.io | cpp_synmap |
| lib.rs | cpp_synmap |
| version | 0.3.0 |
| created_at | 2017-03-06 03:37:23.272433+00 |
| updated_at | 2017-09-24 03:29:05.790844+00 |
| description | Sourcemap and full crate parsing support for `cpp_syn` |
| homepage | |
| repository | https://github.com/mystor/rust-cpp |
| max_upload_size | |
| id | 8843 |
| size | 13,438 |
NOTE: This crate currently depends on
cpp_synrather thansyn, as it requires theSpanfeatures which have not been landed insynyet for the majority of its features.
This crate provides a SourceMap type which can be used to parse an entire
crate and generate a complete AST. It also updates the spans in the parsed AST
to be relative to the SourceMap rather than the bytes in the input file.
With this information, the SourceMap provides methods to map spans to source
filenames (filename), source text (source_text) and line/column numbers
(locinfo).