16 lines
361 B
C++
16 lines
361 B
C++
#include "identifier.hpp"
|
|
|
|
namespace ast {
|
|
identifier::identifier(token::token token, std::string value)
|
|
: token(std::move(token)),
|
|
value(std::move(value)) {}
|
|
|
|
std::string identifier::token_literal() const {
|
|
return token.literal;
|
|
}
|
|
|
|
std::string identifier::str() const {
|
|
return value;
|
|
};
|
|
} // namespace ast
|