LRDE Tiger Compiler  1.34a $Id: 7fef12e1f5fa43449d667a0eec1d837c40fc1202 $
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
eseq.hxx
Go to the documentation of this file.
1 
6 #ifndef TREE_ESEQ_HXX
7 # define TREE_ESEQ_HXX
8 
9 # include <tree/eseq.hh>
10 
11 namespace tree
12 {
13 
14  inline
15  Eseq::Eseq(const rStm& stm, const rExp& exp)
16  : Exp()
17  {
18  child_push_back(stm);
19  child_push_back(exp);
20  }
21 
22  inline rStm
23  Eseq::stm_get() const
24  {
25  return child_get(0).cast<Stm>();
26  }
27 
28  inline rExp
29  Eseq::exp_get() const
30  {
31  return child_get(1).cast<Exp>();
32  }
33 
34 }
35 
36 #endif // !TREE_ESEQ_HXX