Summary Files Commits Branches @commit @diff @stats
path: root / Year 2 / Implementation of Programming Languages / Transpiler / src / Value / Integer.h
diff options
context:
space:
mode:
1 files changed, 16 insertions, 0 deletions
-rw-r--r--Year 2/Implementation of Programming Languages/Transpiler/src/Value/Integer.h16
diff --git a/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Integer.h b/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Integer.h
new file mode 100644
index 0000000..3859d1d
--- /dev/null
+++ b/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Integer.h
@@ -0,0 +1,16 @@
+#ifndef VALUE_INTEGER
+#define VALUE_INTEGER
+
+#include "Value.h"
+
+class Integer : public Value {
+ int value;
+public:
+ std::string Visit(LLVMVisitor& visitor) const override;
+ const int& get_value() const;
+
+ Integer(int value);
+ ~Integer() override = default;
+};
+
+#endif