c-repl/src/include/tokenize.h

15 lines
283 B
C
Raw Normal View History

2023-10-27 14:37:03 +02:00
#include <vector>
using namespace std;
enum class TokenType { Type, Int, Plus, Star, Slash, Minus, Equal, Semicolon, LParenthese, RParenthese };
enum class Type { Int };
union TokenData {
int integer;
Type type;
};
struct Token {
TokenType type;
TokenData data;
};