jayce
Jayce is a tokenizer 🌌
Example
use ;
use Regex;
// Your token kind names and their regexes
lazy_static!
// Source to tokenize
const SOURCE: &str = "Excalibur = 5000$";
Result
Token
Token
Token
Info
next returns a TokenizerResult which can be
Found(token)If a regex matchesError(line, column)When nothing matchesEndReaching the source ends
Note
Whitespaces, block comments and comments are skipped by default
Performances
Initialization in 3.0881 nanoseconds
Tokenization of 24 747 996 tokens in 7.40 milliseconds
420.65%faster than version 4.0.1