Advertisement
Guest User

Untitled

a guest
Apr 21st, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. #include "CFGParser.h"
  2.  
  3. class ProductionNode {
  4. public:
  5. ProductionNode(Symbol _symbol);
  6.  
  7. int getDependenceyCount();
  8.  
  9. void addDependent(ProductionNode *dependent);
  10.  
  11. std::vector<ProductionNode *> getDependents();
  12.  
  13. Symbol getSymbol();
  14.  
  15. void setEps();
  16.  
  17. bool containsEps();
  18.  
  19. void changeDependecies(int val);
  20.  
  21. private:
  22. ProductionNode();
  23.  
  24. Symbol symbol;
  25. std::vector<ProductionNode *> dependents;
  26. int dependenceyCount;
  27. bool hasEps;
  28. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement