Added static assert to lexer in case of opcode changes
This commit is contained in:
@@ -16,6 +16,8 @@
|
|||||||
|
|
||||||
#include "./lexer.hpp"
|
#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;
|
using std::string, std::string_view, std::pair, std::make_pair;
|
||||||
|
|
||||||
constexpr auto VALID_SYMBOL = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUV"
|
constexpr auto VALID_SYMBOL = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUV"
|
||||||
|
|||||||
Reference in New Issue
Block a user