diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-04-16 15:41:01 +0630 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-04-16 15:41:01 +0630 |
commit | 4ecd1847592bfec3ed735489b22d6509fb5f9150 (patch) | |
tree | de82abb2ba28ad50fd28465febac613ef00649aa | |
parent | 27d6a47320775a386fc8827abca747a5b4b0ef1f (diff) | |
download | ovm-4ecd1847592bfec3ed735489b22d6509fb5f9150.tar.gz ovm-4ecd1847592bfec3ed735489b22d6509fb5f9150.tar.bz2 ovm-4ecd1847592bfec3ed735489b22d6509fb5f9150.zip |
lerr_type_t::UNKNOWN_CHAR -> UNKNOWN_LEXEME
-rw-r--r-- | asm/lexer.cpp | 6 | ||||
-rw-r--r-- | asm/lexer.hpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/asm/lexer.cpp b/asm/lexer.cpp index e2efdfe..2cb03ad 100644 --- a/asm/lexer.cpp +++ b/asm/lexer.cpp @@ -406,7 +406,7 @@ lerr_t tokenise_buffer(string_view source, std::vector<token_t *> &tokens) else { ++column; - return lerr_t{lerr_type_t::UNKNOWN_CHAR, column, line}; + return lerr_t{lerr_type_t::UNKNOWN_LEXEME, column, line}; } if (is_token) @@ -551,8 +551,8 @@ std::ostream &operator<<(std::ostream &os, lerr_t &lerr) case lerr_type_t::INVALID_PREPROCESSOR_DIRECTIVE: os << "INVALID_PREPROCESSOR_DIRECTIVE"; break; - case lerr_type_t::UNKNOWN_CHAR: - os << "UNKNOWN_CHAR"; + case lerr_type_t::UNKNOWN_LEXEME: + os << "UNKNOWN_LEXEME"; break; default: break; diff --git a/asm/lexer.hpp b/asm/lexer.hpp index c361f32..4c4889c 100644 --- a/asm/lexer.hpp +++ b/asm/lexer.hpp @@ -88,7 +88,7 @@ enum class lerr_type_t INVALID_STRING_LITERAL, INVALID_NUMBER_LITERAL, INVALID_PREPROCESSOR_DIRECTIVE, - UNKNOWN_CHAR, + UNKNOWN_LEXEME, }; struct lerr_t |