summaryrefslogtreecommitdiff
path: root/tiger-compiler/src/ast/op-exp.hxx
blob: a665c3aa53480fb0bb376bdb08ddf18199ac7c2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/**
 ** \file ast/op-exp.hxx
 ** \brief Inline methods of ast::OpExp.
 */

#pragma once

#include <ast/op-exp.hh>

namespace ast
{

  inline const Exp& OpExp::left_get() const { return *left_; }
  inline Exp& OpExp::left_get() { return *left_; }

  inline OpExp::Oper OpExp::oper_get() const { return oper_; }

  inline const Exp& OpExp::right_get() const { return *right_; }
  inline Exp& OpExp::right_get() { return *right_; }

} // namespace ast