Skip to content
Snippets Groups Projects
Commit a3951e89 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

fix for build error

Conflicts:
	aconversions/src/re2fa/Brzozowski.cpp
	libaderivation/src/RegExpDerivation.cpp
	libaregexptree/src/RegExpAlphabet.cpp
parent 452361b0
No related branches found
No related tags found
No related merge requests found
......@@ -83,7 +83,7 @@ void RegExpPrinter::printIteration(Iteration* iteration, ostream& out, string pr
 
void RegExpPrinter::printSymbol(RegExpSymbol* symbol, ostream& out, string prefix) {
out << prefix << "<symbol>";
out << symbol->getSymbol();
out << symbol->getSymbol().getSymbol();
out << "</symbol>\n";
}
 
......
......@@ -10,15 +10,15 @@
namespace regexp {
 
RegExpSymbol::RegExpSymbol() :
Symbol("") {
symbol("") {
}
 
RegExpSymbol::RegExpSymbol(const string& symbol) :
Symbol(symbol) {
symbol(symbol) {
}
 
RegExpElement* RegExpSymbol::clone() const {
return new RegExpSymbol(this->symbol);
return new RegExpSymbol(this->symbol.getSymbol());
}
 
bool RegExpSymbol::operator<(const RegExpElement& other) const {
......@@ -70,5 +70,9 @@ bool RegExpSymbol::containsEmptyString() const {
return false;
}
 
const Symbol& RegExpSymbol::getSymbol() const {
return this->symbol;
}
} /* namespace regexp */
 
......@@ -20,7 +20,8 @@ using namespace alphabet;
/**
* Represents symbol in the regular expression. Contains name of the symbol.
*/
class RegExpSymbol: public RegExpElement, public Symbol {
class RegExpSymbol: public RegExpElement {
Symbol symbol;
public:
RegExpSymbol();
RegExpSymbol(const string& symbol);
......@@ -48,6 +49,8 @@ public:
* @copydoc RegExpElement::containsEmptyString() const
*/
bool containsEmptyString() const;
const Symbol& getSymbol() const;
};
 
} /* namespace regexp */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment