Removed LALR parser and an associated member from Symbol, which is used so much that actually got us down to ~3.42GB!

This commit is contained in:
Nathan Braswell
2015-03-23 15:28:03 -04:00
parent 2c4dbc60d1
commit 6fa06f2b7e
10 changed files with 11 additions and 133 deletions

View File

@@ -1,22 +0,0 @@
#ifndef LALRPARSER_H
#define LALRPARSER_H
#include "Parser.h"
class LALRParser: public Parser {
public:
LALRParser();
~LALRParser();
//using Parser::loadGrammer;
//Defaults in parser are mostly LALR, so we only need to
//implement the actual parsing function
NodeTree<Symbol>* parseInput(std::string inputString);
private:
//Nothing
};
#endif

View File

@@ -68,7 +68,6 @@ class Parser {
std::stack<Symbol> symbolStack;
Symbol getOrAddSymbol(std::string symbolString, bool isTerminal);
NodeTree<Symbol>* reduceTreeCombine(Symbol newSymbol, std::vector<Symbol> &symbols);
};
#endif

View File

@@ -32,7 +32,6 @@ class Symbol {
std::string name;
std::string value;
bool terminal;
NodeTree<Symbol>* subTree;
};
#endif
#endif