diff options
Diffstat (limited to 'tiger-compiler/src/ast/seq-exp.cc')
| -rw-r--r-- | tiger-compiler/src/ast/seq-exp.cc | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tiger-compiler/src/ast/seq-exp.cc b/tiger-compiler/src/ast/seq-exp.cc new file mode 100644 index 0000000..af6bc6c --- /dev/null +++ b/tiger-compiler/src/ast/seq-exp.cc @@ -0,0 +1,26 @@ +/** + ** \file ast/seq-exp.cc + ** \brief Implementation of ast::SeqExp. + */ + +#include <ast/seq-exp.hh> +#include <ast/visitor.hh> +#include <misc/algorithm.hh> + +namespace ast +{ + SeqExp::SeqExp(const Location& location, exps_type* exps) + : Exp(location) + , exps_(exps) + {} + + SeqExp::~SeqExp() + { + misc::deep_clear(*exps_); + delete exps_; + } + + void SeqExp::accept(ConstVisitor& v) const { v(*this); } + + void SeqExp::accept(Visitor& v) { v(*this); } +} // namespace ast |
