text-scanner

Crates.iotext-scanner
lib.rstext-scanner
version0.0.3
sourcesrc
created_at2023-06-16 18:03:26.34837
updated_at2023-07-01 01:29:59.329604
descriptionA UTF-8 char-oriented, zero-copy, text and code scanning library
homepage
repositoryhttps://github.com/vallentin/colorblast
max_upload_size
id892476
size205,024
Christian Vallentin (vallentin)

documentation

README

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.

Commit count: 71

cargo fmt