Crate blex

Source

Re-exports§

pub use token::*;

Modules§

token

Functions§

format_tags
Formats the given vector of strings in the fashion (a; b; c), where a, b, and c are debug-formatted tags (in order to see escape characters).
process_rule
Processes a rule across a vector of tokens. Starting from the first token, iteratively applies the rule on a single token. If that application returns None, continues applying the rule on the token and the next, then the next, and so on until the function returns Some or there are no tokens left to process. This process is explained more thoroughly with examples in the readme.
process_rule_maybe_verbose
See process_rule. May or may not print a message signifying when each replacement is made.
process_rules
Processes multiple rules on a vector of tokens. See process_rule.