From 967be9e750221ab2ab783f95df79bb26d290a45e Mon Sep 17 00:00:00 2001 From: Martial Simon Date: Mon, 15 Sep 2025 01:07:58 +0200 Subject: add: added projects --- tiger-compiler/src/ast/escapable.hh | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tiger-compiler/src/ast/escapable.hh (limited to 'tiger-compiler/src/ast/escapable.hh') diff --git a/tiger-compiler/src/ast/escapable.hh b/tiger-compiler/src/ast/escapable.hh new file mode 100644 index 0000000..b062114 --- /dev/null +++ b/tiger-compiler/src/ast/escapable.hh @@ -0,0 +1,30 @@ +/** + ** \file ast/escapable.hh + ** \brief Declaration of ast::Escapable. + */ + +#pragma once + +#include + +namespace ast +{ + /// Escapable. + class Escapable + { + // FIXME DONE: Some code was deleted here. + public: + // Returns whether the object is escaped + bool escape_get() const; + // Sets the escaped status of the object + void escape_set(bool escaped); + // Return definition site. + FunctionDec* def_get() const; + // Set definition site. + void def_set(FunctionDec*); + private: + bool escaping_ = true; + FunctionDec* def_ = nullptr; + }; +} // namespace ast +#include -- cgit v1.2.3