hawxgamer

Untitled

Nov 25th, 2013
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1.  
  2.  
  3. #ifndef PARSERFACTORY_H
  4. #define PARSERFACTORY_H
  5.  
  6. #include"Type.h"
  7. #include"variable.h"
  8.  
  9. static std::string const grammarfail=""; //added
  10. static unsigned int minimumlength=2; //added
  11.  
  12. class parserfactory
  13. {
  14. public:
  15. virtual ~parserfactory(){};
  16. virtual Type* CreateType(std::string const& type)=0;
  17. virtual variable* CreateVariable(std::string const& name,Type* type)=0;
  18.  
  19. virtual std::string const & CheckType(std::string const & typeline)=0; //added
  20. };
  21.  
  22. #endif
Advertisement
Add Comment
Please, Sign In to add comment