LRDE Tiger Compiler  1.34a $Id: 7fef12e1f5fa43449d667a0eec1d837c40fc1202 $
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
binop.hxx
Go to the documentation of this file.
1 
6 #ifndef TREE_BINOP_HXX
7 # define TREE_BINOP_HXX
8 
9 # include <tree/binop.hh>
10 
11 namespace tree
12 {
13 
14 
15  inline
16  Binop::Binop(const Oper oper, const rExp& left, const rExp& right)
17  : Exp()
18  , oper_(oper)
19  {
20  child_push_back(left);
21  child_push_back(right);
22  }
23 
24  inline rExp
26  {
27  return child_get(0).cast<Exp>();
28  }
29 
30  inline rExp
32  {
33  return child_get(1).cast<Exp>();
34  }
35 
36  inline Binop::Oper
38  {
39  return oper_;
40  }
41 
42 }
43 
44 #endif // !TREE_BINOP_HXX