Closed AZWN closed 7 months ago
Makes the code generation more error-resilient.
Test cases like
#[test] fn test_repeat() { use Alphabet::*; compile_regex!(type Machine<Alphabet> = A : B); // note the typo ':' assert!(Machine::new().accepts([A])); assert!(Machine::new().accepts([B])); assert!(!Machine::new().accepts([])); assert!(!Machine::new().accepts([B, A])); assert!(!Machine::new().accepts([A, B])); assert!(!Machine::new().accepts([A, A])); }
Will now only generate 1 error (on the macro), instead of one on every reference to Machine.
Machine
Very cool
Makes the code generation more error-resilient.
Test cases like
Will now only generate 1 error (on the macro), instead of one on every reference to
Machine
.