LR0: Added debug mode

This commit is contained in:
Paul Beckingham 2015-12-26 14:12:11 -05:00
parent ee7fd61991
commit 980dda147f
2 changed files with 9 additions and 0 deletions

View file

@ -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 <int, std::map <std::string, std::string>> _actions;
std::map <int, std::map <std::string, std::string>> _goto;
bool _debug;
};
#endif