From 1b2d012caf443d4befce8ce5b83ef7f7b9f64263 Mon Sep 17 00:00:00 2001 From: Brandon Jackson <1drummer@att.net> Date: Tue, 27 Oct 2015 21:54:55 -0500 Subject: [PATCH] Not needed --- Parser.cpp | 63 ------------------------------------------------------ 1 file changed, 63 deletions(-) delete mode 100755 Parser.cpp diff --git a/Parser.cpp b/Parser.cpp deleted file mode 100755 index 9e5d94a..0000000 --- a/Parser.cpp +++ /dev/null @@ -1,63 +0,0 @@ -//#include "main.cpp" -#include -#include -#include -#include - -bool password = true; // temp for a password needed function needed later. -string pass = "admin"; - -void setPassword() -{ - password = !password; -} - -vector tokenize(string ss){ - string tempString; - stringstream lineStream(ss); - vector output; - - while (lineStream >> tempString){ - output.push_back(tempString); - } - return output; -} - -void parseCmd(vector input){ - if(password){ - if(pass == input[0]){ - setPassword(); - cout << "Success." << endl; - } - else{ - cout << "Incorrect Password." << endl; - } - } - - string cmd = toupper(input[0]); - - else if(cmd == ""){ - - } - - else if(cmd == ""){ - - } - - else if(cmd == ""){ - - } - - else if(cmd == ""){ - - } - - else if(cmd == ""){ - - } -} - -void parse(string input){ - vector listOfTokens = tokenize(input); - parseCmd(listOfTokens); -}