removed namespace perche mi rompeva le palle
This commit is contained in:
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
struct Token {
|
struct token {
|
||||||
TokenType type;
|
TokenType type;
|
||||||
std::string literal;
|
std::string literal;
|
||||||
};
|
};
|
||||||
|
@ -4,8 +4,6 @@
|
|||||||
#include <ostream>
|
#include <ostream>
|
||||||
#include <string_view>
|
#include <string_view>
|
||||||
|
|
||||||
namespace lexer {
|
|
||||||
|
|
||||||
// X-macro list of token types and their string representations
|
// X-macro list of token types and their string representations
|
||||||
#define TOKEN_LIST \
|
#define TOKEN_LIST \
|
||||||
X(ILLEGAL, "ILLEGAL") \
|
X(ILLEGAL, "ILLEGAL") \
|
||||||
@ -46,5 +44,3 @@ namespace lexer {
|
|||||||
return os << tokenTypeStrings[idx];
|
return os << tokenTypeStrings[idx];
|
||||||
return os << "Unknown";
|
return os << "Unknown";
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace lexer
|
|
||||||
|
Reference in New Issue
Block a user