LRDE Tiger Compiler  1.34a $Id: 7fef12e1f5fa43449d667a0eec1d837c40fc1202 $
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
exp.hxx
Go to the documentation of this file.
1 
6 #ifndef TRANSLATE_EXP_HXX
7 # define TRANSLATE_EXP_HXX
8 
9 # include <translate/exp.hh>
10 
11 namespace translate
12 {
13  inline
15  const tree::rExp& left, const tree::rExp& right)
16  : op_(op)
17  , left_(left)
18  , right_(right)
19  {}
20 
21 
22  inline
23  Ex::Ex(const tree::rExp& exp)
24  : exp_(exp)
25  {}
26 
27  inline
28  Nx::Nx(const tree::rStm& stm)
29  : stm_(stm)
30  {}
31 
32  inline
33  Ix::Ix(rExp& cond, rExp& iftrue, rExp& iffalse)
34  : cond_(cond)
35  , iftrue_(iftrue)
36  , iffalse_(iffalse)
37  {}
38 
39 
40  inline std::ostream&
41  operator<<(std::ostream& ostr, const Exp& exp)
42  {
43  return exp.dump(ostr);
44  }
45 
46 }
47 
48 
49 #endif // !TRANSLATE_EXP_HXX