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:
@@ -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
|
||||
@@ -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
|
||||
|
||||
@@ -32,7 +32,6 @@ class Symbol {
|
||||
std::string name;
|
||||
std::string value;
|
||||
bool terminal;
|
||||
NodeTree<Symbol>* subTree;
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user