O_Egor

token.h

Oct 15th, 2022
821
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #pragma once
  2.  
  3. #include <sstream>
  4. #include <vector>
  5. using namespace std;
  6.  
  7. enum class TokenType
  8. {
  9.     DATE,
  10.     EVENT,
  11.     COLUMN,
  12.     LOGICAL_OP,
  13.     COMPARE_OP,
  14.     PAREN_LEFT,
  15.     PAREN_RIGHT,
  16. };
  17.  
  18. struct Token
  19. {
  20.     const string value;
  21.     const TokenType type;
  22. };
  23.  
  24. vector<Token> Tokenize(istream& cl);
Advertisement
Add Comment
Please, Sign In to add comment