tipc
A TIP to LLVM compiler
TipInt.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "TipCons.h"
4 #include "TipType.h"
5 #include <string>
6 
12 class TipInt : public TipCons {
13 public:
14  TipInt();
15 
16  bool operator==(const TipType &other) const override;
17  bool operator!=(const TipType &other) const override;
18 
19  void accept(TipTypeVisitor *visitor) override;
20 
21 protected:
22  std::ostream &print(std::ostream &out) const override;
23 };
Abstract base class for all proper types.
Definition: TipCons.h:14
A proper type representing an int.
Definition: TipInt.h:12
bool operator!=(const TipType &other) const override
Definition: TipInt.cpp:17
void accept(TipTypeVisitor *visitor) override
Definition: TipInt.cpp:27
std::ostream & print(std::ostream &out) const override
Definition: TipInt.cpp:21
TipInt()
Definition: TipInt.cpp:6
bool operator==(const TipType &other) const override
Definition: TipInt.cpp:8
Base class for TIP type visitors.
Definition: TipTypeVisitor.h:24
Abstract base class of all types.
Definition: TipType.h:19