From b257c5b88f50ca84bd76641a164581e26816b0c3 Mon Sep 17 00:00:00 2001 From: Nathanne Isip Date: Fri, 20 Dec 2024 02:49:22 +0800 Subject: [PATCH] Empty statement AST definition class. --- include/n8/ast/statement/EmptyStatement.hpp | 38 +++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 include/n8/ast/statement/EmptyStatement.hpp diff --git a/include/n8/ast/statement/EmptyStatement.hpp b/include/n8/ast/statement/EmptyStatement.hpp new file mode 100644 index 0000000..eb7b1ec --- /dev/null +++ b/include/n8/ast/statement/EmptyStatement.hpp @@ -0,0 +1,38 @@ +/* + * 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_EMPTY_HPP +#define N8_AST_STMT_EMPTY_HPP + +#include +#include +#include +#include +#include + +class EmptyStatement final : public ASTNode { +public: + explicit EmptyStatement(std::shared_ptr _address) { + this->address = std::move(_address); + } + + [[nodiscard]] + DynamicObject visit(SymbolTable& symbols) override; +}; + +#endif