Edit Type enum

This commit is contained in:
ala89 2023-12-08 14:17:15 +01:00
parent 9e2fca94a1
commit 753d179d47

View File

@ -12,10 +12,10 @@ using namespace std;
/**
* Tokens definition
*/
enum class TokenType { Identifier, Litteral, Plus, Minus, DoublePlus, DoubleMinus, DoubleEqual, Land, Lor, Lt, Gt, Leq, Geq, NotEqual, Not, Star, Slash, Percent, Equal, Semicolon, LParenthese, RParenthese, LCurlyBracket, RCurlyBracket, If, Else, While, For };
enum class Type { Int };
enum class TokenType { Type, Identifier, Litteral, Plus, Minus, DoublePlus, DoubleMinus, DoubleEqual, Land, Lor, Lt, Gt, Leq, Geq, NotEqual, Not, Star, Slash, Percent, Equal, Semicolon, LParenthese, RParenthese, LCurlyBracket, RCurlyBracket, If, Else, While, For, Comma };
enum class Type { Int, Double };
using TokenData = variant<int, double, string, Type>;
using TokenData = variant<int, double, string>;
struct CodePosition {
int line;