From fef0bc8e4416b32b1f8496898d652f0fb004e050 Mon Sep 17 00:00:00 2001 From: Taylor Bockman Date: Mon, 18 Dec 2017 16:21:47 -0800 Subject: [PATCH] lol --- src/parser.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/parser.rs b/src/parser.rs index 9957ad1..9be3f3e 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -54,7 +54,13 @@ impl Parser { /// Parses a single string from the GUI and turns it into a neatly packaged TokenResult for processing /// by the engine. pub fn parse(s: &str) -> Result { + + // TODO: Remove the /n from the end + let tokens: Vec<&str> = s.split_whitespace().collect::>(); + + // TODO: Parse things based on the token, probably need a special function for each token based on a switch + // of tokens[0]. } }