From 875b272b63152d58e7d0ae11c839d3c853cfd9ca Mon Sep 17 00:00:00 2001 From: jimtahu Date: Fri, 26 Apr 2013 17:58:34 -0500 Subject: [PATCH] removed old code --- LangS.h | 8 ----- LangS.ypp | 1 - Scalar.cpp | 93 ------------------------------------------------------ 3 files changed, 102 deletions(-) delete mode 100644 LangS.h delete mode 100644 Scalar.cpp diff --git a/LangS.h b/LangS.h deleted file mode 100644 index 8e08fed..0000000 --- a/LangS.h +++ /dev/null @@ -1,8 +0,0 @@ -#ifndef LANGS_H -#define LANGS_H - -std::string setValue(std::string name, std::string value); -std::string getValue(std::string name); -std::string binOP(std::string op, std::string a, std::string b); - -#endif diff --git a/LangS.ypp b/LangS.ypp index 730fd1b..122821a 100644 --- a/LangS.ypp +++ b/LangS.ypp @@ -4,7 +4,6 @@ #include #include -#include "LangS.h" #include "ParseTree.h" #define YYSTYPE Node* diff --git a/Scalar.cpp b/Scalar.cpp deleted file mode 100644 index 73eac5f..0000000 --- a/Scalar.cpp +++ /dev/null @@ -1,93 +0,0 @@ -#include -#include -#include - -using namespace std; - -void yyerror(std::string s); -int yyparse (void); - -map varTable; - -/** -* Converts a string into a double. -* @return The double repersented by the string. -* @param text The string to convert. -* Uses stringstream for the conversion, so 7k.89 is 7. -*/ -double str2num(string text){ - stringstream ss(text); - double ret; - ss>>ret ? ret : throw text; - return ret; -}//end str2num - -/** -* Converts a double to a string. -* @param val The double to convert. -* @return The string repersenting the double. -*/ -string num2str(double val){ - stringstream ss; - ss<