constexpr -> const in lexer.cpp
Not much of an actual performance change, more semantic meaning for me.
This commit is contained in:
@@ -24,9 +24,9 @@ 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"
|
const auto VALID_SYMBOL = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUV"
|
||||||
"WXYZ0123456789-_.:()%#$",
|
"WXYZ0123456789-_.:()%#$",
|
||||||
VALID_DIGIT = "0123456789", VALID_HEX = "0123456789abcdefABCDEF";
|
VALID_DIGIT = "0123456789", VALID_HEX = "0123456789abcdefABCDEF";
|
||||||
|
|
||||||
bool is_char_in_s(char c, const char *s)
|
bool is_char_in_s(char c, const char *s)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user