Files
kraken/src/Symbol.cpp

20 lines
323 B
C++
Raw Normal View History

2013-05-20 19:34:15 -04:00
#include "Symbol.h"
Symbol::Symbol(std::string name, bool isTerminal) {
this->name = name;
this->isTerminal = isTerminal;
}
Symbol::~Symbol() {
}
2013-05-23 01:35:54 -04:00
const bool Symbol::operator==(const Symbol &other) {
return( name == other.name && isTerminal == other.isTerminal);
}
2013-05-20 19:34:15 -04:00
std::string Symbol::toString() {
return(name);
}