diff options
Diffstat (limited to 'tiger-compiler/src/ast/for-exp.hxx')
| -rw-r--r-- | tiger-compiler/src/ast/for-exp.hxx | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tiger-compiler/src/ast/for-exp.hxx b/tiger-compiler/src/ast/for-exp.hxx new file mode 100644 index 0000000..c81d30f --- /dev/null +++ b/tiger-compiler/src/ast/for-exp.hxx @@ -0,0 +1,22 @@ +/** + ** \file ast/for-exp.hxx + ** \brief Inline methods of ast::ForExp. + */ + +#pragma once + +#include <ast/for-exp.hh> + +namespace ast +{ + + inline const VarDec& ForExp::vardec_get() const { return *vardec_; } + inline VarDec& ForExp::vardec_get() { return *vardec_; } + + inline const Exp& ForExp::hi_get() const { return *hi_; } + inline Exp& ForExp::hi_get() { return *hi_; } + + inline const Exp& ForExp::body_get() const { return *body_; } + inline Exp& ForExp::body_get() { return *body_; } + +} // namespace ast |
