aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--asm/lexer.cpp6
-rw-r--r--asm/lexer.hpp2
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