diff options
author | Greg Brown <gmb60@cam.ac.uk> | 2021-01-16 12:11:12 +0000 |
---|---|---|
committer | Greg Brown <gmb60@cam.ac.uk> | 2021-01-16 12:11:12 +0000 |
commit | 07f284105874c32123afc27b4299336702ab105f (patch) | |
tree | 0c5816b43691798f8fcb7891fcf1d060cf700d14 | |
parent | 24ff5f311f6c797681be1cff0fb2d0b75c0f848f (diff) |
Make AutoChomp into a library
-rw-r--r-- | autochomp/src/lib.rs (renamed from autochomp/src/nibble.rs) | 0 | ||||
-rw-r--r-- | autochomp/src/main.rs | 4 |
2 files changed, 1 insertions, 3 deletions
diff --git a/autochomp/src/nibble.rs b/autochomp/src/lib.rs index ebe18a6..ebe18a6 100644 --- a/autochomp/src/nibble.rs +++ b/autochomp/src/lib.rs diff --git a/autochomp/src/main.rs b/autochomp/src/main.rs index ec50a92..cbc0646 100644 --- a/autochomp/src/main.rs +++ b/autochomp/src/main.rs @@ -18,8 +18,6 @@ use chomp::{ lower::RustBackend, }; -mod nibble; - fn main() { let mut input = String::new(); let res = io::stdin() @@ -27,7 +25,7 @@ fn main() { .map_err(|e| Box::new(e) as Box<dyn Error>) .and_then(|_| { IterWrapper::new(input.chars()) - .parse::<nibble::Ast>() + .parse::<autochomp::Ast>() .map_err(|e| Box::new(e) as Box<dyn Error>) }) .and_then(|ast| ast.convert().map_err(|e| Box::new(e) as Box<dyn Error>)) |