blob: a4202c1c2e48b0af49b8f46809c1fde680090163 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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>
|