1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//! # SCNR2 Code Generation Library
//!
//! This crate provides compile-time code generation for creating efficient
//! lexical scanners. It converts regex patterns into optimized DFA-based
//! scanners that can be used at runtime.
//!
//! ## Example Usage
//! ```ignore
//! use scnr2_macro::scanner;
//!
//! scanner! {
//! MyScanner {
//! mode INITIAL {
//! token r"\d+" => NUMBER;
//! token r"[a-zA-Z_]\w*" => IDENTIFIER;
//! }
//! }
//! }
//! ```
extern crate rstest;
pub type Error = ;
/// The result type for the `scrn` crate.
pub type Result<T> = Result;
/// The character_classes module contains the character class definitions
/// and utilities for SCNR2 generation.
/// The dfa module contains the DFA implementation.
/// The codegen module contains the code generation logic for SCNR2.
/// The id module contains the ID types used in the SCNR2 generation.
/// Module that provides functions and types related to DFA minimization.
/// The nfa module contains the NFA implementation.
/// The pattern module contains the pattern matching implementation.
/// The scanner data module.
/// The scanner mode module contains the scanner mode's implementation.