8 Token::size_type column
16 return type_ == other.type() &&
17 lexeme_ == other.lexeme() &&
18 line_ == other.line() &&
19 column_ == other.column();
39 auto type_str{TOKEN_TYPE_TO_STRING.at(type_)};
42 + std::to_string(line_) +
" "
43 + std::to_string(column_);
size_type column() const noexcept
Get the column number of the token.
bool operator==(const Token &other) const noexcept
Equality operator for Token objects.
Token()=delete
Deleted default constructor.
Lexeme lexeme() const noexcept
Get the lexeme of the token.
size_type line() const noexcept
Get the line number of the token.
TokenType type() const noexcept
Get the type of the token.
std::string str() const noexcept
Get the string representation of the token.