lexer-generator
This crate is a small scale lexer package which is parsed from JSON
Example: Basic Tokenizing
Potential code one might use for lexing tokens for a calculator
key.json:
main.rs:
let json: String = read_to_string.unwrap;
let source: String = Stringfrom;
let mut lexer = from;
// parsing, runtime, whatever one would want to do with their tokens
"123 + 456 * 789" , Token, Token, Token, Token // ignoring line position and the incremental nature of the lexer