renamed let to let_stmt

This commit is contained in:
Karma Riuk
2025-07-07 17:44:11 +02:00
parent 39eafe2360
commit b98424aa5f
6 changed files with 17 additions and 13 deletions

View File

@@ -1,16 +1,16 @@
#include "let.hpp"
namespace ast {
let::let(token::token token)
let_stmt::let_stmt(token::token token)
: token(std::move(token)),
name(nullptr),
value(nullptr) {}
std::string let::token_literal() const {
std::string let_stmt::token_literal() const {
return token.literal;
}
let::~let() {
let_stmt::~let_stmt() {
delete name;
delete value;
};

View File

@@ -5,8 +5,8 @@
#include "token/token.hpp"
namespace ast {
struct let : statement {
let(token::token token);
struct let_stmt : statement {
let_stmt(token::token token);
token::token token;
identifier* name;
@@ -14,6 +14,6 @@ namespace ast {
std::string token_literal() const override;
~let();
~let_stmt();
};
} // namespace ast