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/ty.hh | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 tiger-compiler/src/ast/ty.hh (limited to 'tiger-compiler/src/ast/ty.hh') diff --git a/tiger-compiler/src/ast/ty.hh b/tiger-compiler/src/ast/ty.hh new file mode 100644 index 0000000..847713b --- /dev/null +++ b/tiger-compiler/src/ast/ty.hh @@ -0,0 +1,39 @@ +/** + ** \file ast/ty.hh + ** \brief Declaration of ast::Ty. + */ + +#pragma once + +#include +#include +#include + +namespace ast +{ + /// Ty. + class Ty + : public Ast + , public Typable + , public TypeConstructor + { + public: + /** \name Ctor & dtor. + ** \{ */ + /// Construct a Ty node. + explicit Ty(const Location& location); + Ty(const Ty&) = delete; + Ty& operator=(const Ty&) = delete; + /// Destroy a Ty node. + /** \} */ + + /// \name Visitors entry point. + /// \{ */ + /// Accept a const visitor \a v. + void accept(ConstVisitor& v) const override = 0; + /// Accept a non-const visitor \a v. + void accept(Visitor& v) override = 0; + /// \} + }; +} // namespace ast +#include -- cgit v1.2.3