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