Enumerate asm token color names.

This commit is contained in:
Bartosz Taudul 2022-09-15 23:33:41 +02:00
parent 31b5a464cd
commit a45293d6ff
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -38,6 +38,15 @@ public:
std::vector<Token> tokens;
};
enum class AsmTokenColor : uint8_t
{
Label, // no-op, padding
Default, // '+', '[', '*', etc
SizeDirective, // byte, word, dword, etc
Register, // rax, rip, etc
Literal, // 0x04, etc
};
Tokenizer();
std::vector<Token> Tokenize( const char* begin, const char* end );