Convert Int token type to Number

This commit is contained in:
ala89 2023-10-27 16:16:40 +02:00
parent 11f3897b7a
commit 35181444f3

View File

@ -4,11 +4,11 @@
#include <vector>
using namespace std;
enum class TokenType { Type, Int, Plus, Star, Slash, Minus, Equal, Semicolon, LParenthese, RParenthese };
enum class TokenType { Type, Number, Plus, Star, Slash, Minus, Equal, Semicolon, LParenthese, RParenthese };
enum class Type { Int };
union TokenData {
int integer;
double number;
Type type;
};