Convert Int token type to Number
This commit is contained in:
parent
11f3897b7a
commit
35181444f3
@ -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;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user