2025-02-17 12:17:51 +09:00
|
|
|
//! # 正規表現エンジン用クレート。
|
|
|
|
//!
|
|
|
|
//! ## 利用例
|
|
|
|
//!
|
|
|
|
//! ```
|
|
|
|
//! use regex;
|
|
|
|
//! let expr = "a(bc)+|c(def)*"; // 正規表現
|
|
|
|
//! let line = "cdefdefdef"; // マッチ対象文字列
|
|
|
|
//! regex::do_matching(expr, line, true); // 幅優先探索でマッチング
|
|
|
|
//! regex::print(expr); // 正規表現のASTと命令列を表示
|
|
|
|
//! ```
|
|
|
|
mod engine;
|
2025-02-18 19:49:09 +09:00
|
|
|
mod helper;
|
2025-02-17 12:17:51 +09:00
|
|
|
|
2025-02-18 21:41:17 +09:00
|
|
|
pub use engine::{do_matching, print};
|