summaryrefslogtreecommitdiff
path: root/tiger-compiler/src/ast/int-exp.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tiger-compiler/src/ast/int-exp.cc')
-rw-r--r--tiger-compiler/src/ast/int-exp.cc19
1 files changed, 19 insertions, 0 deletions
diff --git a/tiger-compiler/src/ast/int-exp.cc b/tiger-compiler/src/ast/int-exp.cc
new file mode 100644
index 0000000..e2fb992
--- /dev/null
+++ b/tiger-compiler/src/ast/int-exp.cc
@@ -0,0 +1,19 @@
+/**
+ ** \file ast/int-exp.cc
+ ** \brief Implementation of ast::IntExp.
+ */
+
+#include <ast/int-exp.hh>
+#include <ast/visitor.hh>
+
+namespace ast
+{
+ IntExp::IntExp(const Location& location, int value)
+ : Exp(location)
+ , value_(value)
+ {}
+
+ void IntExp::accept(ConstVisitor& v) const { v(*this); }
+
+ void IntExp::accept(Visitor& v) { v(*this); }
+} // namespace ast