aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-04-16 15:41:01 +0630
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-04-16 15:41:01 +0630
commit4ecd1847592bfec3ed735489b22d6509fb5f9150 (patch)
treede82abb2ba28ad50fd28465febac613ef00649aa
parent27d6a47320775a386fc8827abca747a5b4b0ef1f (diff)
downloadovm-4ecd1847592bfec3ed735489b22d6509fb5f9150.tar.gz
ovm-4ecd1847592bfec3ed735489b22d6509fb5f9150.tar.bz2
ovm-4ecd1847592bfec3ed735489b22d6509fb5f9150.zip
lerr_type_t::UNKNOWN_CHAR -> UNKNOWN_LEXEME
-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