diff --git a/src/LR0.cpp b/src/LR0.cpp index 19d9b6ae..c3a8f82c 100644 --- a/src/LR0.cpp +++ b/src/LR0.cpp @@ -68,6 +68,12 @@ void LR0::createParseTables (const Grammar& grammar) +} + +//////////////////////////////////////////////////////////////////////////////// +void LR0::debug (bool value) +{ + _debug = value; } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/LR0.h b/src/LR0.h index 28bf3130..69308ad6 100644 --- a/src/LR0.h +++ b/src/LR0.h @@ -36,6 +36,7 @@ class LR0 public: LR0 (); void createParseTables (const Grammar&); + void debug (bool); std::string dump () const; private: @@ -43,6 +44,8 @@ private: // | | | std::map > _actions; std::map > _goto; + + bool _debug; }; #endif