macro_rules! __lexor_create_token_definition {
($name:expr, $regex_str:expr, $priority:expr, $to_store:expr, $behavior:expr) => { ... };
}Expand description
Internal macro used by other token definition macros to create a TokenDefinition.
This macro provides a consistent way to construct TokenDefinition instances
by delegating to TokenDefinition::new. It’s not intended for direct use.
§Arguments
$name: The name of the token as a string literal.$regex_str: The regular expression pattern for the token as a string literal.$priority: An integer representing the token’s priority.$to_store: A boolean indicating whether to store the matched text.$behavior: TheTokenBehaviorfor the token.