rulex-macro 0.1.0

Macro for converting rulex expressions to regexes
Documentation

rulex-macro

This Rust procedural macro allows converting a rulex expression to a regex string literal at compile time:

use rulex_macro::rulex;

const REGEX: &str = rulex!(r#" 'foo' | 'bar'+ greedy "#);

Errors from rulex are shown at compile time, too, and are highlighted in your IDE.

License

Dual-licensed under the MIT license or the Apache 2.0 license.