add: parser

This commit is contained in:
Akira Tempaku 2025-02-17 12:17:51 +09:00
parent 2a350690b2
commit dc3f497fb7
Signed by: paku
GPG key ID: 5B4E8402BCC50607
3 changed files with 218 additions and 0 deletions

15
src/lib.rs Normal file
View file

@ -0,0 +1,15 @@
//! # 正規表現エンジン用クレート。
//!
//! ## 利用例
//!
//! ```
//! 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};