diff --git a/include/n8/ast/statement/DeleteStatement.hpp b/include/n8/ast/statement/DeleteStatement.hpp new file mode 100644 index 0000000..b0bd672 --- /dev/null +++ b/include/n8/ast/statement/DeleteStatement.hpp @@ -0,0 +1,44 @@ +/* + * Copyright (c) 2024 - Nathanne Isip + * This file is part of N8. + * + * N8 is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published + * by the Free Software Foundation, either version 3 of the License, + * or (at your option) any later version. + * + * N8 is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with N8. If not, see . + */ + +#ifndef N8_AST_STMT_DELETE_HPP +#define N8_AST_STMT_DELETE_HPP + +#include +#include +#include +#include +#include + +class DeleteStatement final : public ASTNode { +private: + std::vector> variables; + +public: + explicit DeleteStatement( + std::shared_ptr _address, + std::vector> _variables + ) : variables(std::move(_variables)) { + this->address = std::move(_address); + } + + [[nodiscard]] + DynamicObject visit(SymbolTable& symbols) override; +}; + +#endif