Implemented grammer loading

This commit is contained in:
Nathan Braswell
2013-05-20 19:34:15 -04:00
parent 46d59ac595
commit d2698cf203
11 changed files with 342 additions and 4 deletions

15
src/Symbol.cpp Normal file
View File

@@ -0,0 +1,15 @@
#include "Symbol.h"
Symbol::Symbol(std::string name, bool isTerminal) {
this->name = name;
this->isTerminal = isTerminal;
}
Symbol::~Symbol() {
}
std::string Symbol::toString() {
return(name);
}