diff --git a/src/LR0.cpp b/src/LR0.cpp index 7ef3241c..3f0c8ef4 100644 --- a/src/LR0.cpp +++ b/src/LR0.cpp @@ -119,44 +119,6 @@ std::string LR0::dump () const return out.str (); } -//////////////////////////////////////////////////////////////////////////////// -/* -std::string LR0::dump (std::vector >& augmented, States& states) const -{ - std::stringstream out; - - for (unsigned int c = 0; c < states.size (); ++c) - { - out << " [" << c << "] "; - - for (unsigned int i = 0; i < states[c].size (); ++i) - { - if (i) - out << " "; - - out << augmented[states[c][i]._rule][0] - << " " - << augmented[states[c][i]._rule][1]; - - for (unsigned int t = 2; t < augmented[states[c][i]._rule].size (); t++) - { - if ((int)t - 2 == states[c][i]._cursor) - out << " ."; - - out << " " << augmented[states[c][i]._rule][t]; - } - - out << "\n"; - } - - out << "\n"; - } - - out << "\n"; - return out.str (); -} -*/ - //////////////////////////////////////////////////////////////////////////////// LR0::Item::Item (const std::vector & rule) : _rule (rule) diff --git a/src/LR0.h b/src/LR0.h index ac9c1d6a..07e26f48 100644 --- a/src/LR0.h +++ b/src/LR0.h @@ -62,7 +62,6 @@ public: private: // bool expandNonTerminals (std::vector >&, States&, int); -// std::string dump (std::vector >&, States&) const; private: // state column result