Files
interpreter-cpp/src/ast/expressions/identifier.cpp
2025-07-08 10:17:38 +02:00

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