#ifndef TOKENIZE_H #define TOKENIZE_H #include #include #include using namespace std; enum class TokenType { Type, Identifier, Int, Plus, Minus, DoublePlus, DoubleMinus, Star, Slash, Percent, Equal, Semicolon, LParenthese, RParenthese }; enum class Type { Int }; using TokenData = variant; struct Token { TokenType type; TokenData data { }; }; /* Parses a string into a vector of tokens */ vector tokenize(string str); /* Format and print a Token */ void _debug_print_token(Token token); /* Formats a list of tokens and prints it */ void _debug_print_tokens(vector tokens); #endif