diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-04-14 17:17:51 +0630 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-04-14 17:17:51 +0630 |
commit | 86e9d51ab0b9ed2c5ccd1cf5f06fa3f3448c8f31 (patch) | |
tree | e6e7cf15301538fbe1c925814409d658649ee3db /asm/lexer.hpp | |
parent | 86aca9a596a4c0b7436f3c1169cd3884b9082206 (diff) | |
download | ovm-86e9d51ab0b9ed2c5ccd1cf5f06fa3f3448c8f31.tar.gz ovm-86e9d51ab0b9ed2c5ccd1cf5f06fa3f3448c8f31.tar.bz2 ovm-86e9d51ab0b9ed2c5ccd1cf5f06fa3f3448c8f31.zip |
enum -> enum class in lexer
This makes enum elements scoped which is actually quite useful as I
prefer the namespacing that enum's give in C++.
Diffstat (limited to 'asm/lexer.hpp')
-rw-r--r-- | asm/lexer.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/asm/lexer.hpp b/asm/lexer.hpp index 3b9243f..1257b97 100644 --- a/asm/lexer.hpp +++ b/asm/lexer.hpp @@ -18,7 +18,7 @@ #include <tuple> #include <vector> -enum token_type_t +enum class token_type_t { PP_CONST, // %const(<symbol>)... PP_USE, // %use <string> @@ -80,7 +80,7 @@ struct token_t std::ostream &operator<<(std::ostream &, token_t &); -enum lerr_t +enum class lerr_t { OK = 0, INVALID_CHAR_LITERAL, |