regex/src/lib.rs

15 lines
425 B
Rust
Raw Normal View History

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;
// mod helper;
// pub use engine::{do_matching, print};