diff options
author | Andrew Gallant <jamslam@gmail.com> | 2016-03-28 20:07:25 -0400 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2016-03-28 20:07:25 -0400 |
commit | 4ae67a8587680eb29eb3d203a1f61707029094a3 (patch) | |
tree | 89b9c8cec509663017eb2c5fd315edff82bc7ea9 /src/main.rs | |
parent | 3b7698100790bbf34e86841a9686d25700467f2c (diff) |
progress
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index 583246cb..b328e249 100644 --- a/src/main.rs +++ b/src/main.rs @@ -19,6 +19,9 @@ use std::result; use docopt::Docopt; use regex::bytes::Regex; +use literals::LiteralSets; + +mod literals; mod nonl; pub type Result<T> = result::Result<T, Box<Error + Send + Sync>>; @@ -44,6 +47,9 @@ fn main() { fn run(args: &Args) -> Result<u64> { let expr = try!(parse(&args.arg_pattern)); + let literals = LiteralSets::create(&expr); + // println!("{:?}", literals); + // println!("{:?}", literals.to_matcher()); let re = Regex::new(&expr.to_string()).unwrap(); if args.arg_file.is_empty() { let _stdin = io::stdin(); |