blob: 40295eba3195ec872923208af411455f6cd2b62b (
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
|
/**
** \file type/builtin-types.hh
** \brief The classes Int, String, Void.
*/
#pragma once
#include <misc/singleton.hh>
#include <type/fwd.hh>
#include <type/type.hh>
namespace type
{
// FIXME DONE: Some code was deleted here (Other types : Int, String, Void).
class Int
: public Type
, public misc::Singleton<Int>
{
public:
void accept(ConstVisitor& v) const override;
void accept(Visitor& v) override;
};
class Void
: public Type
, public misc::Singleton<Void>
{
public:
void accept(ConstVisitor& v) const override;
void accept(Visitor& v) override;
};
class String
: public Type
, public misc::Singleton<String>
{
public:
void accept(ConstVisitor& v) const override;
void accept(Visitor& v) override;
};
} // namespace type
|