// // Created by lenfrex on 2023/4/13. // #include "Token.h" const Location &Token::getLocation() const { return location; } void Token::setLocation(const Location &loc) { Token::location = loc; } TokenType Token::getType() const { return type; } void Token::setType(TokenType typ) { Token::type = typ; } const std::string &Token::getContent() const { return content; } void Token::setContent(const std::string &cont) { Token::content = cont; }