Advertisement
Guest User

first_follow

a guest
Apr 25th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.70 KB | None | 0 0
  1. //
  2. // Created by youssef on 25/04/18.
  3. //
  4.  
  5.  
  6. #ifndef PARSER_GENERATOR_FIRST_FOLLOW_WRAPPER_H
  7. #define PARSER_GENERATOR_FIRST_FOLLOW_WRAPPER_H
  8.  
  9. #include "non_terminal.h"
  10. #include "set"
  11. #include "symbol.h"
  12. #include "map"
  13.  
  14. using std::set;
  15. using std::vector;
  16. using std::map;
  17.  
  18.  
  19. class first_follow_wrapper {
  20.  
  21. public:
  22.  
  23.     set<token> *get_first(non_terminal *);
  24.  
  25.     set<token> *get_follow(non_terminal *);
  26.  
  27.     first_follow_wrapper(map<symbol *, set<token> *>,
  28.                          map<symbol *, set<token> *> follow_set_map);
  29.  
  30. private:
  31.  
  32.     map<symbol *, set<token> *> first_set_map;
  33.     map<symbol *, set<token> *> follow_set_map;
  34.  
  35. };
  36.  
  37. #endif //PARSER_GENERATOR_FIRST_FOLLOW_WRAPPER_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement