summaryrefslogtreecommitdiff
path: root/tiger-compiler/src/ast/exp.hh
diff options
context:
space:
mode:
authorMartial Simon <msimon_fr@hotmail.com>2025-09-15 01:07:58 +0200
committerMartial Simon <msimon_fr@hotmail.com>2025-09-15 01:07:58 +0200
commit967be9e750221ab2ab783f95df79bb26d290a45e (patch)
tree6802900a5e975f9f68b169f0f503f040056d6952 /tiger-compiler/src/ast/exp.hh
add: added projectsHEADmain
Diffstat (limited to 'tiger-compiler/src/ast/exp.hh')
-rw-r--r--tiger-compiler/src/ast/exp.hh43
1 files changed, 43 insertions, 0 deletions
diff --git a/tiger-compiler/src/ast/exp.hh b/tiger-compiler/src/ast/exp.hh
new file mode 100644
index 0000000..a4202c1
--- /dev/null
+++ b/tiger-compiler/src/ast/exp.hh
@@ -0,0 +1,43 @@
+/**
+ ** \file ast/exp.hh
+ ** \brief Declaration of ast::Exp.
+ */
+
+#pragma once
+
+#include <ast/ast.hh>
+#include <ast/typable.hh>
+
+namespace ast
+{
+ /// Exp.
+ class Exp
+ : public Ast
+ , public Typable
+ {
+ public:
+ /** \name Ctor & dtor.
+ ** \{ */
+ /// Construct an Exp node.
+ explicit Exp(const Location& location);
+ Exp(const Exp&) = delete;
+ Exp& operator=(const Exp&) = delete;
+ /// Destroy an Exp 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;
+ /// \}
+
+ /** \name Accessors.
+ ** \{ */
+ /** \} */
+
+ protected:
+ };
+} // namespace ast
+#include <ast/exp.hxx>