Files
interpreter-cpp/src/ast/statements/let.hpp
2025-07-08 11:18:54 +02:00

22 lines
495 B
C++

#pragma once
#include "ast/ast.hpp"
#include "ast/expressions/identifier.hpp"
#include "token/token.hpp"
namespace ast {
struct let_stmt : statement {
let_stmt(token::token token);
let_stmt(token::token token, identifier* name, expression* value);
token::token token;
identifier* name;
expression* value;
std::string token_literal() const override;
std::string str() const override;
~let_stmt();
};
} // namespace ast