add: parser
This commit is contained in:
parent
2a350690b2
commit
dc3f497fb7
3 changed files with 218 additions and 0 deletions
src
15
src/lib.rs
Normal file
15
src/lib.rs
Normal 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};
|
Loading…
Add table
Add a link
Reference in a new issue