#ifndef TOKENIZE_H #define TOKENIZE_H #include #include using namespace std; enum class TokenType { Type, Identifier, Number, Plus, Minus, Star, Slash, Percent, Equal, Semicolon, LParenthese, RParenthese }; enum class Type { Int }; union TokenData { double number; Type type; string identifier; TokenData() : number(0.0) {} // Explicitly define the destructor ~TokenData() {} }; struct Token { TokenType type; TokenData data; }; #endif