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 /asm/lexer.cpp | |
parent | 27d6a47320775a386fc8827abca747a5b4b0ef1f (diff) | |
download | ovm-4ecd1847592bfec3ed735489b22d6509fb5f9150.tar.gz ovm-4ecd1847592bfec3ed735489b22d6509fb5f9150.tar.bz2 ovm-4ecd1847592bfec3ed735489b22d6509fb5f9150.zip |
lerr_type_t::UNKNOWN_CHAR -> UNKNOWN_LEXEME
Diffstat (limited to 'asm/lexer.cpp')
-rw-r--r-- | asm/lexer.cpp | 6 |
1 files changed, 3 insertions, 3 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; |