From 089425ab0f1841a05b26ca0375fdb36414847c93 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Fri, 23 Dec 2016 17:48:19 -0700 Subject: [PATCH] Remove the demo stuff --- src/lexer.rs | 7 ------- src/main.rs | 5 ----- 2 files changed, 12 deletions(-) diff --git a/src/lexer.rs b/src/lexer.rs index 24be067..ac7a7da 100644 --- a/src/lexer.rs +++ b/src/lexer.rs @@ -151,10 +151,3 @@ impl Iterator for Lexer { token } } - -pub fn hello(person: &str) { - println!("Hello, {}!", person); - for (idx, c) in person.char_indices() { - println!(" {}, {} -> {}", c, idx, characters::identifier_initials().contains(&c)); - } -} diff --git a/src/main.rs b/src/main.rs index a53f1d6..28bfcae 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,11 +2,6 @@ mod characters; mod lexer; fn main() { - lexer::hello("Eryn"); - lexer::hello("Emily"); - let s = "Jonas".to_string(); - lexer::hello(&s); - let lexer = lexer::Lexer::new(String::from("((abc))")); for t in lexer { println!("token = {}", t);