Added static assert to lexer in case of opcode changes

This commit is contained in:
2024-04-14 17:12:24 +06:30
parent e5ef0292e7
commit 86aca9a596

View File

@@ -16,6 +16,8 @@
#include "./lexer.hpp"
static_assert(NUMBER_OF_OPCODES == 98, "ERROR: Lexer is out of date");
using std::string, std::string_view, std::pair, std::make_pair;
constexpr auto VALID_SYMBOL = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUV"