text-scanner 0.0.3

A UTF-8 char-oriented, zero-copy, text and code scanning library
Documentation
  • Coverage
  • 48.95%
    70 out of 143 items documented44 out of 53 items with examples
  • Size
  • Source code size: 204.52 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 10.78 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 15s Average build duration of successful builds.
  • all releases: 15s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • vallentin/colorblast
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • vallentin

text-scanner

CI Latest Version Docs License

Warning: This library is experimental and may change drastically in 0.0.* versions.

A UTF-8 char-oriented, zero-copy, text and code scanning library.

This crate implements a UTF-8 char-based text Scanner, which includes various methods for scanning a string slice, as well as backtracking capabilities, which can be used to implement lexers for tokenizing text or code.

Scanning extensions for existing languages and formats have already been implemented, such as for Rust, C, Python, CSS, SCSS, JSON, JSON with Comments, and many more.

For examples of lexers implemented using Scanner, see the any-lexer crate, which implements lexers for e.g. Rust, C, Python, CSS, SCSS, JSON, JSON with Comments, and many more.