Guest User

Untitled

a guest
Jul 18th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #ifndef TOKENIZER_H
  2. #define TOKENIZER_H
  3.  
  4. #include <iostream>
  5.  
  6. #include "token.h"
  7. using namespace std;
  8.  
  9. template <class NumericType>
  10. class Tokenizer {
  11. public:
  12. Tokenizer( istream &is ) : in( is ), prevToken( OPAREN ) {
  13. }
  14. Token<NumericType> getToken( );
  15.  
  16. private:
  17. istream &in;
  18. bool getChar( char &ch );
  19.  
  20. TokenType prevToken; // it may be necessary for programming assignment 6
  21. };
  22.  
  23. #include "tokenizer.cpp.h"
  24. #endif
Add Comment
Please, Sign In to add comment