Edit Type enum
This commit is contained in:
parent
9e2fca94a1
commit
753d179d47
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user